mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
screen: Unset timeout ID after removal
Otherwise we may try to remove the now invalid ID again, resulting in a warning. https://bugzilla.gnome.org/show_bug.cgi?id=788292
This commit is contained in:
parent
6dc499f305
commit
34207ba509
@ -1480,6 +1480,7 @@ meta_screen_hide_tile_preview (MetaScreen *screen)
|
||||
{
|
||||
if (screen->tile_preview_timeout_id > 0)
|
||||
g_source_remove (screen->tile_preview_timeout_id);
|
||||
screen->tile_preview_timeout_id = 0;
|
||||
|
||||
meta_compositor_hide_tile_preview (screen->display->compositor);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user