From 64adc0eeba598cb1469b2140777fba30e3053f0e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 1 Mar 2010 16:30:06 -0500 Subject: 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. --- openbox/event.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'openbox/event.c') 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, -- cgit v1.2.3