contour icon indicating copy to clipboard operation
contour copied to clipboard

A borderless-fullscreen option

Open brian6932 opened this issue 2 years ago • 6 comments

Coming from Alacritty, when you alt enter into fullscreen mode, it uses a borderless-fullscreen option, which first, looks smoother, has less lag when swapping back and forth, and works with window manager's (since on Windows dwm) transparency options.

Specification

When I say borderless-fullscreen, I mean like the option often found in games, where the program does not try to take exclusive always-on-top prio when focused.

brian6932 avatar May 07 '23 03:05 brian6932

Hi, From what I see contour behaves the same way as alacritty in ToggleFullscreen, am I missing something?

Yaraslaut avatar May 08 '23 18:05 Yaraslaut

Well effectively what is described here: https://github.com/alacritty/alacritty/issues/6124 is the experience I have with alacritty, but rather the solution is what I have. It doesn't flicker, feels smooth to alt enter and toggle, but contour flickers and takes like a solid second when pressing alt enter.

brian6932 avatar May 08 '23 19:05 brian6932

Well effectively what is described here: alacritty/alacritty#6124 is the experience I have with alacritty, but rather the solution is what I have. It doesn't flicker, feels smooth to alt enter and toggle, but contour flickers and takes like a solid second when pressing alt enter.

Oh, I see I can confirm that contour does not toggle fullscreen mode correctly at the first time when trying to switch to fullscreen mode, second time it works though. Performance is also lacking in comparison to alacritty, not sure if it is pure Qt or not

Yaraslaut avatar May 08 '23 19:05 Yaraslaut

Thanks for your report @brian6932. Technically, what is happening in the background, is, that the windowed terminal closes and gets recreated as fully sized window without borders already. So this is the case already. What you might see as flicker is the fact, that it is in fact a window close plus window recreate operation going on, with the recreated window taking up the full screen space.

We are using Qt API for doing that though, and I cannot guarantee to make it 100% flickerless. But we can surely try to.

@Yaraslaut maybe it's not worth fixing that on master (using QtWidgets) when the QML branch is near merge. Maybe we can see for a good solution in the QML branch right away? What do you think?

christianparpart avatar May 12 '23 18:05 christianparpart

I can see this performance issue only on Windows, @brian6932 you were referring to windows as well?

Yaraslaut avatar Aug 02 '23 07:08 Yaraslaut

yes

brian6932 avatar Aug 02 '23 11:08 brian6932