summaryrefslogtreecommitdiff
path: root/openbox/client.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-28 18:06:55 +0000
committerDana Jansens <danakj@orodu.net>2003-07-28 18:06:55 +0000
commit950516124f49000bd8df0481df0c54a14a05b7f9 (patch)
tree328c8c69d13914b334232467ff929ccb8828de59 /openbox/client.h
parentd8d2fd7148c46eb4acba9d647adaddfa906c0652 (diff)
make those apps stay/map on screen!! fuck stupid apps. thats right im talking to you mozilla and you too java.
Diffstat (limited to 'openbox/client.h')
-rw-r--r--openbox/client.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/openbox/client.h b/openbox/client.h
index 7001765f..4421f8fe 100644
--- a/openbox/client.h
+++ b/openbox/client.h
@@ -284,10 +284,28 @@ void client_configure(ObClient *self, ObCorner anchor,
void client_reconfigure(ObClient *self);
+/*! Finds coordinates to keep a client on the screen.
+ @param self The client
+ @param x The x coord of the client, may be changed.
+ @param y The y coord of the client, may be changed.
+ @param w The width of the client.
+ @param w The height of the client.
+ @param rude Be rude about it. If false, it is only moved if it is entirely
+ not visible. If true, then make sure the window is inside the
+ struts if possible.
+ @return true if the client was moved to be on-screen; false if not.
+*/
+gboolean client_find_onscreen(ObClient *self, int *x, int *y, int w, int h,
+ gboolean rude);
+
/*! Moves a client so that it is on screen if it is entirely out of the
viewable screen.
+ @param self The client to move
+ @param rude Be rude about it. If false, it is only moved if it is entirely
+ not visible. If true, then make sure the window is inside the
+ struts if possible.
*/
-void client_move_onscreen(ObClient *self);
+void client_move_onscreen(ObClient *self, gboolean rude);
/*! Fullscreen's or unfullscreen's the client window
@param fs true if the window should be made fullscreen; false if it should