summaryrefslogtreecommitdiff
path: root/src/ui/tile-preview.c
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2015-01-14 09:47:20 +0300
committerDenis Gorodnichev <[email protected]>2015-01-14 09:47:20 +0300
commitcd1c4c3b1e0e28129f1a2c938e50d08b40b9d284 (patch)
tree85d2dedf11d528d75ac771c2478f0ec2b8159a6c /src/ui/tile-preview.c
parent094bf425195d75b2c4c530fd81a7bdd9b62045ab (diff)
downloadmarco-cd1c4c3b1e0e28129f1a2c938e50d08b40b9d284.tar.bz2
marco-cd1c4c3b1e0e28129f1a2c938e50d08b40b9d284.tar.xz
tile preview: invalidate window before showing
Diffstat (limited to 'src/ui/tile-preview.c')
-rw-r--r--src/ui/tile-preview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/tile-preview.c b/src/ui/tile-preview.c
index 71b2e297..e85d2e64 100644
--- a/src/ui/tile-preview.c
+++ b/src/ui/tile-preview.c
@@ -271,7 +271,6 @@ meta_tile_preview_show (MetaTilePreview *preview,
&& preview->tile_rect.height == tile_rect->height)
return; /* nothing to do */
- gtk_widget_show (preview->preview_window);
window = gtk_widget_get_window (preview->preview_window);
#if GTK_CHECK_VERSION (3, 0, 0)
meta_core_lower_beneath_focus_window (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
@@ -287,6 +286,8 @@ meta_tile_preview_show (MetaTilePreview *preview,
gdk_window_invalidate_rect (window, &old_rect, FALSE);
+ gtk_widget_show (preview->preview_window);
+
preview->tile_rect = *tile_rect;
gdk_window_move_resize (window,