diff options
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.308 2015/11/10 20:05:33 okan Exp $ + * $OpenBSD: calmwm.h,v 1.309 2015/11/11 14:22:01 okan Exp $ */ #ifndef _CALMWM_H_ @@ -74,6 +74,9 @@ #define CWM_MENU_FILE 0x0002 #define CWM_MENU_LIST 0x0004 +#define CWM_GAP 0x0001 +#define CWM_NOGAP 0x0002 + #define CWM_KBD 0x0001 #define CWM_MOUSE 0x0002 @@ -217,6 +220,7 @@ TAILQ_HEAD(autogroupwin_q, autogroupwin); struct region_ctx { TAILQ_ENTRY(region_ctx) entry; int num; + struct geom area; struct geom view; /* viewable area */ struct geom work; /* workable area, gap-applied */ }; @@ -451,9 +455,10 @@ void search_print_client(struct menu *, int); void search_print_cmd(struct menu *, int); void search_print_group(struct menu *, int); +struct region_ctx *region_find(struct screen_ctx *, int, int); struct geom screen_apply_gap(struct screen_ctx *, struct geom); struct screen_ctx *screen_find(Window); -struct region_ctx *region_find(struct screen_ctx *, int, int); +struct geom screen_area(struct screen_ctx *, int, int, int); void screen_init(int); void screen_update_geometry(struct screen_ctx *); void screen_updatestackingorder(struct screen_ctx *); |