display: Use G_SOURCE_CONTINUE / G_SOURCE_REMOVE

This commit is contained in:
Jasper St. Pierre 2014-06-12 17:02:14 -04:00
parent ad60ea9e0e
commit 89cdfc9194
2 changed files with 3 additions and 3 deletions

View File

@ -1352,7 +1352,7 @@ window_raise_with_delay_callback (void *data)
window->desc);
}
return FALSE;
return G_SOURCE_REMOVE;
}
void

View File

@ -7693,7 +7693,7 @@ window_focus_on_pointer_rest_callback (gpointer data)
{
focus_data->pointer_x = root_x;
focus_data->pointer_y = root_y;
return TRUE;
return G_SOURCE_CONTINUE;
}
if (!meta_window_has_pointer (window))
@ -7704,7 +7704,7 @@ window_focus_on_pointer_rest_callback (gpointer data)
out:
display->focus_timeout_id = 0;
return FALSE;
return G_SOURCE_REMOVE;
}
/* The interval, in milliseconds, we use in focus-follows-mouse