about summary refs log tree commit diff
path: root/exwm.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2015-08-06T04·32+0800
committerChris Feng <chris.w.feng@gmail.com>2015-08-06T04·32+0800
commit3fb90b9eaac752760fc32404cbd1574b8ef61669 (patch)
tree72e84246d73dead72b503c281ce1595144890c9c /exwm.el
parentcaf2feec639e26506b787a07889aaf28ee9c3c3f (diff)
Fix fullscreen issues
* Correct ConfigureNotify events sent to fullscreen windows.
* Exit fullscreen mode before switching workspace.
* Temporarily treat `xcb:Atom:_NET_WM_STATE_ABOVE` as
  `xcb:Atom:_NET_WM_STATE_FULLSCREEN` since
  a) "plugin-container" (Flash Player) seems only set this, and
  b) it's not normally used by applications.
  This makes fullscreen videos working in e.g. iceweasel.
Diffstat (limited to 'exwm.el')
-rw-r--r--exwm.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm.el b/exwm.el
index 3f38b66bdc..c8f10aff24 100644
--- a/exwm.el
+++ b/exwm.el
@@ -462,7 +462,8 @@
                        (exwm-floating--set-floating id)
                        (push xcb:Atom:_NET_WM_STATE_MODAL props-new)))))
             ;; _NET_WM_STATE_FULLSCREEN
-            (when (memq xcb:Atom:_NET_WM_STATE_FULLSCREEN props)
+            (when (or (memq xcb:Atom:_NET_WM_STATE_FULLSCREEN props)
+                      (memq xcb:Atom:_NET_WM_STATE_ABOVE props))
               (cond ((= action xcb:ewmh:_NET_WM_STATE_ADD)
                      (unless exwm--fullscreen (exwm-layout-set-fullscreen id))
                      (push xcb:Atom:_NET_WM_STATE_FULLSCREEN props-new))