Bug 491493 - Touchscreen mode breaks window geometry handling between fullscreen and maximized
Summary: Touchscreen mode breaks window geometry handling between fullscreen and maxim...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-09 16:55 UTC by kde
Modified: 2024-08-09 20:27 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2024-08-09 16:55:06 UTC
SUMMARY
With having touchscreen mode enabled (set to always) the title bar grows in size and probably breaks window geometry calculations.
Toggling applications into fullscreen and back, then the window geometry grows in height and exceeds the bottom border.
It does not happen and is consistent if touchscreen mode is off.


STEPS TO REPRODUCE
1. Enable touchscreen mode in systemsettings.
2. Open any application which plays video and supports fullscreen (mpv, chromium:youtube, etc.)
3. Maximize it (not fullscreen)
4. Now goto fullscreen and exit to maximized again.
5. Repeat step 4 a few times and the effect cumulates more significantly.

OBSERVED RESULT
After restoring to maximized the window geometry changed. The window grows in height and even surpasses the bottom egde of the screen.

EXPECTED RESULT
Maximized stays maximized after each fullscreen toggle cycle.

Can't test on another machine currently because of systemsettings don't show up (Log: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0)

Probably an unfixed fragment of #478442

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-arch1-1 (64-bit)
Graphics Platform: Wayland