summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-08-20 23:01:56 +0000
committerDana Jansens <danakj@orodu.net>2003-08-20 23:01:56 +0000
commita09984bbc076bc37b11058237f51fa15114129e2 (patch)
tree38f96eba3d598dd29f25ebc7fad22d92039ad0f5 /openbox/frame.c
parent888df2e10cbb751dbfb3bc03e88fd9846ca47c1c (diff)
add an obscured flag that tracks if the frame is at all obscured
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 0d5ddb2e..a38bcfbe 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -8,7 +8,8 @@
#define PLATE_EVENTMASK (SubstructureRedirectMask | ButtonPressMask)
#define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \
- ButtonPressMask | ButtonReleaseMask)
+ ButtonPressMask | ButtonReleaseMask | \
+ VisibilityChangeMask)
#define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \
ButtonMotionMask | ExposureMask | \
EnterWindowMask | LeaveWindowMask)
@@ -36,6 +37,7 @@ ObFrame *frame_new()
self = g_new(ObFrame, 1);
self->visible = FALSE;
+ self->obscured = TRUE;
self->decorations = 0;
/* create all of the decor windows */