Bug 485220 - Application using GUI toolit (tauri+webkit2gtk) on KDE Wayland does not retain window size and at startup after a boot window controls are off a screen.
Summary: Application using GUI toolit (tauri+webkit2gtk) on KDE Wayland does not retai...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-08 10:06 UTC by gigastarcraft2
Modified: 2024-04-09 14:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gigastarcraft2 2024-04-08 10:06:41 UTC
SUMMARY

STEPS TO REPRODUCE
1. Download CoolerControl (https://gitlab.com/coolercontrol/coolercontrol).
2. Start an app after a boot.
3. Windows controls are off a screen.

OBSERVED RESULT
Window controls (minimize, maximize, exit) are off a screen and KDE does not retain previous window size when an app is using
GUI toolit (tauri+webkit2gtk).

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Artix Linux OpenRC 6.8..4
KDE Plasma Version: 6.0.3
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
Comment 1 gigastarcraft2 2024-04-08 12:20:05 UTC
Additional info: this only happens when you have enabled "Close to tray" option in CoolerControl.
Comment 2 fanzhuyifan 2024-04-08 18:32:58 UTC
Is this on wayland or X11? What do you mean by "Window controls (minimize, maximize, exit) are off a screen "? Could you share a screenshot?
Comment 3 fanzhuyifan 2024-04-08 18:34:15 UTC
Oh sorry just saw the wayland in the title. On wayland the apps are responsible for saving their window sizes.
Comment 4 gigastarcraft2 2024-04-08 20:05:51 UTC
(In reply to fanzhuyifan from comment #2)
> Is this on wayland or X11? What do you mean by "Window controls (minimize,
> maximize, exit) are off a screen "? Could you share a screenshot?

https://i.imgur.com/36Sfy54.png
"Additional info:
The only thing CC is doing is passing to the underlying libs that it would like to start the application centered on the desktop by default, which is then passed to the WM. Nothing else. Wayland handles window placement very differently when compared to X11, with many options no longer allowed at all and placement is mostly controlled by KWin-Wayland itself."
https://gitlab.com/coolercontrol/coolercontrol/-/issues/269
Comment 5 gigastarcraft2 2024-04-08 20:07:17 UTC
(In reply to gigastarcraft2 from comment #4)
> (In reply to fanzhuyifan from comment #2)
> > Is this on wayland or X11? What do you mean by "Window controls (minimize,
> > maximize, exit) are off a screen "? Could you share a screenshot?
> 
> https://i.imgur.com/36Sfy54.png
> "Additional info:
> The only thing CC is doing is passing to the underlying libs that it would
> like to start the application centered on the desktop by default, which is
> then passed to the WM. Nothing else. Wayland handles window placement very
> differently when compared to X11, with many options no longer allowed at all
> and placement is mostly controlled by KWin-Wayland itself."
> https://gitlab.com/coolercontrol/coolercontrol/-/issues/269

I took screenshot of title-bar that is off-screen. Now that I disabled minimizing to a tray I could set window size but before that I could not.
Comment 6 fanzhuyifan 2024-04-08 21:27:58 UTC
(In reply to gigastarcraft2 from comment #5)
> (In reply to gigastarcraft2 from comment #4)
> > (In reply to fanzhuyifan from comment #2)
> > > Is this on wayland or X11? What do you mean by "Window controls (minimize,
> > > maximize, exit) are off a screen "? Could you share a screenshot?
> > 
> > https://i.imgur.com/36Sfy54.png
> > "Additional info:
> > The only thing CC is doing is passing to the underlying libs that it would
> > like to start the application centered on the desktop by default, which is
> > then passed to the WM. Nothing else. Wayland handles window placement very
> > differently when compared to X11, with many options no longer allowed at all
> > and placement is mostly controlled by KWin-Wayland itself."
> > https://gitlab.com/coolercontrol/coolercontrol/-/issues/269
> 
> I took screenshot of title-bar that is off-screen. Now that I disabled
> minimizing to a tray I could set window size but before that I could not.

Humm I am afraid I don't understand what is wrong from looking at the screenshot -- isn't the title-bar shown correctly? Could you take a screenshot of the entire screen? Thanks!
Comment 7 gigastarcraft2 2024-04-08 23:39:52 UTC
(In reply to fanzhuyifan from comment #6)
> (In reply to gigastarcraft2 from comment #5)
> > (In reply to gigastarcraft2 from comment #4)
> > > (In reply to fanzhuyifan from comment #2)
> > > > Is this on wayland or X11? What do you mean by "Window controls (minimize,
> > > > maximize, exit) are off a screen "? Could you share a screenshot?
> > > 
> > > https://i.imgur.com/36Sfy54.png
> > > "Additional info:
> > > The only thing CC is doing is passing to the underlying libs that it would
> > > like to start the application centered on the desktop by default, which is
> > > then passed to the WM. Nothing else. Wayland handles window placement very
> > > differently when compared to X11, with many options no longer allowed at all
> > > and placement is mostly controlled by KWin-Wayland itself."
> > > https://gitlab.com/coolercontrol/coolercontrol/-/issues/269
> > 
> > I took screenshot of title-bar that is off-screen. Now that I disabled
> > minimizing to a tray I could set window size but before that I could not.
> 
> Humm I am afraid I don't understand what is wrong from looking at the
> screenshot -- isn't the title-bar shown correctly? Could you take a
> screenshot of the entire screen? Thanks!

>"Is this on wayland or X11? What do you mean by "Window controls (minimize, maximize, exit) are off a screen "? Could you share a screenshot?"
You asked for a title bar and a frame which before manually fixing it are "above" screen but should be centered as developer said. I cannot move a window title bar above screen after manually fixing it. BUT BEFORE fixing it (as explained in gitlab link by the developer) or manually moving a window whole title bar and a frame are *above* screen and user need to manually move it so controls are inside screen dimensions.
Comment 8 Nate Graham 2024-04-09 14:45:13 UTC
As Yifan said, apps are still responsible for their own window sizes. And if they're using XWayland, they can even position themselves too, in which case it's up to them to do it right. This is an app bug, not a KWin bug.