X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.h;h=3bc679e0d536aa8227f4a1e15f7e7da1d9513288;hb=HEAD;hp=25df752c58ba8f02477b91cc1cc068dc3e779b32;hpb=4d2ccf19168a4089a6a0de0109610479ec6d5507;p=chaz%2Fopenbox diff --git a/openbox/place.h b/openbox/place.h index 25df752c..3bc679e0 100644 --- a/openbox/place.h +++ b/openbox/place.h @@ -20,6 +20,8 @@ #ifndef ob__place_h #define ob__place_h +#include "geom.h" + #include struct _ObClient; @@ -28,8 +30,7 @@ struct _ObAppSettings; typedef enum { OB_PLACE_POLICY_SMART, - OB_PLACE_POLICY_MOUSE, - OB_PLACE_POLICY_LEASTOVERLAP, + OB_PLACE_POLICY_MOUSE } ObPlacePolicy; typedef enum @@ -40,7 +41,10 @@ typedef enum OB_PLACE_MONITOR_PRIMARY } ObPlaceMonitor; -gboolean place_client(struct _ObClient *client, gboolean foreground, - gint *x, gint *y, struct _ObAppSettings *settings); +/*! Return TRUE if openbox chose the position for the window, and FALSE if + the application chose it */ +gboolean place_client(struct _ObClient *client, + gboolean client_to_be_foregrounded, + Rect* client_area, struct _ObAppSettings *settings); #endif