Skip to content

Commit 691d08d

Browse files
LordRegmarcopeereboom
authored andcommitted
Fix pointer centering when focusing free mode windows
1 parent d259d33 commit 691d08d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spectrwm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8115,7 +8115,7 @@ focus(struct swm_screen *s, struct binding *bp, union arg *args)
81158115
update_mapping(s);
81168116

81178117
update_focus(s);
8118-
center_pointer(r);
8118+
center_pointer(winfocus ? winfocus->ws->r : r);
81198119
flush();
81208120
out:
81218121
DNPRINTF(SWM_D_FOCUS, "done\n");
@@ -9468,8 +9468,8 @@ iconify(struct swm_screen *s, struct binding *bp, union arg *args)
94689468
stack(win->ws->r);
94699469
update_mapping(s);
94709470
if (!follow) {
9471-
update_focus(win->s);
9472-
center_pointer(win->ws->r);
9471+
update_focus(s);
9472+
center_pointer(nfw ? nfw->ws->r : win->ws->r);
94739473
}
94749474

94759475
flush(); /* win can be freed. */

0 commit comments

Comments
 (0)