diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-14 03:45:56 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-14 03:45:56 +0000 |
| commit | e2521f5c6477323ec683ace8c0af8b4c58112a54 (patch) | |
| tree | 492fad1572654b1fdc54414378cfc5aaa5bef881 /openbox/client.h | |
| parent | 4e19d8411d5619aa2562160de309c47c6e482129 (diff) | |
a) fix resizerelative moving windows when they reach their minimum size do this by...
b) adding a function to let you see what size/position a window will be given when you actually try move/resize it to some given values. (client_try_configure)
Diffstat (limited to 'openbox/client.h')
| -rw-r--r-- | openbox/client.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/openbox/client.h b/openbox/client.h index a01c2b0f..38480a66 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -347,6 +347,27 @@ gboolean client_focused(ObClient *self); #define client_configure(self, anchor, x, y, w, h, user, final) \ client_configure_full(self, anchor, x, y, w, h, user, final, FALSE) +/*! Figure out where a window will end up and what size it will be if you + told it to move/resize to these coordinates. + + These values are what client_configure_full will give the window. + + @param anchor The corner to keep in the same position when resizing. + @param x The x coordiante of the new position for the client. + @param y The y coordiante of the new position for the client. + @param w The width component of the new size for the client. + @param h The height component of the new size for the client. + @param logicalw Returns the width component of the new logical width. + @param logicalh Returns the height component of the new logical height. + @param user Specifies whether this is a user-requested change or a + program requested change. For program requested changes, the + constraints are not checked. +*/ +void client_try_configure(ObClient *self, ObCorner anchor, + gint *x, gint *y, gint *w, gint *h, + gint *logicalw, gint *logicalh, + gboolean user); + /*! Move and/or resize the window. This also maintains things like the client's minsize, and size increments. @param anchor The corner to keep in the same position when resizing. |
