diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-01-31 09:24:32 +0100 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2008-01-31 09:24:32 +0100 |
commit | 4416007679541a9e144e3b8a5365adeaaddb04c8 (patch) | |
tree | 522cb54b56c91d929f1c7237909a600072fef57a /kde/window-decorator-kde4 | |
parent | 246cf6eb353459d3c666e59419e7d4c7e2679959 (diff) |
Make decoration atom names part of the decoration interface.
If those atom names do not match between decorator and decoration plugin, the decorator will be useless; so it makes sense to include them in the interface.
Diffstat (limited to 'kde/window-decorator-kde4')
-rw-r--r-- | kde/window-decorator-kde4/utils.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/kde/window-decorator-kde4/utils.cpp b/kde/window-decorator-kde4/utils.cpp index 9bca7b84..a849b799 100644 --- a/kde/window-decorator-kde4/utils.cpp +++ b/kde/window-decorator-kde4/utils.cpp @@ -23,6 +23,7 @@ #include "utils.h" +#include <decoration.h> #include <X11/Xlib.h> #include <X11/Xatom.h> @@ -179,15 +180,15 @@ KWD::Atoms::init (void) Display *xdisplay = QX11Info::display(); netFrameWindow = XInternAtom (xdisplay, "_NET_FRAME_WINDOW", false); - netWindowDecor = XInternAtom (xdisplay, "_COMPIZ_WINDOW_DECOR", false); + netWindowDecor = XInternAtom (xdisplay, DECOR_WINDOW_ATOM_NAME, false); netWindowDecorNormal = - XInternAtom (xdisplay, "_COMPIZ_WINDOW_DECOR_NORMAL", false); + XInternAtom (xdisplay, DECOR_NORMAL_ATOM_NAME, false); netWindowDecorActive = - XInternAtom (xdisplay, "_COMPIZ_WINDOW_DECOR_ACTIVE", false); + XInternAtom (xdisplay, DECOR_ACTIVE_ATOM_NAME, false); netWindowDecorBare = - XInternAtom (xdisplay, "_COMPIZ_WINDOW_DECOR_BARE", false); + XInternAtom (xdisplay, DECOR_BARE_ATOM_NAME, false); switchSelectWindow = - XInternAtom (xdisplay, "_COMPIZ_SWITCH_SELECT_WINDOW", false); + XInternAtom (xdisplay, DECOR_SWITCH_WINDOW_ATOM_NAME, false); wmTakeFocus = XInternAtom (xdisplay, "WM_TAKE_FOCUS", false); netWmContextHelp = XInternAtom (xdisplay, "_NET_WM_CONTEXT_HELP", false); @@ -205,5 +206,5 @@ KWD::Atoms::init (void) XInternAtom (xdisplay, "_COMPIZ_TOOLKIT_ACTION_FORCE_QUIT_DIALOG", false); compizWindowBlurDecor = - XInternAtom (xdisplay, "_COMPIZ_WM_WINDOW_BLUR_DECOR", false); + XInternAtom (xdisplay, DECOR_BLUR_ATOM_NAME, false); } |