diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-03-01 16:30:06 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-03-01 16:32:27 -0500 |
| commit | 64adc0eeba598cb1469b2140777fba30e3053f0e (patch) | |
| tree | 5930be9cc22e096f203dcefd6aefdc0c041126af /openbox/event.c | |
| parent | 28df6162a9fbca4544e8f384d3fdae70870f531a (diff) | |
add a function client_is_oldfullscreen() that determines if a window is an "oldschool fullscreen window" or not. use this throughout. and allow oldschool fullscreen windows to move to 0,0 even with a strut there.
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/openbox/event.c b/openbox/event.c index 7596fe3e..c4af7b23 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1256,15 +1256,9 @@ static void event_handle_client(ObClient *client, XEvent *e) g_print("x %d y %d grav %d %d\n", x, y, client->gravity, NorthWestGravity); if (x == 0 && y == 0 && client->gravity == NorthWestGravity) { const Rect to = { x, y, w, h }; - Rect const *monitor, *allmonitors; - monitor = screen_physical_area_monitor(client_monitor(client)); - allmonitors = screen_physical_area_all_monitors(); /* oldschool fullscreen windows are allowed */ - if (!(client->decorations == 0 && - (RECT_EQUAL(to, *monitor) || - RECT_EQUAL(to, *allmonitors)))) - { + if (!client_is_oldfullscreen(client, &to)) { Rect *r; r = screen_area(client->desktop, SCREEN_AREA_ALL_MONITORS, |
