summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt
diff options
context:
space:
mode:
authorSimon Rettberg2020-08-26 12:20:42 +0200
committerSimon Rettberg2020-08-26 12:20:42 +0200
commitf5de202a03d32e70a2f7451025dd9210faa417be (patch)
tree2994b51a053c80a5e06ca1ac76298c180c1d0b51 /core/modules/run-virt
parent[run-virt] openslx.exe: More multiscreen stuff (diff)
downloadmltk-f5de202a03d32e70a2f7451025dd9210faa417be.tar.gz
mltk-f5de202a03d32e70a2f7451025dd9210faa417be.tar.xz
mltk-f5de202a03d32e70a2f7451025dd9210faa417be.zip
[run-virt] Always use xfwm4 for multi-screen (not just vmware)
While VMware just doesnt work with openbox wrt multi-screen, VBox does mostly work with openbox, but sometimes, all virtual desktop windows will end up on the same physical screen, covering each other. This hasn't been observed yet with xfwm, so let's switch for now. If this still happens, we need some really ugly hackery involving xdotool.
Diffstat (limited to 'core/modules/run-virt')
-rw-r--r--core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/start_windowmanager.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/start_windowmanager.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/start_windowmanager.inc
index 473b7f2e..04ee51ec 100644
--- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/start_windowmanager.inc
+++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/start_windowmanager.inc
@@ -7,10 +7,19 @@
# using eg. vmware without a window manager.
start_wm() {
# xfwm4 and metacity make the VM appear frozen after openslx.exe
- # tries to change the resolution
+ # tries to change the resolution. for xfwm4 the fix is to disable
+ # composition. xfwm4 is better suited for mutli-screen. openbox
+ # sometimes puts both virtual screens on the same physical screen,
+ # vmware outright acts up if the window manager doesn't expose the
+ # _NET_WM_FULLSCREEN_MONITORS atom (which openbox doesn't).
+ if [ "$DISPLAY_COUNT" -gt 1 ]; then
+ set -- "$@" xfwm4 openbox
+ else
+ set -- "$@" openbox xfwm4
+ fi
local i dm
dm=
- for i in "$@" openbox blackbox kwin; do
+ for i in "$@" blackbox kwin; do
if command -v "${i}" &> /dev/null ; then
dm="$i"
break