From 1ed95716c99c288d73ce7e5c81bc64fb89dc310f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Tue, 4 Jul 2017 15:14:30 +0300 Subject: [PATCH] Use AnyPropertyType when getting _MOTIF_WM_HINTS property. --- gtk/window-decorator/util.c | 2 +- src/screen.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/window-decorator/util.c b/gtk/window-decorator/util.c index db7434573..2fcd78744 100644 --- a/gtk/window-decorator/util.c +++ b/gtk/window-decorator/util.c @@ -75,7 +75,7 @@ get_mwm_prop (Window xwindow) gdk_error_trap_push (); result = XGetWindowProperty (xdisplay, xwindow, mwm_hints_atom, - 0L, 20L, FALSE, mwm_hints_atom, + 0L, 20L, FALSE, AnyPropertyType, &actual, &format, &n, &left, &data); err = gdk_error_trap_pop (); diff --git a/src/screen.cpp b/src/screen.cpp index 33d0a9c33..bd99aec55 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -1839,7 +1839,7 @@ cps::XWindowInfo::getMwmHints (Window id, result = XGetWindowProperty (dpy, id, Atoms::mwmHints, - 0L, 20L, false, Atoms::mwmHints, + 0L, 20L, false, AnyPropertyType, &actual, &format, &n, &left, &data); if (result == Success && data) -- GitLab