summaryrefslogtreecommitdiffstats
path: root/c2.c
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2013-06-19 19:36:48 +0800
committerRichard Grenville <pyxlcy@gmail.com>2013-06-19 19:36:48 +0800
commit1096bf90d96bc18a7e09fe5f26fa0c703f1fbdf8 (patch)
treeff452d09e30945f965888067fb8cfd0c19cd1005 /c2.c
parent0dca9aa79edbc5e2d665d9f65321adc32a595d2a (diff)
downloadtdebase-1096bf90d96bc18a7e09fe5f26fa0c703f1fbdf8.tar.gz
tdebase-1096bf90d96bc18a7e09fe5f26fa0c703f1fbdf8.zip
Misc: --paint-exclude & #119
- Add --paint-exclude to prevent certain windows from being painted, for debugging purposes. - Add predefined matching target "x", "y", "width", "height", "widthb", "heightb", "border_width", and "fullscreen". - Fix bug #119, wrong man page install dir in CMake configuration. Thanks to sstewartgallus for reporting.
Diffstat (limited to 'c2.c')
-rw-r--r--c2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/c2.c b/c2.c
index bd286278a..d2ca7be1f 100644
--- a/c2.c
+++ b/c2.c
@@ -1043,6 +1043,14 @@ c2_match_once_leaf(session_t *ps, win *w, const c2_l_t *pleaf,
*perr = false;
switch (pleaf->predef) {
case C2_L_PID: tgt = wid; break;
+ case C2_L_PX: tgt = w->a.x; break;
+ case C2_L_PY: tgt = w->a.y; break;
+ case C2_L_PWIDTH: tgt = w->a.width; break;
+ case C2_L_PHEIGHT: tgt = w->a.height; break;
+ case C2_L_PWIDTHB: tgt = w->widthb; break;
+ case C2_L_PHEIGHTB: tgt = w->heightb; break;
+ case C2_L_PBDW: tgt = w->a.border_width; break;
+ case C2_L_PFULLSCREEN: tgt = win_is_fullscreen(ps, w); break;
case C2_L_POVREDIR: tgt = w->a.override_redirect; break;
case C2_L_PARGB: tgt = (WMODE_ARGB == w->mode); break;
case C2_L_PFOCUSED: tgt = w->focused_real; break;