Commit d7da887e authored by Soeren Sandmann's avatar Soeren Sandmann Committed by Søren Sandmann Pedersen

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.
parent 69ab514a
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.
......
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.
......
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.
......
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.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment