summaryrefslogtreecommitdiffstats
path: root/x11vnc/solid.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-28 20:28:16 +0000
committerrunge <runge>2006-07-28 20:28:16 +0000
commit521f0338af52506e079a5075fbe9350904a67269 (patch)
tree42e67d78a1826f9c24520d52bcde91a9aaec2a2e /x11vnc/solid.c
parent901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (diff)
downloadlibtdevnc-521f0338af52506e079a5075fbe9350904a67269.tar.gz
libtdevnc-521f0338af52506e079a5075fbe9350904a67269.zip
x11vnc: -rotate option
Diffstat (limited to 'x11vnc/solid.c')
-rw-r--r--x11vnc/solid.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11vnc/solid.c b/x11vnc/solid.c
index 947c8ce..e5ff5cf 100644
--- a/x11vnc/solid.c
+++ b/x11vnc/solid.c
@@ -673,7 +673,13 @@ char *guess_desktop(void) {
if (prop != None) return "gnome";
prop = XInternAtom(dpy, "KWIN_RUNNING", True);
- if (prop != None) return "kde";
+ if (prop != None) {
+ prop = XInternAtom(dpy, "_KDE_RUNNING", True);
+ if (prop != None) {
+ prop = XInternAtom(dpy, "KDE_DESKTOP_WINDOW", True);
+ if (prop != None) return "kde";
+ }
+ }
prop = XInternAtom(dpy, "_MOTIF_WM_INFO", True);
if (prop != None) {