Skip to content

Commit 4795fad

Browse files
committed
Fix floating window width increase when moving to workspace
* exwm-workspace.el (exwm-workspace-move-window): Deduct 1 pixel from `frame-pixel-width' of `old-frame' when moving a floating window to another workspace. This prevents the floating window from growing in width over repeated moves.
1 parent 3420cd2 commit 4795fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exwm-workspace.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ INDEX must not exceed the current number of workspaces."
938938
(set-frame-parameter new-frame 'exwm-container container)
939939
(make-frame-invisible new-frame)
940940
(set-frame-size new-frame
941-
(frame-pixel-width old-frame)
941+
(- (frame-pixel-width old-frame) 1)
942942
(frame-pixel-height old-frame)
943943
t)
944944
(xcb:+request exwm--connection

0 commit comments

Comments
 (0)