Bug 455781 - Title-bar stretches/compresses on resize / doesn't update content
Summary: Title-bar stretches/compresses on resize / doesn't update content
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 5.24.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-22 10:34 UTC by Kallinger
Modified: 2025-01-08 07:36 UTC (History)
3 users (show)

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


Attachments
Pic. of a firefox titlebar while I'm on bugs.kde.org, also note the buggy text (12.22 KB, image/png)
2022-06-22 10:34 UTC, Kallinger
Details
Screenshot of a widened, greyed-out title bar on FreeBSD (336.99 KB, image/png)
2025-01-08 07:36 UTC, Graham Perrin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kallinger 2022-06-22 10:34:57 UTC
Created attachment 150047 [details]
Pic. of a firefox titlebar while I'm on bugs.kde.org, also note the buggy text

STEPS TO REPRODUCE
1. Suspend system
2. Restart
3. Resize any Window

OBSERVED RESULT
Title-bar gets stretched/compressed. Including Program icons and buttons. Also it doesn't update the content anymore, eg Firefox doesn't change the title when i switch tabs.

EXPECTED RESULT
Normal resizing. Changing the title when switching tabs and co.

USED FIX
running "kwin_x11 --replace" in any terminal and keeping it open in den background.

SOFTWARE/OS VERSIONS

Operating System: Manjaro Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.15.48-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
Comment 1 Kallinger 2022-06-22 10:36:36 UTC
Reminds me, "real" buttons don't correspond with the visuals anymore, you need to click where the button is supposed to be and not where it is shown to use it.
Comment 2 Tim Colgate 2022-07-31 16:07:15 UTC
I also have the same problem and can reproduce it reliably by switching to a different user and back (e.g. <ctrl><alt><f8> and then back to <f7>). I'm using nvidia proprietary drivers; I don't think their version (470.129.06-6 on Debian) is very important as I've had this problem for quite a while with various driver versions.

I get the message:
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 11823, resource id: 197132293, major code: 18 (ChangeProperty), minor code: 0
in the xterm where I started/restarted kwin_x11 each time I switch back to the original user.

It's as though the title bar has been replaced with a static image which stretches/shrinks as the window is resized, but as the other comment says, the max/min etc. buttons themselves still work, provided you click where they should be, not just where they're displayed.

Windows opened after I switch back to the orginal user behave correctly.

This is all with the compositor disabled. If I enable the compositor I get more error messages on switching:
ZoomConfig::instance called after the first use - ignoring
PresentWindowsConfig::instance called after the first use - ignoring
KscreenConfig::instance called after the first use - ignoring
DesktopGridConfig::instance called after the first use - ignoring
kwin_core: XCB error: 10 (BadAccess), sequence: 44738, resource id: 486, major code: 142 (Composite), minor code: 2 (RedirectSubwindows)
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 48284, resource id: 182452229, major code: 18 (ChangeProperty), minor code: 0
Comment 3 Graham Perrin 2024-11-18 00:35:22 UTC
I'm fairly certain that this is a duplicate of another bug that involves NVIDIA, at the moment I can't find the number. 

> kwin_x11 --replace

Hint: use KRunner (Alt-F2, here). 

I have a gkrellm launcher for the command, for it to be immediately runnable without a keystroke.
Comment 4 Graham Perrin 2025-01-08 07:36:21 UTC
Created attachment 177190 [details]
Screenshot of a widened, greyed-out title bar on FreeBSD

Not limited to Linux.

The title bar of this foreground window appears greyed-out, as if it's not in the foreground.  

grahamperrin:~ % pkg iinfo x11/kde5 x11/nvidia-driver-470 ^x11/xorg$
kde5-5.27.11.23.08.5_2
nvidia-driver-470-470.161.03.1500030_1
xorg-7.7_3
grahamperrin:~ % uname -aKU
FreeBSD mowa219-gjp4-zbook-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT main-n274632-fd27f86dd71b GENERIC-NODEBUG amd64 1500030 1500030
grahamperrin:~ %