about summary refs log tree commit diff
path: root/exwm.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2018-02-20T14·09+0800
committerChris Feng <chris.w.feng@gmail.com>2018-02-20T14·09+0800
commitbfa35c0e388e5b4daf27aa162ecb6323f7716c85 (patch)
tree3bade9bc3dd631c81db6081ac612953d04a878a1 /exwm.el
parent7d4c57a6abc6bc724beaffb9d4f91971f9a62426 (diff)
Remove redundant code for fullscreen mode
* exwm-manage.el (exwm-manage--unmanage-window)
(exwm--on-ClientMessage): No need to modify workspace when an X window
enters/leaves fullscreen mode.
Diffstat (limited to 'exwm.el')
-rw-r--r--exwm.el17
1 files changed, 7 insertions, 10 deletions
diff --git a/exwm.el b/exwm.el
index 5cba3785f2..0b78b6b0b9 100644
--- a/exwm.el
+++ b/exwm.el
@@ -480,16 +480,13 @@
         (when (and (not buffer)
                    (memq xcb:Atom:_NET_WM_STATE_FULLSCREEN props)
                    (= action xcb:ewmh:_NET_WM_STATE_ADD))
-          (dolist (f exwm-workspace--list)
-            (when (equal (frame-parameter f 'exwm-outer-id) id)
-              (exwm-workspace--set-fullscreen f)
-              (xcb:+request
-                  exwm--connection
-                  (make-instance 'xcb:ewmh:set-_NET_WM_STATE
-                                 :window id
-                                 :data (vector
-                                        xcb:Atom:_NET_WM_STATE_FULLSCREEN)))
-              (xcb:flush exwm--connection))))
+          (xcb:+request
+              exwm--connection
+              (make-instance 'xcb:ewmh:set-_NET_WM_STATE
+                             :window id
+                             :data (vector
+                                    xcb:Atom:_NET_WM_STATE_FULLSCREEN)))
+          (xcb:flush exwm--connection))
         (when buffer                    ;ensure it's managed
           (with-current-buffer buffer
             ;; _NET_WM_STATE_FULLSCREEN