ignore WINTYPE_UNKNOWN when determining wintype
This commit is contained in:
parent
51e2eec823
commit
c39010197b
|
@ -1362,7 +1362,7 @@ get_wintype_prop(Display * dpy, Window w) {
|
||||||
if (data != None) {
|
if (data != None) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < NUM_WINTYPES; ++i) {
|
for (i = 1; i < NUM_WINTYPES; ++i) {
|
||||||
Atom a;
|
Atom a;
|
||||||
memcpy(&a, data, sizeof(Atom));
|
memcpy(&a, data, sizeof(Atom));
|
||||||
if (a == win_type[i]) {
|
if (a == win_type[i]) {
|
||||||
|
@ -2376,6 +2376,7 @@ main(int argc, char **argv) {
|
||||||
"_NET_WM_WINDOW_OPACITY", False);
|
"_NET_WM_WINDOW_OPACITY", False);
|
||||||
win_type_atom = XInternAtom(dpy,
|
win_type_atom = XInternAtom(dpy,
|
||||||
"_NET_WM_WINDOW_TYPE", False);
|
"_NET_WM_WINDOW_TYPE", False);
|
||||||
|
win_type[WINTYPE_UNKNOWN] = 0;
|
||||||
win_type[WINTYPE_DESKTOP] = XInternAtom(dpy,
|
win_type[WINTYPE_DESKTOP] = XInternAtom(dpy,
|
||||||
"_NET_WM_WINDOW_TYPE_DESKTOP", False);
|
"_NET_WM_WINDOW_TYPE_DESKTOP", False);
|
||||||
win_type[WINTYPE_DOCK] = XInternAtom(dpy,
|
win_type[WINTYPE_DOCK] = XInternAtom(dpy,
|
||||||
|
|
Loading…
Reference in New Issue