wilfm / GnomeExtensionMaximusTwo

Removes the title bar on maximised windows. See: https://extensions.gnome.org/extension/844/maximus-two/
63 stars 27 forks source link

Missing resize events? #14

Open a-m-s opened 9 years ago

a-m-s commented 9 years ago

I wanted to use this extension for XBMC so that I could have it fullscreen on one monitor, but still use another monitor for other things. XBMC does not have a "windowed fullscreen" option on Linux, so MaximusTwo ought to be the solution, for Gnome.

But, when I maximise the XBMC window, the contents do not resize. It all works fine if I resize the window manually (well, XBMC has other issues there, but the contents fit the frame), or if I maximize without MaximusTwo (non-borderless). I just seems like MaximusTwo changes the window size in such a way that XBMC does not know the even has happened.

I don't have trouble with other windows, I've tried, just this one.

Perhaps, after maximising, MaximusTwo could do a little extra 'prodding' to make sure the window's owner gets the message?

a-m-s commented 9 years ago

Update: it only seems to happen on one of my screens.

I have three:

I only have any problem on the left screen, which is the one I mostly use for media. Very strange. :-(

Is there something I can do to help diagnose this?

a-m-s commented 9 years ago

I've tried various experiments to characterize this. It does not seem to be because it's on the left. I've tried reducing the resolution of the other screens (although I can't make them match). I've tried swapping them around and turning them on and off.

In every case, if the 1920x1080 monitor is a secondary monitor then it's broken. If I make it the primary then it works fine (but then, maximised is not full screen, so I've not won anything -- I've just got the top panel instead of the title-bar).

wilfm commented 9 years ago

What OS and version of Gnome are you using? (And version of Xbmc). Xbmc windowed and fullscreen has no issues on a single laptop monitor here (Fedora 21, Gnome 3.14.2) - I will test with an additional screen when I can.

a-m-s commented 9 years ago

Arch with Gnome 3.14.2, and XBMC 13.2.

Likewise, it works fine with a single laptop screen, I think, but then "maximised" still leaves the gnome panel, so it's not quite full screen. If I were using it in a single screen setup then the XBMC fullscreen setting would work just fine.

a-m-s commented 9 years ago

Interestingly, I discovered that Gnome 3.14 keyboard settings have a mapping for "fullscreen". It was unset, on my machine (maybe that's the default?), but if I configure a key then I can fullscreen XBMC even though it doesn't have any discoverable way to do so. It also works in Thunderbird, that doesn't have a fullscreen setting either, so probably other maximizable apps too.

This means that this issue is no longer a big deal, for me.

The only visible difference on a secondary monitor is that the Gnome fullscreen setting triggers Caffeine, whereas MaximusTwo does not (which is a good thing for TB, but not so much for XBMC). On the primary monitor, "fullscreen" hides the Gnome panel, which MaximusTwo does not, so again, it depends on the use case which is better.

wilfm commented 9 years ago

"Toggle Fullscreen mode" seems to be disabled by default.

Would an option to leave the titlebar if the window is not on the primary monitor help? (I don't yet know how this could be implemented, buts its a idea)

a-m-s commented 9 years ago

That might help issue #9, but isn't really related to this issue (in which some apps don't resize as expected).