Disable render-time pointer warps if asked

When `focus_follows_mouse` configuration option is disabled, do not warp
the pointer when focus changes outputs after rendering.

Rationale: this option is meant to be disabled by users who have a setup
where the mouse is usually in the way. These users tend to move the
mouse to a corner or use a utility to hide the pointer when it is not
active. When this user switches focus between outputs, the mouse is
placed in the center of the screen.

This is clearly against the spirit of disabling `focus_follows_mouse`.
Disabling this option now implies disabling "mouse follows focus".
This commit is contained in:
Tony Crisci 2014-01-04 07:04:56 -05:00 committed by Michael Stapelberg
parent 705b43294a
commit b109b1b20d
1 changed files with 2 additions and 1 deletions

View File

@ -1083,7 +1083,8 @@ void x_set_i3_atoms(void) {
*/
void x_set_warp_to(Rect *rect)
{
warp_to = rect;
if (!config.disable_focus_follows_mouse)
warp_to = rect;
}
/*