Comments (8)
目前 eaf 只适配过启动的 frame, 没有做多 frame 的处理.
from emacs-application-framework.
@zsxh 为什么要使用 multi-frame ? 不觉得 multi-frame 不方便吗?
from emacs-application-framework.
因为有多个显示器,用multi-frame的话比较方便管理
from emacs-application-framework.
@zsxh 我很少用 multi-frame , 短时间之内可能不会实现这个需求, 如果以后用的人多了, 我可能会考虑实现, 现在没有太多时间实现 multi-frame.
抱歉。
from emacs-application-framework.
我发现 winum 的 winum--window-list 完美解决了这个问题。
(require winum)
(defun eaf-monitor-configuration-change (&rest _)
(ignore-errors
(let (view-infos)
;; (dolist (window (window-list))
(dolist (window (winum--window-list))
(let ((buffer (window-buffer window)))
(with-current-buffer buffer
(if (eq major-mode 'eaf-mode)
(let* ((window-allocation (eaf-get-window-allocation window))
(x (nth 0 window-allocation))
(y (nth 1 window-allocation))
(w (nth 2 window-allocation))
(h (nth 3 window-allocation))
)
(add-to-list 'view-infos (format "%s:%s:%s:%s:%s" buffer-id x y w h))
)))))
;; I don't know how to make emacs send dbus-message with two-dimensional list.
;; So i package two-dimensional list in string, then unpack on server side. ;)
(eaf-call "update_views" (mapconcat 'identity view-infos ","))
)))
from emacs-application-framework.
已经支持 multi-frame 了
from emacs-application-framework.
@manateelazycat nice,我测试了一下,发现不同 size 的 frame 渲染同一个 eaf viewer,viewer size 只会match其中一个frame,其它的没啥问题了。
from emacs-application-framework.
@zsxh 有新的问题提新的 issue 吧, 这样好进行追踪
from emacs-application-framework.
Related Issues (20)
- 大佬可不可以考虑一下在eaf-browser、eaf-pdf中实现类似avy的跳转功能 HOT 2
- `RuntimeError: PyQt6.QtWebEngineCore cannot import type 'QModelRoleDataSpan' from PyQt6.QtCore` after install HOT 2
- Global Scaling Configuration Setting HOT 3
- Installation failure caused by sexpdata HOT 1
- 打开file-manager空白 HOT 1
- Grammar improvements in Readme.md HOT 1
- Better way to distribute dependencies? HOT 3
- Support for non "off the record" profiles for modern web applications like whatsapp/google login and other HOT 5
- Wheel mouse button open page in the same window instead of other-window HOT 1
- Can't open pdf HOT 7
- TypeError: QWebEngineView(parent: QWidget = None): argument 1 has unexpected type 'QWebEngineProfile' HOT 10
- Add support for the `iced` toolkit.
- eaf browser haning HOT 2
- 正则表达在python 3.12中错误 HOT 1
- arch系统安装成功了怎么却使用不了 HOT 1
- error message during startup and eaf-open-demo does not work HOT 1
- Problem with emacs-wayland or emacs-pgkt build enabled with pure-gtk support HOT 2
- qt.dbus.integration: Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString) HOT 1
- Windows下安装eaf报错 HOT 2
- EAF keep warning in emacs daemon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-application-framework.