about summary refs log tree commit diff
path: root/exwm-layout.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-09-23T10·36+0800
committerChris Feng <chris.w.feng@gmail.com>2016-09-23T10·36+0800
commit2597f74c7fb9ad290a45c89d0025bebcf739a976 (patch)
tree25e1517488830430dec44b1ea819a7c282450013 /exwm-layout.el
parent0833e8dc4a3fdb6f0ea9651ece2e7d2d4fae97ec (diff)
Remember the geometries of floating X windows
* exwm-floating.el (exwm-floating--stop-moveresize):
* exwm-layout.el (exwm-layout-enlarge-window):
Update the geometry after resizing.
Diffstat (limited to 'exwm-layout.el')
-rw-r--r--exwm-layout.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/exwm-layout.el b/exwm-layout.el
index 355b8346504c..5a31c947c1bb 100644
--- a/exwm-layout.el
+++ b/exwm-layout.el
@@ -460,6 +460,7 @@ windows."
             (setq width (max (+ exwm--normal-hints-min-width margin)
                              (+ width delta))))))
       (when width
+        (setf (slot-value exwm--geometry 'width) width)
         (xcb:+request exwm--connection
             (make-instance 'xcb:ConfigureWindow
                            :window (frame-parameter exwm--floating-frame
@@ -492,6 +493,7 @@ windows."
             (setq height (max (+ exwm--normal-hints-min-height margin)
                               (+ height delta))))))
       (when height
+        (setf (slot-value exwm--geometry 'height) height)
         (xcb:+request exwm--connection
             (make-instance 'xcb:ConfigureWindow
                            :window (frame-parameter exwm--floating-frame