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/client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index 5830066e..47da397a 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -490,6 +490,11 @@ void client_find_resize_directional(ObClient *self, ObDirection side, */ void client_fullscreen(ObClient *self, gboolean fs); +/*! Determine if the window, using the given client-area, would be considered + as an "oldschool fullscreen" window, that is, if it is filling a whole + monitor. */ +gboolean client_is_oldfullscreen(const ObClient const *self, const Rect *area); + /*! Iconifies or uniconifies the client window @param iconic true if the window should be iconified; false if it should be restored. -- cgit v1.2.3