Merge lp:~muktupavels/compiz/motif-wm-hints into lp:compiz/0.9.13

Proposed by Alberts Muktupāvels
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 4127
Merged at revision: 4127
Proposed branch: lp:~muktupavels/compiz/motif-wm-hints
Merge into: lp:compiz/0.9.13
Diff against target: 25 lines (+2/-2)
2 files modified
gtk/window-decorator/util.c (+1/-1)
src/screen.cpp (+1/-1)
To merge this branch: bzr merge lp:~muktupavels/compiz/motif-wm-hints
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+326777@code.launchpad.net

Commit message

Use AnyPropertyType when getting _MOTIF_WM_HINTS property.

Description of the change

Use AnyPropertyType when getting _MOTIF_WM_HINTS property.

xprop -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x0, 0x0, 0x0"
This can be used to turn off window decorations, but does not work in compiz.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Ack

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'gtk/window-decorator/util.c'
--- gtk/window-decorator/util.c 2016-03-18 18:45:32 +0000
+++ gtk/window-decorator/util.c 2017-07-04 12:20:21 +0000
@@ -75,7 +75,7 @@
75 gdk_error_trap_push ();75 gdk_error_trap_push ();
7676
77 result = XGetWindowProperty (xdisplay, xwindow, mwm_hints_atom,77 result = XGetWindowProperty (xdisplay, xwindow, mwm_hints_atom,
78 0L, 20L, FALSE, mwm_hints_atom,78 0L, 20L, FALSE, AnyPropertyType,
79 &actual, &format, &n, &left, &data);79 &actual, &format, &n, &left, &data);
8080
81 err = gdk_error_trap_pop ();81 err = gdk_error_trap_pop ();
8282
=== modified file 'src/screen.cpp'
--- src/screen.cpp 2017-06-29 17:19:21 +0000
+++ src/screen.cpp 2017-07-04 12:20:21 +0000
@@ -1839,7 +1839,7 @@
18391839
1840 result = XGetWindowProperty (dpy, id,1840 result = XGetWindowProperty (dpy, id,
1841 Atoms::mwmHints,1841 Atoms::mwmHints,
1842 0L, 20L, false, Atoms::mwmHints,1842 0L, 20L, false, AnyPropertyType,
1843 &actual, &format, &n, &left, &data);1843 &actual, &format, &n, &left, &data);
18441844
1845 if (result == Success && data)1845 if (result == Success && data)

Subscribers

People subscribed via source and target branches