display: Use G_SOURCE_CONTINUE / G_SOURCE_REMOVE
This commit is contained in:
parent
ad60ea9e0e
commit
89cdfc9194
@ -1352,7 +1352,7 @@ window_raise_with_delay_callback (void *data)
|
|||||||
window->desc);
|
window->desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -7693,7 +7693,7 @@ window_focus_on_pointer_rest_callback (gpointer data)
|
|||||||
{
|
{
|
||||||
focus_data->pointer_x = root_x;
|
focus_data->pointer_x = root_x;
|
||||||
focus_data->pointer_y = root_y;
|
focus_data->pointer_y = root_y;
|
||||||
return TRUE;
|
return G_SOURCE_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!meta_window_has_pointer (window))
|
if (!meta_window_has_pointer (window))
|
||||||
@ -7704,7 +7704,7 @@ window_focus_on_pointer_rest_callback (gpointer data)
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
display->focus_timeout_id = 0;
|
display->focus_timeout_id = 0;
|
||||||
return FALSE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The interval, in milliseconds, we use in focus-follows-mouse
|
/* The interval, in milliseconds, we use in focus-follows-mouse
|
||||||
|
Loading…
x
Reference in New Issue
Block a user