From 22333336d3ba36784955c67444f996b557f3838a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 Jan 2008 19:32:45 -0500 Subject: add an option for window placement, to try force new windows on the active monitor (for xinerama) --- openbox/config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbox/config.h') diff --git a/openbox/config.h b/openbox/config.h index 9d0602e2..2c4b4dba 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -75,9 +75,13 @@ extern gboolean config_focus_last; */ extern gboolean config_focus_under_mouse; +/*! The algorithm to use for placing new windows */ extern ObPlacePolicy config_place_policy; /*! Place windows in the center of the free area */ extern gboolean config_place_center; +/*! Place windows on the active monitor (unless they are part of an application + already on another monitor) */ +extern gboolean config_place_active; /*! User-specified margins around the edge of the screen(s) */ extern StrutPartial config_margins; -- cgit v1.2.3 From 17bc51aab8be25cd44c55eb0a652c92518bd9b0f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 Jan 2008 20:24:16 -0500 Subject: let you specify the resize popup to be in a fixed place --- openbox/config.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'openbox/config.h') diff --git a/openbox/config.h b/openbox/config.h index 2c4b4dba..4fa9c70b 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -24,6 +24,7 @@ #include "stacking.h" #include "place.h" #include "geom.h" +#include "moveresize.h" #include "render/render.h" #include @@ -92,8 +93,24 @@ extern gboolean config_resize_redraw; /*! show move/resize popups? 0 = no, 1 = always, 2 = only resizing !1 increments */ extern gint config_resize_popup_show; -/*! where to show the popup, currently above the window or centered */ -extern gint config_resize_popup_pos; +/*! where to show the resize popup */ +extern ObResizePopupPos config_resize_popup_pos; +/*! if the resize popup should be centered horizontally if it is being + placed in a fixed position */ +extern gboolean config_resize_popup_x_center; +/*! if the resize popup should be centered vertically if it is being + placed in a fixed position */ +extern gboolean config_resize_popup_y_center; +/*! if the resize popup should be placed from the right side of the screen when + placed in a fixed position */ +extern gboolean config_resize_popup_x_opposite; +/*! if the resize popup should be placed from the bottom side of the screen + when placed in a fixed position */ +extern gboolean config_resize_popup_y_opposite; +/*! where the resize popup should be if it is placed in a fixed position */ +extern gint config_resize_popup_x; +/*! where the resize popup should be if it is placed in a fixed position */ +extern gint config_resize_popup_y; /*! The stacking layer the dock will reside in */ extern ObStackingLayer config_dock_layer; -- cgit v1.2.3 From c2e495c720d93521bdb0e1bfd7e76584a1b329b7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 Jan 2008 20:58:03 -0500 Subject: make a GravityPoint and GravityCoord data structures for those --x, ++y type values --- openbox/config.h | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'openbox/config.h') diff --git a/openbox/config.h b/openbox/config.h index 4fa9c70b..240b04f1 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -39,11 +39,7 @@ struct _ObAppSettings GPatternSpec *name; GPatternSpec *role; - Point position; - gboolean center_x; - gboolean center_y; - gboolean opposite_x; - gboolean opposite_y; + GravityPoint position; gboolean pos_given; guint desktop; @@ -95,22 +91,8 @@ extern gboolean config_resize_redraw; extern gint config_resize_popup_show; /*! where to show the resize popup */ extern ObResizePopupPos config_resize_popup_pos; -/*! if the resize popup should be centered horizontally if it is being - placed in a fixed position */ -extern gboolean config_resize_popup_x_center; -/*! if the resize popup should be centered vertically if it is being - placed in a fixed position */ -extern gboolean config_resize_popup_y_center; -/*! if the resize popup should be placed from the right side of the screen when - placed in a fixed position */ -extern gboolean config_resize_popup_x_opposite; -/*! if the resize popup should be placed from the bottom side of the screen - when placed in a fixed position */ -extern gboolean config_resize_popup_y_opposite; -/*! where the resize popup should be if it is placed in a fixed position */ -extern gint config_resize_popup_x; -/*! where the resize popup should be if it is placed in a fixed position */ -extern gint config_resize_popup_y; +/*! where to place the popup if it's in a fixed position */ +extern GravityPoint config_resize_popup_fixed; /*! The stacking layer the dock will reside in */ extern ObStackingLayer config_dock_layer; -- cgit v1.2.3