diff options
author | rathnor <rathnor> | 2003-03-03 21:51:13 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-03-03 21:51:13 (GMT) |
commit | 19875e5a5ba474387971ede597cdc4aa7454d4c0 (patch) | |
tree | 99d672abcffa86d74734deacbd888eccde02ffd2 /src/Ewmh.cc | |
parent | 824fd0db7a4b8117fecba9bb46053bdd38691803 (diff) | |
download | fluxbox-19875e5a5ba474387971ede597cdc4aa7454d4c0.zip fluxbox-19875e5a5ba474387971ede597cdc4aa7454d4c0.tar.bz2 |
Add code for toolbar modes
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r-- | src/Ewmh.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc index 278016c..210122d 100644 --- a/src/Ewmh.cc +++ b/src/Ewmh.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Ewmh.cc,v 1.10 2003/02/02 16:32:37 rathnor Exp $ | 22 | // $Id: Ewmh.cc,v 1.11 2003/03/03 21:51:00 rathnor Exp $ |
23 | 23 | ||
24 | #include "Ewmh.hh" | 24 | #include "Ewmh.hh" |
25 | 25 | ||
@@ -42,7 +42,7 @@ Ewmh::~Ewmh() { | |||
42 | } | 42 | } |
43 | } | 43 | } |
44 | 44 | ||
45 | void Ewmh::initForScreen(const BScreen &screen) { | 45 | void Ewmh::initForScreen(BScreen &screen) { |
46 | Display *disp = BaseDisplay::getXDisplay(); | 46 | Display *disp = BaseDisplay::getXDisplay(); |
47 | 47 | ||
48 | Window wincheck = XCreateSimpleWindow(disp, | 48 | Window wincheck = XCreateSimpleWindow(disp, |
@@ -119,7 +119,7 @@ void Ewmh::setupWindow(FluxboxWindow &win) { | |||
119 | } | 119 | } |
120 | } | 120 | } |
121 | 121 | ||
122 | void Ewmh::updateClientList(const BScreen &screen) { | 122 | void Ewmh::updateClientList(BScreen &screen) { |
123 | size_t num=0; | 123 | size_t num=0; |
124 | 124 | ||
125 | BScreen::Workspaces::const_iterator workspace_it = screen.getWorkspacesList().begin(); | 125 | BScreen::Workspaces::const_iterator workspace_it = screen.getWorkspacesList().begin(); |
@@ -165,7 +165,7 @@ void Ewmh::updateClientList(const BScreen &screen) { | |||
165 | delete [] wl; | 165 | delete [] wl; |
166 | } | 166 | } |
167 | 167 | ||
168 | void Ewmh::updateWorkspaceNames(const BScreen &screen) { | 168 | void Ewmh::updateWorkspaceNames(BScreen &screen) { |
169 | XTextProperty text; | 169 | XTextProperty text; |
170 | const size_t number_of_desks = screen.getWorkspaceNames().size(); | 170 | const size_t number_of_desks = screen.getWorkspaceNames().size(); |
171 | 171 | ||
@@ -186,7 +186,7 @@ void Ewmh::updateWorkspaceNames(const BScreen &screen) { | |||
186 | delete [] names[i]; | 186 | delete [] names[i]; |
187 | } | 187 | } |
188 | 188 | ||
189 | void Ewmh::updateCurrentWorkspace(const BScreen &screen) { | 189 | void Ewmh::updateCurrentWorkspace(BScreen &screen) { |
190 | size_t workspace = screen.getCurrentWorkspaceID(); | 190 | size_t workspace = screen.getCurrentWorkspaceID(); |
191 | XChangeProperty(BaseDisplay::getXDisplay(), | 191 | XChangeProperty(BaseDisplay::getXDisplay(), |
192 | screen.getRootWindow(), | 192 | screen.getRootWindow(), |
@@ -195,7 +195,7 @@ void Ewmh::updateCurrentWorkspace(const BScreen &screen) { | |||
195 | 195 | ||
196 | } | 196 | } |
197 | 197 | ||
198 | void Ewmh::updateWorkspaceCount(const BScreen &screen) { | 198 | void Ewmh::updateWorkspaceCount(BScreen &screen) { |
199 | size_t numworkspaces = screen.getCount(); | 199 | size_t numworkspaces = screen.getCount(); |
200 | XChangeProperty(BaseDisplay::getXDisplay(), screen.getRootWindow(), | 200 | XChangeProperty(BaseDisplay::getXDisplay(), screen.getRootWindow(), |
201 | m_net_number_of_desktops, XA_CARDINAL, 32, PropModeReplace, | 201 | m_net_number_of_desktops, XA_CARDINAL, 32, PropModeReplace, |
@@ -225,7 +225,7 @@ void Ewmh::updateWorkspace(FluxboxWindow &win) { | |||
225 | } | 225 | } |
226 | 226 | ||
227 | // return true if we did handle the atom here | 227 | // return true if we did handle the atom here |
228 | bool Ewmh::checkClientMessage(const XClientMessageEvent &ce, BScreen * const screen, FluxboxWindow * const win) { | 228 | bool Ewmh::checkClientMessage(const XClientMessageEvent &ce, BScreen * screen, FluxboxWindow * const win) { |
229 | 229 | ||
230 | if (ce.message_type == m_net_wm_desktop) { | 230 | if (ce.message_type == m_net_wm_desktop) { |
231 | if (screen == 0) | 231 | if (screen == 0) |