diff options
Diffstat (limited to 'x11vnc/solid.c')
-rw-r--r-- | x11vnc/solid.c | 8 |
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) { |