[X2Go-Commits] [live-build-x2go] 07/08: make sure kdrive sessions always end up in fullscreen mode unless it's a minidesktop
git-admin at x2go.org
git-admin at x2go.org
Mon Jan 29 22:54:31 CET 2024
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch heuler/openbox-magic-pixel-workaround-bookworm
in repository live-build-x2go.
commit 648724606c833692aecc87ef8bf7c54f648122ab
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Tue Jan 23 21:46:30 2024 +0100
make sure kdrive sessions always end up in fullscreen mode unless it's a minidesktop
---
.../etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/config/includes.chroot/etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen b/config/includes.chroot/etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen
new file mode 100644
index 0000000..f41813f
--- /dev/null
+++ b/config/includes.chroot/etc/X11/Xsession.d/60x11-kdrive-enforce-fullscreen
@@ -0,0 +1,18 @@
+# In Minidesktops, Users might actually want to run an X2Go-KDrive session that doesn't span the entire screen
+if ! [ -f "/etc/x2go/x2gothinclient-minidesktop_start" ] ; then
+ (
+ while true ; do
+ if ps -C x2gokdriveclient --no-header >/dev/null; then
+ # whenever x2gokdriveclient loads, make sure it is forced into fullscreen
+ xdotool search --onlyvisible --classname --maxdepth 1 x2gokdriveclient behave %@ focus windowsize $(xdotool getdisplaygeometry) &
+ TOOLPID=$!
+ xdotool search --onlyvisible --classname --maxdepth 1 x2gokdriveclient behave %@ blur windowsize $(xdotool getdisplaygeometry)
+ kill $TOOLPID
+ else
+ # exit if X11 is no longer running, else sleep for a bit
+ ps -C Xorg || exit 0
+ sleep 1
+ fi
+ done
+ ) &
+fi
--
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