From 10a833b2cba11349a57071a7538cae9a560b8cc9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 1 Oct 2012 21:43:56 -0400 Subject: Allow application rules to control window size (Fix bug 4661) Use the following in your per-app rules: A B A and B can be integer values to specify a size in pixels. They can also be percentages or fractions to be relative to the size of the monitor the window is placed on. --- openbox/place.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'openbox/place.h') diff --git a/openbox/place.h b/openbox/place.h index 94e2dc0f..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; @@ -39,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 -- cgit v1.2.3