aboutsummaryrefslogtreecommitdiff
path: root/src/ClientPattern.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r--src/ClientPattern.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc
index f49f7fd..f57513d 100644
--- a/src/ClientPattern.cc
+++ b/src/ClientPattern.cc
@@ -67,13 +67,17 @@ struct Name2WinProperty {
67 ClientPattern::WinProperty prop; 67 ClientPattern::WinProperty prop;
68}; 68};
69 69
70const Name2WinProperty name_2_winproperties[] = { // sorted for 'bsearch' 70// sorted alphabetically for 'bsearch'
71const Name2WinProperty name_2_winproperties[] = {
71 { "class", ClientPattern::CLASS }, 72 { "class", ClientPattern::CLASS },
72 { "focushidden", ClientPattern::FOCUSHIDDEN }, 73 { "focushidden", ClientPattern::FOCUSHIDDEN },
74 { "fullscreen", ClientPattern::FULLSCREEN },
73 { "head", ClientPattern::HEAD }, 75 { "head", ClientPattern::HEAD },
74 { "iconhidden", ClientPattern::ICONHIDDEN }, 76 { "iconhidden", ClientPattern::ICONHIDDEN },
75 { "layer", ClientPattern::LAYER }, 77 { "layer", ClientPattern::LAYER },
76 { "maximized", ClientPattern::MAXIMIZED }, 78 { "maximized", ClientPattern::MAXIMIZED },
79 { "maximizedhorizontal", ClientPattern::HORZMAX },
80 { "maximizedvertical", ClientPattern::VERTMAX },
77 { "minimized", ClientPattern::MINIMIZED }, 81 { "minimized", ClientPattern::MINIMIZED },
78 { "name", ClientPattern::NAME }, 82 { "name", ClientPattern::NAME },
79 { "role", ClientPattern::ROLE }, 83 { "role", ClientPattern::ROLE },
@@ -132,6 +136,9 @@ Prop2String property_2_strings[] = { // sorted by 'prop'
132 { ClientPattern::URGENT, "urgent" }, 136 { ClientPattern::URGENT, "urgent" },
133 { ClientPattern::SCREEN, "screen" }, 137 { ClientPattern::SCREEN, "screen" },
134 { ClientPattern::XPROP, "@" }, 138 { ClientPattern::XPROP, "@" },
139 { ClientPattern::FULLSCREEN, "fullscreen" },
140 { ClientPattern::VERTMAX, "maximizedvertical" },
141 { ClientPattern::HORZMAX, "maximizedhorizontal" },
135}; 142};
136 143
137 144
@@ -411,6 +418,15 @@ FbTk::FbString ClientPattern::getProperty(WinProperty prop, const Focusable &cli
411 case MINIMIZED: 418 case MINIMIZED:
412 result = (fbwin && fbwin->isIconic()) ? "yes" : "no"; 419 result = (fbwin && fbwin->isIconic()) ? "yes" : "no";
413 break; 420 break;
421 case FULLSCREEN:
422 result = (fbwin && fbwin->isFullscreen()) ? "yes" : "no";
423 break;
424 case VERTMAX:
425 result = (fbwin && fbwin->isMaximizedVert()) ? "yes" : "no";
426 break;
427 case HORZMAX:
428 result = (fbwin && fbwin->isMaximizedHorz()) ? "yes" : "no";
429 break;
414 case SHADED: 430 case SHADED:
415 result = (fbwin && fbwin->isShaded()) ? "yes" : "no"; 431 result = (fbwin && fbwin->isShaded()) ? "yes" : "no";
416 break; 432 break;