X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fclient.h;h=cbb80ede6af41f0c86e9d27382f761fbf6e2caa8;hb=6772ec19fc5b3c4116c2b8d0aa8a6f0950d24d01;hp=a01c2b0f6083aad80c84105a683f9e23f9cd47ff;hpb=270a5b25df8db500f94a7c29430ebc224ddf18b2;p=chaz%2Fopenbox diff --git a/openbox/client.h b/openbox/client.h index a01c2b0f..cbb80ede 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. @@ -473,9 +494,6 @@ gboolean client_can_focus(ObClient *self); */ gboolean client_focus(ObClient *self); -/*! Remove focus from the client window */ -void client_unfocus(ObClient *self); - /*! Activates the client for use, focusing, uniconifying it, etc. To be used when the user deliberately selects a window for use. @param here If true, then the client is brought to the current desktop;