screen: Add a method to hide the tile preview unconditionally
Add meta_screen_tile_preview_hide() to hide the tile preview independent from the tile state of the dragged window. https://bugzilla.gnome.org/show_bug.cgi?id=639988
This commit is contained in:
parent
286160646b
commit
53d6938b55
2 changed files with 11 additions and 0 deletions
|
@ -184,6 +184,7 @@ void meta_screen_workspace_popup_destroy (MetaScreen *screen);
|
|||
|
||||
void meta_screen_tile_preview_update (MetaScreen *screen,
|
||||
gboolean delay);
|
||||
void meta_screen_tile_preview_hide (MetaScreen *screen);
|
||||
|
||||
MetaWindow* meta_screen_get_mouse_window (MetaScreen *screen,
|
||||
MetaWindow *not_this_one);
|
||||
|
|
|
@ -1843,6 +1843,16 @@ meta_screen_tile_preview_update (MetaScreen *screen,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
meta_screen_tile_preview_hide (MetaScreen *screen)
|
||||
{
|
||||
if (screen->tile_preview_timeout_id > 0)
|
||||
g_source_remove (screen->tile_preview_timeout_id);
|
||||
|
||||
if (screen->tile_preview)
|
||||
meta_tile_preview_hide (screen->tile_preview);
|
||||
}
|
||||
|
||||
MetaWindow*
|
||||
meta_screen_get_mouse_window (MetaScreen *screen,
|
||||
MetaWindow *not_this_one)
|
||||
|
|
Loading…
Reference in a new issue