Set the right window level and shadow after recreating the window.
2008-02-20 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_decorations): Set the right window level and shadow after recreating the window. * gdk/quartz/GdkQuartzView.c: (drawRect): Invalidate the shadow if necessary after drawing (bug #517338). svn path=/trunk/; revision=19622
This commit is contained in:
committed by
Richard Hult
parent
e4fe214f39
commit
fbe4c4f8b6
@@ -1,3 +1,11 @@
|
||||
2008-02-20 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_decorations): Set
|
||||
the right window level and shadow after recreating the window.
|
||||
|
||||
* gdk/quartz/GdkQuartzView.c: (drawRect): Invalidate the shadow if
|
||||
necessary after drawing (bug #517338).
|
||||
|
||||
2008-02-20 Marc-Andre Lureau <marcandre.lureau@gmail.com>
|
||||
|
||||
* gtk/gtkbuilder.c (_gtk_builder_enum_from_string): fix missing
|
||||
|
||||
@@ -116,6 +116,12 @@
|
||||
|
||||
gdk_region_destroy (region);
|
||||
|
||||
/* Invalidate the window shadow for non-opaque views that have shadow
|
||||
* enabled, otherwise the shadow doesn't get updated to what we draw.
|
||||
*/
|
||||
if (![self isOpaque] && [[self window] hasShadow])
|
||||
[[self window] invalidateShadow];
|
||||
|
||||
GDK_QUARTZ_RELEASE_POOL;
|
||||
}
|
||||
|
||||
|
||||
@@ -2623,6 +2623,9 @@ gdk_window_set_decorations (GdkWindow *window,
|
||||
backing:NSBackingStoreBuffered
|
||||
defer:NO];
|
||||
|
||||
[impl->toplevel setHasShadow: window_type_hint_to_shadow (impl->type_hint)];
|
||||
[impl->toplevel setLevel: window_type_hint_to_level (impl->type_hint)];
|
||||
|
||||
[impl->toplevel setContentView:old_view];
|
||||
[impl->toplevel setFrame:rect display:YES];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user