diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-03-20 00:26:42 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-05-06 12:51:17 -0400 |
commit | da75989b3918508058ed056ae9e2092e14023ebc (patch) | |
tree | c2a3760f41fb683ab322f5a8673c3a9592c0d8a1 /tools | |
parent | 5b4ee5fb40269afaa106b55dd4755125c2f9107a (diff) | |
download | dbus-da75989b3918508058ed056ae9e2092e14023ebc.tar.gz |
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.c | 6 |
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 */ |