summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-03-20 00:26:42 -0400
committerThiago Macieira <thiago@kde.org>2009-03-20 09:08:37 +0100
commit8f5c3e3c25901b089bc3fb87d53c7a98df48121f (patch)
tree5dcd11684795d85f0453b1104094b3c5061f400f /tools
parent387ccafb4df116bdcc7f4a07cd0098a1f445b958 (diff)
dbus-launch: use InputOnly X window
Working on SELinux policy for X, and came across this issue in dbus-launch: Windows created for use as property/selection placeholders should be of class InputOnly, since no drawing is ever done to them. Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov> Signed-off-by: Thiago Macieira <thiago@kde.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-launch-x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dbus-launch-x11.c b/tools/dbus-launch-x11.c
index 442e9ba2..b1824181 100644
--- a/tools/dbus-launch-x11.c
+++ b/tools/dbus-launch-x11.c
@@ -361,9 +361,9 @@ set_address_in_x11(char *address, pid_t pid)
}
/* Create our window */
- wid = XCreateSimpleWindow (xdisplay, RootWindow (xdisplay, 0), -20, -20, 10, 10,
- 0, WhitePixel (xdisplay, 0),
- BlackPixel (xdisplay, 0));
+ wid = XCreateWindow (xdisplay, RootWindow (xdisplay, 0), -20, -20, 10, 10,
+ 0, CopyFromParent, InputOnly, CopyFromParent,
+ 0, NULL);
verbose ("Created window %d\n", wid);
/* Save the property in the window */