aboutsummaryrefslogtreecommitdiff
path: root/src/Resources.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2013-02-06 12:47:11 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-02-06 12:47:17 (GMT)
commit34343bb20bdb3dc94fe426f69e5db16315353d57 (patch)
treecbf01e0b2af4ca14c093ada589f82558ec7d3a66 /src/Resources.cc
parent94fddc09c064555721dc521e3e94ed6f610653b9 (diff)
downloadfluxbox-34343bb20bdb3dc94fe426f69e5db16315353d57.zip
fluxbox-34343bb20bdb3dc94fe426f69e5db16315353d57.tar.bz2
Feature #3602124: 'LHalf' and 'RHalf' buttons to the titlebar
First draft of feature request of #3602124: Having 2 buttons in the titlebar which allow quick positioning of a Window into the left or right half of the current monitor.
Diffstat (limited to 'src/Resources.cc')
-rw-r--r--src/Resources.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Resources.cc b/src/Resources.cc
index 2e07725..128eedd 100644
--- a/src/Resources.cc
+++ b/src/Resources.cc
@@ -108,6 +108,12 @@ getString() const {
108 case WinButton::MENUICON: 108 case WinButton::MENUICON:
109 retval.append("MenuIcon"); 109 retval.append("MenuIcon");
110 break; 110 break;
111 case WinButton::LEFT_HALF:
112 retval.append("LHalf");
113 break;
114 case WinButton::RIGHT_HALF:
115 retval.append("RHalf");
116 break;
111 default: 117 default:
112 break; 118 break;
113 } 119 }
@@ -142,6 +148,10 @@ setFromString(char const *strval) {
142 m_value.push_back(WinButton::MENUICON); 148 m_value.push_back(WinButton::MENUICON);
143 else if (v == "close") 149 else if (v == "close")
144 m_value.push_back(WinButton::CLOSE); 150 m_value.push_back(WinButton::CLOSE);
151 else if (v == "lhalf")
152 m_value.push_back(WinButton::LEFT_HALF);
153 else if (v == "rhalf")
154 m_value.push_back(WinButton::RIGHT_HALF);
145 } 155 }
146} 156}
147 157