aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r--src/Ewmh.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 2349d8a..c4349b9 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.20 2003/05/10 13:21:36 fluxgen Exp $ 22// $Id: Ewmh.cc,v 1.21 2003/05/10 22:56:48 fluxgen Exp $
23 23
24#include "Ewmh.hh" 24#include "Ewmh.hh"
25 25
@@ -50,13 +50,13 @@ void Ewmh::initForScreen(BScreen &screen) {
50 50
51 51
52 Window wincheck = XCreateSimpleWindow(disp, 52 Window wincheck = XCreateSimpleWindow(disp,
53 screen.getRootWindow(), 53 screen.rootWindow().window(),
54 0, 0, 5, 5, 0, 0, 0); 54 0, 0, 5, 5, 0, 0, 0);
55 55
56 if (wincheck != None) { 56 if (wincheck != None) {
57 m_windows.push_back(wincheck); 57 m_windows.push_back(wincheck);
58 58
59 XChangeProperty(disp, screen.getRootWindow(), m_net_supporting_wm_check, XA_WINDOW, 32, 59 XChangeProperty(disp, screen.rootWindow().window(), m_net_supporting_wm_check, XA_WINDOW, 32,
60 PropModeReplace, (unsigned char *) &wincheck, 1); 60 PropModeReplace, (unsigned char *) &wincheck, 1);
61 XChangeProperty(disp, wincheck, m_net_supporting_wm_check, XA_WINDOW, 32, 61 XChangeProperty(disp, wincheck, m_net_supporting_wm_check, XA_WINDOW, 32,
62 PropModeReplace, (unsigned char *) &wincheck, 1); 62 PropModeReplace, (unsigned char *) &wincheck, 1);
@@ -86,7 +86,7 @@ void Ewmh::initForScreen(BScreen &screen) {
86 m_net_supporting_wm_check 86 m_net_supporting_wm_check
87 }; 87 };
88 88
89 XChangeProperty(disp, screen.getRootWindow(), 89 XChangeProperty(disp, screen.rootWindow().window(),
90 m_net_supported, XA_ATOM, 32, 90 m_net_supported, XA_ATOM, 32,
91 PropModeReplace, 91 PropModeReplace,
92 (unsigned char *) &atomsupported, 92 (unsigned char *) &atomsupported,
@@ -193,7 +193,7 @@ void Ewmh::updateClientList(BScreen &screen) {
193 //number of windows to show in client list 193 //number of windows to show in client list
194 num = win; 194 num = win;
195 XChangeProperty(FbTk::App::instance()->display(), 195 XChangeProperty(FbTk::App::instance()->display(),
196 screen.getRootWindow(), 196 screen.rootWindow().window(),
197 m_net_client_list, 197 m_net_client_list,
198 XA_CARDINAL, 32, 198 XA_CARDINAL, 32,
199 PropModeReplace, (unsigned char *)wl, num); 199 PropModeReplace, (unsigned char *)wl, num);
@@ -213,7 +213,7 @@ void Ewmh::updateWorkspaceNames(BScreen &screen) {
213 } 213 }
214 214
215 if (XStringListToTextProperty(names, number_of_desks, &text)) { 215 if (XStringListToTextProperty(names, number_of_desks, &text)) {
216 XSetTextProperty(FbTk::App::instance()->display(), screen.getRootWindow(), 216 XSetTextProperty(FbTk::App::instance()->display(), screen.rootWindow().window(),
217 &text, m_net_desktop_names); 217 &text, m_net_desktop_names);
218 XFree(text.value); 218 XFree(text.value);
219 } 219 }
@@ -225,7 +225,7 @@ void Ewmh::updateWorkspaceNames(BScreen &screen) {
225void Ewmh::updateCurrentWorkspace(BScreen &screen) { 225void Ewmh::updateCurrentWorkspace(BScreen &screen) {
226 size_t workspace = screen.getCurrentWorkspaceID(); 226 size_t workspace = screen.getCurrentWorkspaceID();
227 XChangeProperty(FbTk::App::instance()->display(), 227 XChangeProperty(FbTk::App::instance()->display(),
228 screen.getRootWindow(), 228 screen.rootWindow().window(),
229 m_net_current_desktop, XA_CARDINAL, 32, PropModeReplace, 229 m_net_current_desktop, XA_CARDINAL, 32, PropModeReplace,
230 (unsigned char *)&workspace, 1); 230 (unsigned char *)&workspace, 1);
231 231
@@ -233,7 +233,7 @@ void Ewmh::updateCurrentWorkspace(BScreen &screen) {
233 233
234void Ewmh::updateWorkspaceCount(BScreen &screen) { 234void Ewmh::updateWorkspaceCount(BScreen &screen) {
235 size_t numworkspaces = screen.getCount(); 235 size_t numworkspaces = screen.getCount();
236 XChangeProperty(FbTk::App::instance()->display(), screen.getRootWindow(), 236 XChangeProperty(FbTk::App::instance()->display(), screen.rootWindow().window(),
237 m_net_number_of_desktops, XA_CARDINAL, 32, PropModeReplace, 237 m_net_number_of_desktops, XA_CARDINAL, 32, PropModeReplace,
238 (unsigned char *)&numworkspaces, 1); 238 (unsigned char *)&numworkspaces, 1);
239} 239}