diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2018-02-04T14·38+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2018-02-04T14·38+0800 |
commit | 83c0a2db3448091e44cded075104a0b7df636431 (patch) | |
tree | 4e625902eac202b285271f0d6e32d042a01317df /exwm-floating.el | |
parent | 6b4bfad87bdf8b4cf13cdfb211ae6c8c24c415ff (diff) |
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.
Diffstat (limited to 'exwm-floating.el')
-rw-r--r-- | exwm-floating.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exwm-floating.el b/exwm-floating.el index 9d4e76c6e2ae..a695346cb2c6 100644 --- a/exwm-floating.el +++ b/exwm-floating.el @@ -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) |