about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--exwm-floating.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/exwm-floating.el b/exwm-floating.el
index 2d1bf177838a..ea68cb500b8b 100644
--- a/exwm-floating.el
+++ b/exwm-floating.el
@@ -266,14 +266,15 @@ context of the corresponding buffer.")
     ;; FIXME: Strangely, the Emacs frame can move itself at this point
     ;;        when there are left/top struts set.  Force resetting its
     ;;        position seems working, but it'd better to figure out why.
-    (when exwm-workspace--struts
-      (xcb:+request exwm--connection
-          (make-instance 'xcb:ConfigureWindow
-                         :window outer-id
-                         :value-mask (logior xcb:ConfigWindow:X
-                                             xcb:ConfigWindow:Y)
-                         :x 0 :y 0))
-      (xcb:flush exwm--connection)))
+    ;; FIXME: This also happens in another case (#220) where the cause is
+    ;;        still unclear.
+    (xcb:+request exwm--connection
+        (make-instance 'xcb:ConfigureWindow
+                       :window outer-id
+                       :value-mask (logior xcb:ConfigWindow:X
+                                           xcb:ConfigWindow:Y)
+                       :x 0 :y 0))
+    (xcb:flush exwm--connection))
   (with-current-buffer (exwm--id->buffer id)
     (run-hooks 'exwm-floating-setup-hook))
   ;; Redraw the frame.