kwin: adjusting to the latest ewmh spec

Renaming _KDE_NET_WM_OPAQUE_REGION to _NET_WM_OPAQUE_REGION because it
is now an official part of the spec, see
http://www.mail-archive.com/wm-spec-list@gnome.org/msg00842.html
This commit is contained in:
Philipp Knechtges 2011-12-13 21:17:19 +01:00
parent 8ed9b35755
commit 929f0fb643
4 changed files with 5 additions and 5 deletions

View file

@ -120,8 +120,8 @@ Atoms::Atoms()
atoms[n] = &kde_net_wm_shadow; atoms[n] = &kde_net_wm_shadow;
names[n++] = (char*) "_KDE_NET_WM_SHADOW"; names[n++] = (char*) "_KDE_NET_WM_SHADOW";
atoms[n] = &kde_net_wm_opaque_region; atoms[n] = &net_wm_opaque_region;
names[n++] = (char*) "_KDE_NET_WM_OPAQUE_REGION"; names[n++] = (char*) "_NET_WM_OPAQUE_REGION";
atoms[n] = &kde_net_wm_tab_group; atoms[n] = &kde_net_wm_tab_group;
names[n++] = (char*) "_KDE_NET_WM_TAB_GROUP"; names[n++] = (char*) "_KDE_NET_WM_TAB_GROUP";

View file

@ -62,7 +62,7 @@ public:
Atom net_wm_sync_request; Atom net_wm_sync_request;
Atom kde_net_wm_block_compositing; Atom kde_net_wm_block_compositing;
Atom kde_net_wm_shadow; Atom kde_net_wm_shadow;
Atom kde_net_wm_opaque_region; Atom net_wm_opaque_region;
Atom kde_net_wm_tab_group; Atom kde_net_wm_tab_group;
}; };

View file

@ -1656,7 +1656,7 @@ void Toplevel::propertyNotifyEvent(XPropertyEvent* e)
getWindowRole(); getWindowRole();
else if (e->atom == atoms->kde_net_wm_shadow) else if (e->atom == atoms->kde_net_wm_shadow)
getShadow(); getShadow();
else if (e->atom == atoms->kde_net_wm_opaque_region) else if (e->atom == atoms->net_wm_opaque_region)
getWmOpaqueRegion(); getWmOpaqueRegion();
break; break;
} }

View file

@ -408,7 +408,7 @@ void Toplevel::getWmOpaqueRegion()
int rformat; int rformat;
unsigned long nitems; unsigned long nitems;
if (XGetWindowProperty(display(), client, if (XGetWindowProperty(display(), client,
atoms->kde_net_wm_opaque_region, 0, length, false, XA_CARDINAL, atoms->net_wm_opaque_region, 0, length, false, XA_CARDINAL,
&type, &rformat, &nitems, &bytes_after_return, &type, &rformat, &nitems, &bytes_after_return,
reinterpret_cast< unsigned char** >(&data)) == Success) { reinterpret_cast< unsigned char** >(&data)) == Success) {
if (type != XA_CARDINAL || rformat != 32 || nitems%4) { if (type != XA_CARDINAL || rformat != 32 || nitems%4) {