summaryrefslogtreecommitdiff
path: root/openbox/place.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2012-10-01 21:43:56 -0400
committerDana Jansens <danakj@orodu.net>2012-10-06 23:04:57 -0400
commit10a833b2cba11349a57071a7538cae9a560b8cc9 (patch)
tree661456c5b74cafa939eaa97287ff6b823ce205bf /openbox/place.h
parent5e282dae08be3b900e0337efa0fae8f3ffa92cd7 (diff)
Allow application rules to control window size (Fix bug 4661)
Use the following in your per-app rules: <size> <width>A</width> <height>B</height> </size> 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.
Diffstat (limited to 'openbox/place.h')
-rw-r--r--openbox/place.h9
1 files changed, 7 insertions, 2 deletions
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 <glib.h>
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