Fix a warning Actually unset bg.

Sat Jul 10 01:06:05 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
	* gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
	bg.
This commit is contained in:
Soeren Sandmann 2004-07-09 23:06:35 +00:00 committed by Søren Sandmann Pedersen
parent 69ab514aef
commit d7da887ee6
5 changed files with 34 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Sat Jul 10 01:06:05 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
* gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
bg.
Sat Jul 10 00:37:45 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 113310.

View File

@ -1,3 +1,9 @@
Sat Jul 10 01:06:05 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
* gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
bg.
Sat Jul 10 00:37:45 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 113310.

View File

@ -1,3 +1,9 @@
Sat Jul 10 01:06:05 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
* gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
bg.
Sat Jul 10 00:37:45 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 113310.

View File

@ -1,3 +1,9 @@
Sat Jul 10 01:06:05 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
* gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
bg.
Sat Jul 10 00:37:45 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 113310.

View File

@ -1340,12 +1340,17 @@ show_window_internal (GdkWindow *window,
if (impl->position_info.mapped)
{
gboolean unset_bg = !private->input_only &&
(private->window_type == GDK_WINDOW_CHILD ||
impl->override_redirect) &&
gdk_window_is_viewable (window);
if (unset_bg)
_gdk_x11_window_tmp_unset_bg (window, TRUE);
XMapWindow (xdisplay, xwindow);
if (!private->input_only &&
(private->window_type == GDK_WINDOW_CHILD ||
impl->override_redirect) &&
gdk_window_is_viewable (window))
if (unset_bg)
{
_gdk_x11_window_tmp_reset_bg (window, TRUE);
gdk_window_invalidate_rect (window, NULL, TRUE);
@ -1426,7 +1431,7 @@ post_unmap (GdkWindow *window)
return;
if (private->window_type == GDK_WINDOW_CHILD)
start_window = private->parent;
start_window = (GdkWindow *)private->parent;
else if (private->window_type == GDK_WINDOW_TEMP)
start_window = get_root (window);