summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorrhp <rhp>2001-06-23 06:54:28 +0000
committerrhp <rhp>2001-06-23 06:54:28 +0000
commitf9c2652e0d7c0edd76459366159701134a0444b5 (patch)
tree07d9d6535f02bf3e2877dd9c9be978dcedabdf2b /src/frames.c
parentc1251f5d9ccb1968fc735e300643aa3c21fb1c4a (diff)
downloadmetacity-f9c2652e0d7c0edd76459366159701134a0444b5.tar.gz
...
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/frames.c b/src/frames.c
index 235406f9..07ddfab6 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -966,12 +966,15 @@ meta_frames_button_press_event (GtkWidget *widget,
flags = meta_core_get_frame_flags (gdk_display, frame->xwindow);
- if (flags & META_FRAME_SHADED)
- meta_core_unshade (gdk_display,
- frame->xwindow);
- else
- meta_core_shade (gdk_display,
- frame->xwindow);
+ if (flags & META_FRAME_ALLOWS_SHADE)
+ {
+ if (flags & META_FRAME_SHADED)
+ meta_core_unshade (gdk_display,
+ frame->xwindow);
+ else
+ meta_core_shade (gdk_display,
+ frame->xwindow);
+ }
return TRUE;
}