manateelazycat / holo-layer

HoloLayer is a multimedia layer plugin designed specifically for Emacs
GNU General Public License v3.0
123 stars 18 forks source link

dwm下holo-layer在选择到Emacs窗口时会不断重新加载窗口 #19

Closed AllTheLife closed 1 year ago

AllTheLife commented 1 year ago

环境:

当焦点从 holo_layer.py 窗口移动到 Emacs 窗口时,holo_layer.py 窗口会不断 show 和 hide,并且当切换到其他窗口时,holo_layer.py 窗口不会消失。

目前找到的解决办法:

modified   holo-layer.el
@@ -474,12 +474,13 @@ Including title-bar, menu-bar, offset depends on window system, and border."

 (defun holo-layer-focus-in-hook-function ()
   (setq holo-layer-emacs-is-focus-p t)
-  (holo-layer-call-async "show_holo_window")
+  ;; (holo-layer-call-async "show_holo_window")
   (holo-layer-monitor-configuration-change))

 (defun holo-layer-focus-out-hook-function ()
   (setq holo-layer-emacs-is-focus-p nil)
-  (holo-layer-call-async "hide_holo_window"))
+  ;; (holo-layer-call-async "hide_holo_window")
+  )

 (defvar holo-layer-cache-emacs-frame-info nil)
 (defvar holo-layer-cache-window-info nil)
manateelazycat commented 1 year ago

目前只能写一个补丁,判断dwm就不调用上面的函数