about summary refs log tree commit diff
path: root/exwm-floating.el
diff options
context:
space:
mode:
Diffstat (limited to 'exwm-floating.el')
-rw-r--r--exwm-floating.el4
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)