diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-01-27 23:49:34 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-01-27 23:49:34 +0000 |
commit | 7934cf9aeaac0850523edecc69a6e3427df64095 (patch) | |
tree | 15b1088477b919c7f42c5e65d64a0f940636f49a /gdk | |
parent | 607949ed5e91d1472b04dd62be3d93234c97331e (diff) | |
download | gtk+-7934cf9aeaac0850523edecc69a6e3427df64095.tar.gz |
Remove TimJ's checks for already being mapped or hidden. See the ICCCM's
Tue Jan 26 14:02:50 1999 Owen Taylor <otaylor@redhat.com>
* gdk/gdkwindow.c (gdk_window_show/hide): Remove TimJ's
checks for already being mapped or hidden. See
the ICCCM's section on state changes for why this
is a bad idea.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkwindow.c | 4 | ||||
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 601c748943..c3fd225817 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -742,7 +742,7 @@ gdk_window_show (GdkWindow *window) g_return_if_fail (window != NULL); private = (GdkWindowPrivate*) window; - if (!private->destroyed && !private->mapped) + if (!private->destroyed) { private->mapped = TRUE; XRaiseWindow (private->xdisplay, private->xwindow); @@ -758,7 +758,7 @@ gdk_window_hide (GdkWindow *window) g_return_if_fail (window != NULL); private = (GdkWindowPrivate*) window; - if (!private->destroyed && private->mapped) + if (!private->destroyed) { private->mapped = FALSE; XUnmapWindow (private->xdisplay, private->xwindow); diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 601c748943..c3fd225817 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -742,7 +742,7 @@ gdk_window_show (GdkWindow *window) g_return_if_fail (window != NULL); private = (GdkWindowPrivate*) window; - if (!private->destroyed && !private->mapped) + if (!private->destroyed) { private->mapped = TRUE; XRaiseWindow (private->xdisplay, private->xwindow); @@ -758,7 +758,7 @@ gdk_window_hide (GdkWindow *window) g_return_if_fail (window != NULL); private = (GdkWindowPrivate*) window; - if (!private->destroyed && private->mapped) + if (!private->destroyed) { private->mapped = FALSE; XUnmapWindow (private->xdisplay, private->xwindow); |