From 1121b2abb09882abafa8b3a4b280e742db6c3336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 10 Sep 2013 11:33:34 +0200 Subject: [PATCH] Port setting kwin_running atom to XCB --- workspace.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 600033796a..f4e193bf63 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -237,18 +237,10 @@ Workspace::Workspace(bool restore) new DBusInterface(this); // Compatibility - long data = 1; + int32_t data = 1; - XChangeProperty( - display(), - rootWindow(), - atoms->kwin_running, - atoms->kwin_running, - 32, - PropModeAppend, - (unsigned char*)(&data), - 1 - ); + xcb_change_property(connection(), XCB_PROP_MODE_APPEND, rootWindow(), atoms->kwin_running, + atoms->kwin_running, 32, 1, &data); client_keys = new KActionCollection(this);