Avoid crashing Emacs by resizing its frame into 0x0
* exwm-floating.el (exwm-floating--do-moveresize): * exwm-layout.el (exwm-layout-enlarge-window): Resizing a frame into 0x0 crashes Emacs so additional checks are required.
This commit is contained in:
parent
6b4bfad87b
commit
83c0a2db34
2 changed files with 4 additions and 4 deletions
|
@ -601,8 +601,8 @@ context of the corresponding buffer.")
|
|||
(eval-when-compile
|
||||
(logior xcb:ConfigWindow:Width
|
||||
xcb:ConfigWindow:Height)))
|
||||
width (aref result 4)
|
||||
height (aref result 5))
|
||||
width (max 1 (aref result 4))
|
||||
height (max 1 (aref result 5)))
|
||||
(setq buffer-or-id (aref result 0))
|
||||
(setq container-or-id
|
||||
(if (bufferp buffer-or-id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue