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-08T12·12+0800
committerChris Feng <chris.w.feng@gmail.com>2015-08-08T12·12+0800
commit63402b0efc19a50e89d868fad3f91b134170aab6 (patch)
tree64fc73ac2844941b083a66c49bf6221c946de774 /exwm.el
parent52984898ec8d59fe42e86a311c7e7dbeec95c611 (diff)
Correct layout refresh problems
* Relax the conditions to refresh layout; this may introduce some overheads
  though
* Fix the problem when `*scratch*` buffer is killed; close #12
* Enhance `exwm-reset` by forcing layout refresh in it. This should allow users
  to overcome some layout bugs
Diffstat (limited to 'exwm.el')
-rw-r--r--exwm.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/exwm.el b/exwm.el
index 984f8eee5ecf..7c9fa59410c1 100644
--- a/exwm.el
+++ b/exwm.el
@@ -201,6 +201,8 @@
       ;; Force update input focus
       (setq exwm-input--focus-id xcb:Window:None)
       (exwm-input--update-focus)
+      ;; Force refresh
+      (exwm-layout--refresh)
       (exwm-input-grab-keyboard))))
 
 (defmacro exwm--with-current-id (id &rest body)
@@ -396,6 +398,7 @@
                (exwm--update-protocols id t))
               ((= atom xcb:Atom:WM_STATE)
                (exwm--update-state id t))
+              ((= atom xcb:Atom:_NET_WM_USER_TIME)) ;ignored
               (t (exwm--log "Unhandled PropertyNotify: %s(%d)"
                             (x-get-atom-name atom) atom)))))))