diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-20 23:01:56 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-20 23:01:56 +0000 |
| commit | a09984bbc076bc37b11058237f51fa15114129e2 (patch) | |
| tree | 38f96eba3d598dd29f25ebc7fad22d92039ad0f5 /openbox/event.c | |
| parent | 888df2e10cbb751dbfb3bc03e88fd9846ca47c1c (diff) | |
add an obscured flag that tracks if the frame is at all obscured
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c index ed0e0965..8c640522 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -621,6 +621,9 @@ static void event_handle_client(ObClient *client, XEvent *e) ObFrameContext con; switch (e->type) { + case VisibilityNotify: + client->frame->obscured = e->xvisibility.state != VisibilityUnobscured; + break; case ButtonPress: case ButtonRelease: /* Wheel buttons don't draw because they are an instant click, so it |
