Bug 514754

Summary: XTerm + Wayland + Screen Scaling + "Obey geometry restrictions" behaves strangely
Product: [Plasma] kwin Reporter: farblos <farblos>
Component: xwaylandAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screencast of XTerm resize attempts

Description farblos 2026-01-17 18:23:19 UTC
Created attachment 188622 [details]
Screencast of XTerm resize attempts

SUMMARY

XTerm + Wayland + Screen Scaling + "Obey geometry restrictions" behaves strangely.

(Not sure whether the component "xwayland" is correct here ...)

STEPS TO REPRODUCE
1. Start from a fresh openSUSE Krypton, change session to use Plasma on Wayland
2. Configure a screen scaling of 120%
3. Add a KWin rule to obey geometry restrictions for XTerms, like this (from kwinrulesrc)

[5f52965d-a159-400c-bc33-aa5d89da6d97]
Description=Application settings for XTerm
clientmachine=localhost
strictgeometry=true
strictgeometryrule=2
wmclass=XTerm
wmclassmatch=1

4. Open an XTerm and move it into the right-hand side of the screen
5. Attempt to resize the XTerm

OBSERVED RESULT

The XTerm window does not allow to resize to all sizes - instead only to very small window size or very large ones.  It seems that KWin applies some completely strange resizing restrictions and not only (what I would expect) the resize-by-character restrictions.

See also attached screen cast, which shows it better than I can explain it.

EXPECTED RESULT

XTerm window resizes smoothly and without jumping between allowed sizes.

SOFTWARE/OS VERSIONS

The issue reproduces in the following two configurations:

openSUSE Krypton with latest KDE (live):

--------------------------------------------------
Operating System: openSUSE Tumbleweed 20260113
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.1
Kernel Version: 6.18.5-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 32 GiB of RAM (31.1 GiB usable)
Graphics Processor: Mesa Intel® Iris® Xe Graphics
--------------------------------------------------

Debian Trixie (installed):

--------------------------------------------------
Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.63+deb13-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 32 GiB of RAM (31.1 GiB usable)
Graphics Processor: Mesa Intel® Iris® Xe Graphics
Manufacturer: Dell Inc.
Product Name: Latitude 7420
--------------------------------------------------