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
This commit is contained in:
parent
52984898ec
commit
63402b0efc
2 changed files with 21 additions and 16 deletions
3
exwm.el
3
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)))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue