summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-01-27 23:49:34 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-01-27 23:49:34 +0000
commit7934cf9aeaac0850523edecc69a6e3427df64095 (patch)
tree15b1088477b919c7f42c5e65d64a0f940636f49a /gdk
parent607949ed5e91d1472b04dd62be3d93234c97331e (diff)
downloadgtk+-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.c4
-rw-r--r--gdk/x11/gdkwindow-x11.c4
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);