linuxmint / muffin

The window management library for the Cinnamon desktop (libmuffin) and its sample WM binary (muffin)
GNU General Public License v2.0
196 stars 93 forks source link

Applications fullscreen to wrong monitor when window maximized through tiling #656

Open isRedacted opened 1 year ago

isRedacted commented 1 year ago

Issue

When maximizing an application by dragging window to top edge of monitor and with relevant option enabled in settings, if the application is then made fullscreen it will work once and any subsequent fullscreens move to wrong monitor

Steps to reproduce

  1. Set "Maximize, instead of tile, when dragging a window to the top edge" setting on in Window Tiling
  2. Open application (Brave browser, VLC, etc)
  3. Drag to top
  4. Make fullscreen, un-fullscreen, and fullscreen again

Expected behaviour

Program fullscreens to monitor it is maximized to every time

Other information

Universal to all applications that can be maximized in this way, issue only present on NVIDIA drivers (tested on xserver version 1:1.0.17-2 and works correctly)

Configuration info, if applicable

VividLemon commented 1 year ago

I have the same issue. This would be a helpful addition. Probably one of the worst things I'm getting in Mint. The problem is mainly with browsers, and having multiple instances of firefox open and moving them around to different screens. It can get very annoying when it fullscreens on the wrong monitor. It should really fullscreen to the monitor that it is active in.

pilot51 commented 1 year ago

This used to not be a problem for me and it started happening after upgrading to Mint 21. I watch a lot of YouTube and that's where I experience it most if not all of the time. I usually have a single instance of Firefox maximized on my right/secondary monitor and the video goes fullscreen to my left/primary monitor. I work around it by unmaximizing and maximizing the window and then it will fullscreen on the right monitor, but it is a frequently recurring issue and I don't know what causes it or how to permanently prevent it.

VividLemon commented 1 year ago

It would be nice if this issue got some more attention. It is quite annoying of an issue, that occurs, to the very least, once every time I use my machine

mistrjirka commented 1 year ago

I also get this issue.

lizardlab commented 1 year ago

I have similarly gotten this issue on my multi-monitor setup with Firefox specifically on any website that full screens, could be Youtube, Tubi, Vimeo etc.

AndrewRutherfoord commented 1 year ago

I'm having this issue in Chrome and noticed it mainly in YouTube when full screening a video, but the same thing happens when I click F11 on a chrome window. I have to do the same thing as @pilot51 to get it to maximize on my second monitor.

ScottDemarest commented 1 year ago

I'm getting this issue with fullscreening with okular pdf reader. Also a similar issue with gaomon drawing tablet driver not being able to select particular screens. A fix would be nice

AndreiTS commented 1 year ago

Having this issue on firefox, going fullscreen on any site. I have to restart cinammon to work again.

ColdSpirit0 commented 1 year ago

Same for me. Happens when I move app from one screen to top of another screen in one action. After that, second and further fullscreen transition happens on the wrong screen. Reproducible in Chromium, Firefox, on Youtube and other sites, even with F11 key.

My GPU is AMD.

Steps to reproduce

  1. Go to System settings -> Window Tiling
  2. Check Maximize instead of tile option is enabled
  3. Open Firefox
  4. Move window to the first screen
  5. Move window to top of the second screen
  6. Press F11 twice: fullscreen happens in the second screen
  7. Press F11 twice: fullscreen happens in the first screen
  8. Press F11 twice: fullscreen happens in the first screen

You can do it vice versa - from second screen to first, same result.

Example:

https://github.com/linuxmint/muffin/assets/16982207/ac74c436-db33-4114-a2c7-536367441d44

cursedastronaut commented 9 months ago

I also do. After some researchs, I found this post in Linux Mint Forums showing that this was already an issue back in Linux Mint 13. There is a workaround proposed there but it works only with Adobe Flash Player (as the issue mainly concerned flash).

cursedastronaut commented 9 months ago

Workaround: While in fullscreen on the wrong screen, press SHIFT + SUPER (windows) + (Left/Right) ARROW This shortcut allows to move a window from a monitor to another so you can fix it.

I also moved it when it was not on the wrong screen, and not in fullscreen, then made it go back to its original position, and it seems it reseted it. Weird.

FredNass commented 5 months ago

This bug has been here for a couple of years and still annoys every user using Cinnamon desktop with multiple monitors every day, whatever the linux flavor they use.

Can we please have this one investigated?

AugieDog08 commented 5 months ago

Yeah, this is one of the only things that has annoyed me since switching to Mint from Windows.

SirGamsay commented 5 months ago

How can this still be an Issue, when it's been known since Mint 13 as discussed above, please fix. I the same Issue with my Browsers and Youtube. Mint seems to struggle with Fullscreen in general, when I try playing some Games that Launch in Fullscreen those also often Launch on the Wrong Monitor. Have to fix this with windowed mode. Interesting thing is, that when I then click outside the Fullscreened Game the Game swings back to the Original Location on the wrong Monitor