2 monitors with Fluxbox? XFCE bad, MX-21 KDE old

Message
Author
User avatar
mx2kx1k
Posts: 3
Joined: Sun Sep 26, 2021 7:44 pm

2 monitors with Fluxbox? XFCE bad, MX-21 KDE old

#1 Post by mx2kx1k »

XFCE seems pretty bad for 2 monitors:
-no move to next monitor https://gitlab.xfce.org/xfce/xfwm4/-/issues/207 ,
-Tear-free compositing stops working with secondary monitor https://gitlab.xfce.org/xfce/xfwm4/-/issues/273 ,
-and the worst 2: behind full-screen windows remain hidden https://gitlab.xfce.org/xfce/xfwm4/-/issues/89 'no way to have a fullscreen window on one monitor while working on the other', answered with: ' as it is designed.'
-Specially this would affect me too much [i use a CRT TV usually just to put there some video stream, while i do other stuff in monitor 1]: https://gitlab.xfce.org/xfce/xfwm4/-/issues/84 'I have a set up with two monitors, as :0.0 and :0.1. When one of the monitors is showing a fullscreen window (e.g. a movie in vlc), and I click on a window on the other monitor to set focus to it, the fullscreen window disappears.
Apparently, the window manager assumes that the window that is losing focus is on the same screen, and disables its fullscreen status'. [there: ' I've made a small patch, which is attached, that seems to correct the problem.', does MX-21 have the patch? ].

KDE/plasma is good but 5.20 is very oudated and buggy considering the amazing rate of bug fixes and improvements by them: 27 November 2021 https://pointieststick.com/2021/11/26/t ... ying-bugs/ ; sadly having the latest Plasma is not officialy supported by MX, and the sole guy's report installing KDE Plasma 5.23.2 is discouraging: viewtopic.php?p=662430

So, is MX-21 Fluxbox good for 2 monitors usage? does it not have the issues menctioned for XFCE? Can you move a full screen between monitors with a keyboard shortcut?
Thx

User avatar
dolphin_oracle
Developer
Posts: 22022
Joined: Sun Dec 16, 2007 12:17 pm

Re: 2 monitors with Fluxbox? XFCE bad, MX-21 KDE old

#2 Post by dolphin_oracle »

mx2kx1k wrote: Mon Nov 29, 2021 8:59 pm XFCE seems pretty bad for 2 monitors:
-no move to next monitor https://gitlab.xfce.org/xfce/xfwm4/-/issues/207 ,
-Tear-free compositing stops working with secondary monitor https://gitlab.xfce.org/xfce/xfwm4/-/issues/273 ,
-and the worst 2: behind full-screen windows remain hidden https://gitlab.xfce.org/xfce/xfwm4/-/issues/89 'no way to have a fullscreen window on one monitor while working on the other', answered with: ' as it is designed.'
-Specially this would affect me too much [i use a CRT TV usually just to put there some video stream, while i do other stuff in monitor 1]: https://gitlab.xfce.org/xfce/xfwm4/-/issues/84 'I have a set up with two monitors, as :0.0 and :0.1. When one of the monitors is showing a fullscreen window (e.g. a movie in vlc), and I click on a window on the other monitor to set focus to it, the fullscreen window disappears.
Apparently, the window manager assumes that the window that is losing focus is on the same screen, and disables its fullscreen status'. [there: ' I've made a small patch, which is attached, that seems to correct the problem.', does MX-21 have the patch? ].

KDE/plasma is good but 5.20 is very oudated and buggy considering the amazing rate of bug fixes and improvements by them: 27 November 2021 https://pointieststick.com/2021/11/26/t ... ying-bugs/ ; sadly having the latest Plasma is not officialy supported by MX, and the sole guy's report installing KDE Plasma 5.23.2 is discouraging: viewtopic.php?p=662430

So, is MX-21 Fluxbox good for 2 monitors usage? does it not have the issues menctioned for XFCE? Can you move a full screen between monitors with a keyboard shortcut?
Thx
xfce doesn't have the best multi-monitor support, but its heaps better than it used to be.

the screen tearing on xfwm does happen for me with two monitors, but if I switch drivers from modesetting to "intel", which uses a "tear-free" option, then the screen tearing is alleviated. I presume it has something to do with refresh rates but I'm not expert. fluxbox might be better, but it doesn't have a compositor, so you could also just turn Xfce's off to get the same effect, or at least to see if tearing is in different.

I'm currently watching a movie on one monitor in full screen while working on the other. the panel did have a tendency to popup if focused a different app, but the movie stays full screen. so I throw the movie onto the monitor without a panel.

xfwm does not have a built in way to move to a second monitor. I was surprised, but its so. you can set some stuff up with custom key command and an app called wmctrl, but nothing built in.

the display setup on fluxbox will be a little more manual (lxrandr I think is used) but its free to try and see if it meets your needs.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
siamhie
Global Moderator
Posts: 3217
Joined: Fri Aug 20, 2021 5:45 pm

Re: 2 monitors with Fluxbox? XFCE bad, MX-21 KDE old

#3 Post by siamhie »

mx2kx1k wrote: Mon Nov 29, 2021 8:59 pm So, is MX-21 Fluxbox good for 2 monitors usage? does it not have the issues menctioned for XFCE? Can you move a full screen between monitors with a keyboard shortcut?
Thx
dolphin_oracle wrote: Mon Nov 29, 2021 11:06 pm
the display setup on fluxbox will be a little more manual (lxrandr I think is used) but its free to try and see if it meets your needs.
Fluxbox is just a window manager. Nothing more. Your best bet would be to man xrandr. Also search online "fluxbox dual monitors" to see what anyone else has done to get it working.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
radonrose
Posts: 182
Joined: Thu Dec 12, 2019 6:59 am

Re: 2 monitors with Fluxbox? XFCE bad, MX-21 KDE old

#4 Post by radonrose »

Take a look at this script for moving to next monitor:

Code: Select all

#!/bin/sh
#
# Move the current window to the next monitor.
#
# Also works only on one X screen (which is the most common case).
#
# Props to
# http://icyrock.com/blog/2012/05/xubuntu-moving-windows-between-monitors/
#
# Unfortunately, both "xdotool getwindowgeometry --shell $window_id" and
# checking "-geometry" of "xwininfo -id $window_id" are not sufficient, as
# the first command does not respect panel/decoration offsets and the second
# will sometimes give a "-0-0" geometry. This is why we resort to "xwininfo".

screen_width=$(xdpyinfo | awk '/dimensions:/ { print $2; exit }' | cut -d"x" -f1)
screen_height=$(xdpyinfo | awk '/dimensions:/ { print $2; exit }' | cut -d"x" -f2)
display_width=$(xdotool getdisplaygeometry | cut -d" " -f1)
display_height=$(xdotool getdisplaygeometry | cut -d" " -f2)
window_id=$(xdotool getactivewindow)

# Remember if it was maximized.
window_horz_maxed=$(xprop -id "$window_id" _NET_WM_STATE | grep '_NET_WM_STATE_MAXIMIZED_HORZ')
window_vert_maxed=$(xprop -id "$window_id" _NET_WM_STATE | grep '_NET_WM_STATE_MAXIMIZED_VERT')

# Un-maximize current window so that we can move it
wmctrl -ir "$window_id" -b remove,maximized_vert,maximized_horz

# Read window position
x=$(xwininfo -id "$window_id" | awk '/Absolute upper-left X:/ { print $4 }')
y=$(xwininfo -id "$window_id" | awk '/Absolute upper-left Y:/ { print $4 }')

# Subtract any offsets caused by panels or window decorations
x_offset=$(xwininfo -id "$window_id" | awk '/Relative upper-left X:/ { print $4 }')
y_offset=$(xwininfo -id "$window_id" | awk '/Relative upper-left Y:/ { print $4 }')
x=$(( x - x_offset))
y=$(( y - y_offset))

# Compute new X position
new_x=$((x + display_width))
# Compute new Y position
new_y=$((y + display_height))

# If we would move off the right-most monitor, we set it to the left one.
# We also respect the window's width here: moving a window off more than half its width won't happen.
width=$(xdotool getwindowgeometry "$window_id" | awk '/Geometry:/ { print $2 }'|cut -d"x" -f1)
if [ "$(( new_x + width / 2))" -gt "$screen_width" ]; then
    new_x=$((new_x - screen_width))
fi

height=$(xdotool getwindowgeometry "$window_id" | awk '/Geometry:/ { print $2 }'|cut -d"x" -f2)
if [ "$((new_y + height / 2))" -gt "$screen_height" ]; then
    new_y=$((new_y - screen_height))
fi

# Don't move off the left side.
if [ "$new_x" -lt 0 ]; then
    new_x=0
fi

# Don't move off the bottom
if [ "$new_y" -lt 0 ]; then
    new_y=0
fi

# Move the window
xdotool windowmove "$window_id" "$new_x" "$new_y"

# Maximize window again, if it was before
if [ -n "${window_horz_maxed}" ] && [ -n "${window_vert_maxed}" ]; then
    wmctrl -ir "$window_id" -b add,maximized_vert,maximized_horz
elif [ -n  "${window_horz_maxed}" ]; then
    wmctrl -ir "$window_id" -b add,maximized_horz
elif [ -n  "${window_vert_maxed}" ]; then
    wmctrl -ir "$window_id" -b add,maximized_vert
fi
Source: https://github.com/jc00ke/move-to-next- ... xt-monitor

I was using this on MX 19 and it wasn't slow.
AND1s, tuna, blast processing.
Αν δε βρίσκεις αυτό που ψάχνεις στα Ελληνικά, στείλε μου μήνυμα. Ίσως μπορώ να βοηθήσω.

User avatar
Jerry3904
Administrator
Posts: 23046
Joined: Wed Jul 19, 2006 6:13 am

Re: 2 monitors with Fluxbox? XFCE bad, MX-21 KDE old

#5 Post by Jerry3904 »

I've never tried this, but will look at it today. There's good stuff online to start with.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Post Reply

Return to “General”