Commit 1ed95716c99c288d73ce7e5c81bc64fb89dc310f

Authored by Alberts Muktupāvels
1 parent e860da99

Use AnyPropertyType when getting _MOTIF_WM_HINTS property.

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
gtk/window-decorator/util.c
... ... @@ -75,7 +75,7 @@ get_mwm_prop (Window xwindow)
75 75 gdk_error_trap_push ();
76 76  
77 77 result = XGetWindowProperty (xdisplay, xwindow, mwm_hints_atom,
78   - 0L, 20L, FALSE, mwm_hints_atom,
  78 + 0L, 20L, FALSE, AnyPropertyType,
79 79 &actual, &format, &n, &left, &data);
80 80  
81 81 err = gdk_error_trap_pop ();
... ...
src/screen.cpp
... ... @@ -1839,7 +1839,7 @@ cps::XWindowInfo::getMwmHints (Window id,
1839 1839  
1840 1840 result = XGetWindowProperty (dpy, id,
1841 1841 Atoms::mwmHints,
1842   - 0L, 20L, false, Atoms::mwmHints,
  1842 + 0L, 20L, false, AnyPropertyType,
1843 1843 &actual, &format, &n, &left, &data);
1844 1844  
1845 1845 if (result == Success && data)
... ...