linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.51k stars 732 forks source link

Screen Lock reorders windows to hardware primary display in dual screen on returning #5487

Open grizzlyfred opened 8 years ago

grizzlyfred commented 8 years ago

I have a FHD and a 4K Monitor connected to an NVIDA-proprietary driven card. FHD ist connected with DVI and 4K is connected with Display Port. From the BIOS point of view, the FHD Display is the primary display, but I set the 4K display within Cinnamon 3 and within NVDIA settings as the primary display.

In both Mint 18 and Manjaro-Cinnamon, after the screen saver / lock has been activated and then I return to my session by re-entering the password, open windows are moved from the 4K ("virtual primary") desktop to the FHD ("virtual secondary") desktop.

I expected to find all windows at their original place - as is the case with long-used Mint 17.3.

FStefanni commented 2 years ago

Hi,

yes, #5619 is related for sure. I still do not think that making a daemon to exit is good, since we are going to loose its functionalities...

Since it affects different versions of Debian, I am wondering if it is a cinnamon component bug, or of a third-party software. For example, I am wondering if other DE have the same issue... If I'll try, I'll let you know.

Even if this is not a critical functionality bug, this is very annoying and haveily damages the usability and the user experience.

Regards

FeralBytes commented 2 years ago

~~From this issue: https://github.com/linuxmint/cinnamon/issues/5477 I found this script: https://github.com/dosmanak/wmsavior I am going to give it a try and will report back, because currently this is really starting to annoy me. If a simple state script can solve the issue then it probably is what we should implement in cinnamon to fix it.~~ I just wonder does any one know off hand of a signal that would occur just prior to screen lock so the script can save? Then we need a signal once the screens wake up, really when either wakes up, then we can wait like 30 seconds or a configurable amount to restore the window positions.

Also of note this is an issue for my System but not my wife's. We both run Linux Mint Cinnamon 20.3 x64 with all updates. But my system has a AMD GPU 5700XT, and she has a Nvidia 2070 Super. Both of us have she same monitors, Sceptre Monitors.

Update: the wmsavior script did not work.

FeralBytes commented 2 years ago

Adding "--exit-time=5" to xrandr in the startup applications seems to have fixed the issue for now.

brianread108 commented 1 year ago

I did this. Edit this file /etc/xdg/autostart/cinnamon-settings-daemon-xrandr.desktop and alter the line Exec=/usr/lib/cinnamon-settings-daemon/csd-xrandr to Exec=/usr/lib/cinnamon-settings-daemon/csd-xrandr --exit-time 1 @beedogs

I am afraid this no longer works for Fedora 37, it has worked consistently for 34,35 and 36, but the "/etc/xdg/autostart/cinnamon-settings-daemon-xrandr.desktop" file no longer exists.

anyone got any ideas?

I've been unable to find another instance of the xrandr program being run.

brianread108 commented 1 year ago

Update on my problem 'with Fedora 37. Actually the problem seem to be now that tasks left on the 2nd Workspace end up on the 1st workspace after a suspend. This may well be a seperate bug?