[X2Go-Commits] [live-build-x2go] 50/59: added support for x2go-kdrive in screensaver mechanism
git-admin at x2go.org
git-admin at x2go.org
Mon Nov 28 19:34:59 CET 2022
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox-magic-pixel-workaround-buster
in repository live-build-x2go.
commit bed9244edc94675a7dc4722679dc297206a55d02
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Mon Jun 29 14:52:27 2020 +0200
added support for x2go-kdrive in screensaver mechanism
---
.../X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/config/includes.chroot/etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver b/config/includes.chroot/etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver
index 08119ef..381582e 100644
--- a/config/includes.chroot/etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver
+++ b/config/includes.chroot/etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver
@@ -62,6 +62,15 @@ else
xdotool sleep 0.1 mousemove_relative -- 11 0 sleep 0.1 mousemove_relative -- -11 0
## Option: toggle NumLock instead
# xdotool sleep 0.1 key Num_Lock sleep 0.1 key Num_Lock
+ elif ps -C x2gokdriveclient >/dev/null ; then # do we have an x2gokdriveclient task running?
+ # if so, keep kicking it into the foreground until it has focus
+ while [ "$(xdotool getwindowfocus)" != "$(xdotool search --classname "x2gokdriveclient")" ] ; do
+ xdotool search --classname "x2gokdriveclient" windowmap --sync windowfocus --sync
+ done
+ # wiggle mouse by 11 px to trigger remote screensaver password prompt (10 px is xscreensaver's default hysteresis)
+ xdotool sleep 0.1 mousemove_relative -- 11 0 sleep 0.1 mousemove_relative -- -11 0
+ ## Option: toggle NumLock instead
+ # xdotool sleep 0.1 key Num_Lock sleep 0.1 key Num_Lock
elif ps -C Xephyr >/dev/null ; then # do we have a Xephyr task running?
# if so, keep kicking it into the foreground until it has focus
while [ "$(xdotool getwindowfocus)" != "$(xdotool search --classname "Xephyr")" ] ; do
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list