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.53k stars 735 forks source link

Move window to the left/right monitor on Linux Mint 20 doest not work #9462

Open juan-medina opened 4 years ago

juan-medina commented 4 years ago
 * Cinnamon version (4.6.6)
   - no daily builds PPA
 * Distribution - (Mint 20)
 * Graphics hardware *and* driver used : 
   -  Graphics:  
           Device-1: NVIDIA TU102 [GeForce RTX 2080 Ti] vendor: eVga.com. driver: nvidia v: 435.21 bus ID: 01:00.0 
           Device-2: NVIDIA TU102 [GeForce RTX 2080 Ti] vendor: eVga.com. driver: nvidia v: 435.21 bus ID: 02:00.0 
           Display: x11 server: X.Org 1.20.8 driver: none unloaded: nvidia resolution: 3840x2160~60Hz, 3840x2160~60H
 * 64 bit
 * Attached /home/<username>/.xsession-errors

Issue With the new Linux Mint 20 Move window to the left monitor, or Move window to the right monitor does not work.

Steps to reproduce Have a set-up with two monitors, open any application, while the application window active and focuses press the corresponding keybinding to move it to the left or right monitor. (See screenshot attached with the default bindings)

Expected behaviour The window moves the desired monitor

Other information In did work with Linux Mint 19

Configuration info, if applicable I use the default keybindings, never change them as is seen in the screenshot below:

Screenshot from 2020-07-15 17-55-55

No remarkable errors on the log for this (fresh log after restart and try to move windows around) xsession-errors.txt

mtwebster commented 4 years ago

I can't reproduce this - can you try changing these to a different keybinding and trying it?

juan-medina commented 4 years ago

I've changed them same results, it does not move. Screenshot from 2020-07-15 19-54-54

juan-medina commented 4 years ago

For more info other Shortcuts works, like Push tile left

Screenshot from 2020-07-15 19-57-42

mtwebster commented 4 years ago

Is the left-most monitor your primary? If it isn't, can you make it so, temporarily, then try this? I took a quick look at the code and this may be a factor.

juan-medina commented 4 years ago

It was the right monitor, I've changed it to be the left and still not working, it may be related that I use fractional scaling?

Screenshot from 2020-07-16 07-20-16

juan-medina commented 4 years ago

Could be this related in which graphics card's port are my screens connected?

mtwebster commented 4 years ago

No this shouldn't really matter. If you can drag windows back and forth the shortcuts should work.

Can you paste the output from xrandr --verbose and the contents of ~/.config/cinnamon-monitors.xml.

Do you have any Cinnamon extensions installed, or any applets that might conceivably affect windows, workspaces, etc...?

While scaling shouldn't matter, you may as well try with it disabled, to rule it out.

juan-medina commented 4 years ago

Attached xrandr --verbose xrand.txt

Attached ~/.config/cinnamon-monitors.xml cinnamon-monitors.xml.txt

Now I've removed fractional scaling and it works, then I've enabled it again and still works, the files above are before the changes.

Attached xrandr --verbose after getting it working xrand_new.txt

Attached ~/.config/cinnamon-monitors.xml after getting working cinnamon-monitors_new.xml.txt

I don't have any particular extension / widget

mtwebster commented 4 years ago

Hmm the monitor positions were 1 pixel off (if you compare the two .xml files - 5119 vs 5120). That's pretty nuts that broke this, I'll have to check that out. I've made a number of fixes to the display configuration code that hopefully will avoid this moving forward.

juan-medina commented 4 years ago

Interesting, if I move them in the Display settings one a bit above the other it does not work again, so yes is definitely related if they are exactly at the same height.

You could close the issue since I know how to fix it now, however, if you like it to keep it open is OK as well, in any case, I can run any test you like.

Is not related to the fractional scaling but doing it so it resets the position so they end in the same height.

Thanks

icarter09 commented 3 years ago

@juan-medina are you still experiencing this issue? Thanks.

tellisnz commented 2 years ago

I can confirm this same thing was happening for me too, was on 20.2, upgraded to 20.3 in the hope it would fix, then found this thread.

I can confirm adjusting the fractional scaling fixes it, and then even adjusting the scaling back to what it was it still works.