40 lines
1.0 KiB
Diff
40 lines
1.0 KiB
Diff
Index: src/ui/preview-widget.c
|
|
===================================================================
|
|
--- src/ui/preview-widget.c (revision 3666)
|
|
+++ src/ui/preview-widget.c (working copy)
|
|
@@ -478,6 +478,19 @@
|
|
|
|
flags = (META_PREVIEW (preview)->flags);
|
|
|
|
+ window_xregion = gdk_region_new ();
|
|
+
|
|
+ xrect.x = 0;
|
|
+ xrect.y = 0;
|
|
+ xrect.width = new_window_width;
|
|
+ xrect.height = new_window_height;
|
|
+
|
|
+ gdk_region_union_with_rect (window_xregion, &xrect);
|
|
+
|
|
+ if (preview->theme == NULL)
|
|
+ return window_xregion;
|
|
+
|
|
+ /* Otherwise, we do have a theme, so calculate the corners */
|
|
frame_style = meta_theme_get_frame_style (preview->theme,
|
|
META_FRAME_TYPE_NORMAL, flags);
|
|
|
|
@@ -558,14 +571,6 @@
|
|
}
|
|
}
|
|
|
|
- window_xregion = gdk_region_new ();
|
|
-
|
|
- xrect.x = 0;
|
|
- xrect.y = 0;
|
|
- xrect.width = new_window_width;
|
|
- xrect.height = new_window_height;
|
|
-
|
|
- gdk_region_union_with_rect (window_xregion, &xrect);
|
|
gdk_region_subtract (window_xregion, corners_xregion);
|
|
gdk_region_destroy (corners_xregion);
|
|
|