diff options
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) |