branch: externals/exwm
commit 2bc3092912a30e8b4af8fcd7b76d4e4b7f62c808
Author: Steven Allen <[email protected]>
Commit: Steven Allen <[email protected]>

    exwm-manage: Only configure width/height when requested
    
    * exwm-manage.el (exwm-manage--on-ConfigureRequest): Check the value
    mask before reconfiguring the window's width/height.
---
 exwm-manage.el | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/exwm-manage.el b/exwm-manage.el
index d8b18bae9d..b88db0f1f0 100644
--- a/exwm-manage.el
+++ b/exwm-manage.el
@@ -729,10 +729,14 @@ border-width: %d; sibling: #x%x; stack-mode: %d"
                                                    'exwm-outer-id)
                                   nil
                                   nil
-                                  (+ (frame-outer-width exwm--floating-frame)
-                                     width-delta)
-                                  (+ (frame-outer-height exwm--floating-frame)
-                                     height-delta)))
+                                  (unless (= 0 (logand value-mask
+                                                       xcb:ConfigWindow:Width))
+                                    (+ (frame-outer-width exwm--floating-frame)
+                                       width-delta))
+                                  (unless (= 0 (logand value-mask
+                                                       
xcb:ConfigWindow:Height))
+                                    (+ (frame-outer-height 
exwm--floating-frame)
+                                       height-delta))))
           (exwm--log "ConfigureWindow (preserve geometry)")
           ;; Configure the unmanaged window.
           ;; But Emacs frames should be excluded.  Generally we don't

Reply via email to