From f52848595d44064bb092d3028a7f9afe1107faf1 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Fri, 29 Jul 2016 17:11:28 +0800 Subject: ; * exwm-floating.el (exwm-floating--unset-floating): Reposition an X ; window when it changes from floating to tiling layout. --- exwm-floating.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'exwm-floating.el') diff --git a/exwm-floating.el b/exwm-floating.el index 7931c661c732..6702e38d6131 100644 --- a/exwm-floating.el +++ b/exwm-floating.el @@ -277,6 +277,14 @@ (make-instance 'xcb:ChangeWindowAttributes :window id :value-mask xcb:CW:EventMask :event-mask exwm--client-event-mask)) + ;; The X window might have been moved due to the floating border. + (xcb:+request exwm--connection + (make-instance 'xcb:ConfigureWindow + :window id + :value-mask (logior xcb:ConfigWindow:X + xcb:ConfigWindow:Y) + :x 0 + :y 0)) ;; Reparent the floating frame back to the root window. (let ((frame-id (frame-parameter exwm--floating-frame 'exwm-outer-id)) (frame-container (frame-parameter exwm--floating-frame -- cgit 1.4.1