aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2015-11-11 14:22:01 +0000
committerokan2015-11-11 14:22:01 +0000
commitf6f5e0fe9eb0a0ce66ee5d0720182bfadf2cf800 (patch)
tree55799ebc2fe2f87b956e1440a0b2ce413bbffe64 /calmwm.h
parent29e76eaac34fcdbc70eaccb72c3f68b638a4c5b2 (diff)
downloadcwm-f6f5e0fe9eb0a0ce66ee5d0720182bfadf2cf800.tar.gz
Partial revert of replacing screen_area() with region_find(); until a
fix for a regression is found; this bug has been around for a long time it seems, but this change exposed it. Likely need to track clients in to and out of regions.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/calmwm.h b/calmwm.h
index bf1ff36..72f6d21 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -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 *);