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

Proposed by Alberts Muktupāvels on 2017-07-04
Status: Merged
Approved by: Marco Trevisan (Treviño) on 2017-07-04
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) 2017-07-04 Approve on 2017-07-04
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.
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
1=== modified file 'gtk/window-decorator/util.c'
2--- gtk/window-decorator/util.c 2016-03-18 18:45:32 +0000
3+++ gtk/window-decorator/util.c 2017-07-04 12:20:21 +0000
4@@ -75,7 +75,7 @@
5 gdk_error_trap_push ();
6
7 result = XGetWindowProperty (xdisplay, xwindow, mwm_hints_atom,
8- 0L, 20L, FALSE, mwm_hints_atom,
9+ 0L, 20L, FALSE, AnyPropertyType,
10 &actual, &format, &n, &left, &data);
11
12 err = gdk_error_trap_pop ();
13
14=== modified file 'src/screen.cpp'
15--- src/screen.cpp 2017-06-29 17:19:21 +0000
16+++ src/screen.cpp 2017-07-04 12:20:21 +0000
17@@ -1839,7 +1839,7 @@
18
19 result = XGetWindowProperty (dpy, id,
20 Atoms::mwmHints,
21- 0L, 20L, false, Atoms::mwmHints,
22+ 0L, 20L, false, AnyPropertyType,
23 &actual, &format, &n, &left, &data);
24
25 if (result == Success && data)

Subscribers

People subscribed via source and target branches