After Sleep/hibernate, You can no longer close windows with window decoration buttons

I’m more reporting a bug then asking for help,

When the system sleeps/hibernates an you wake it up at times (not constant) you cant close windows with the close buttons or at times you go to close dolphin an it will close some other random window. click minimize it will minimize some random window. the worst though is when you have to use alt+F4 to close running systemctl --user restart plasma-plasmashell.service will not fix the issue. Requires a full restart.

This has been around since 6.0.1 I had a nvidia gpu before so i had sleep off but reinstalled on the 15th when i go my new amd gpu.

System inix

garuda-inxi
System:
  Kernel: 6.9.1-2-cachyos arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-cachyos
    root=UUID=ed618e85-c1b1-4a62-9eef-7263837ec30d rw rootflags=subvol=@
    resume=UUID=9e39bce2-8148-4e68-83a2-8185da8c85fb loglevel=3 ibt=off
  Desktop: KDE Plasma v: 6.0.4 tk: Qt v: N/A info: frameworks v: 6.2.0
    wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME X570-PRO v: Rev X.0x
    serial: <superuser required> part-nu: SKU uuid: <superuser required>
    UEFI: American Megatrends v: 4802 date: 06/15/2023
CPU:
  Info: model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 gen: 3
    level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
    family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701030
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 32 MiB desc: 2x16 MiB
  Speed (MHz): avg: 3938 high: 4275 min/max: 2200/4426 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 3607 2: 4258
    3: 4249 4: 3600 5: 4177 6: 3511 7: 4165 8: 3419 9: 3971 10: 3863 11: 3598
    12: 4145 13: 4275 14: 3662 15: 4251 16: 4260 bogomips: 115188
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] vendor: Sapphire
    driver: amdgpu v: kernel arch: RDNA-3 code: Navi-3x process: TSMC n5 (5nm)
    built: 2022+ pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-1
    empty: DP-2, HDMI-A-1, HDMI-A-2, Writeback-1 bus-ID: 0c:00.0
    chip-ID: 1002:744c class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.0
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: 0
  Monitor-1: DP-1 res: 3440x1440 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.7-arch1.3
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 7900 GRE (radeonsi
    navi31 LLVM 17.0.6 DRM 3.57 6.9.1-2-cachyos) device-ID: 1002:744c
    memory: 15.62 GiB unified: no display-ID: :1.0
  API: Vulkan v: 1.3.279 layers: 14 device: 0 type: discrete-gpu name: AMD
    Radeon RX 7900 GRE (RADV NAVI31) driver: mesa radv v: 24.0.7-arch1.3
    device-ID: 1002:744c surfaces: xcb,xlib,wayland device: 1 type: cpu
    name: llvmpipe (LLVM 17.0.6 256 bits) driver: mesa llvmpipe
    v: 24.0.7-arch1.3 (LLVM 17.0.6) device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
Audio:
  Device-1: AMD Navi 31 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0c:00.1 chip-ID: 1002:ab30
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0f:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Texas Instruments PCM2900C Audio CODEC
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 5-2:3 chip-ID: 08bb:29c0 class-ID: 0300
  API: ALSA v: k6.9.1-2-cachyos status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: PipeWire v: 1.0.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wireless 7260 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 8086:08b1 class-ID: 0280
  IF: wlp5s0 state: down mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-6:5 chip-ID: 8087:07dc
    class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.0
    lmp-v: 6 sub-v: e00 hci-v: 6 rev: e00 class-ID: 6c0104
  Info: acl-mtu: 1021:5 sco-mtu: 96:6 link-policy: rswitch hold sniff
    link-mode: peripheral accept service-classes: rendering, capturing, audio,
    telephony
Drives:
  Local Storage: total: 6.5 TiB used: 3.1 TiB (47.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: HP model: SSD EX920 1TB
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 32A0T2IA temp: 41.9 C
    scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:7 vendor: Samsung model: SSD 980 PRO 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 5B2QGXA7 temp: 44.9 C
    scheme: GPT
  ID-3: /dev/nvme2n1 maj-min: 259:11 vendor: Western Digital
    model: WD BLACK SN770 2TB size: 1.82 TiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 731100WD temp: 49.9 C scheme: GPT
  ID-4: /dev/sda maj-min: 8:0 vendor: OCZ model: VERTEX3 size: 111.79 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD
    serial: <filter> fw-rev: 2.22 scheme: GPT
  ID-5: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD20EZAZ-00L9GB0 size: 1.82 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5400 serial: <filter>
    fw-rev: 0A80 scheme: GPT
Partition:
  ID-1: / raw-size: 1.8 TiB size: 1.8 TiB (100.00%) used: 863.06 GiB (46.8%)
    fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:9
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 27.6 MiB (9.2%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:8
  ID-3: /home raw-size: 1.8 TiB size: 1.8 TiB (100.00%)
    used: 863.06 GiB (46.8%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:9
  ID-4: /var/log raw-size: 1.8 TiB size: 1.8 TiB (100.00%)
    used: 863.06 GiB (46.8%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:9
  ID-5: /var/tmp raw-size: 1.8 TiB size: 1.8 TiB (100.00%)
    used: 863.06 GiB (46.8%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:9
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.53 GiB used: 721.2 MiB (4.5%)
    priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 17.07 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme1n1p3 maj-min: 259:10
Sensors:
  System Temperatures: cpu: 50.0 C mobo: 40.0 C gpu: amdgpu temp: 49.0 C
    mem: 68.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 607
Info:
  Memory: total: 16 GiB available: 15.53 GiB used: 5.89 GiB (37.9%)
  Processes: 442 Power: uptime: 25m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 6.19 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
    tool: systemctl
  Packages: 2430 pm: pacman pkgs: 2410 libs: 613 tools: octopi,pacseek,paru
    pm: flatpak pkgs: 20 Compilers: clang: 17.0.6 gcc: 14.1.1 Shell: garuda-inxi
    default: fish v: 3.7.1 running-in: kitty inxi: 3.3.34
Garuda (2.6.26-1):
  System install date:     2024-05-15
  Last full system update: 2024-05-23
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            

kwin

Version
=======
KWin version: 6.0.4
Qt Version: 6.7.0
Qt compile version: 6.7.0
XCB compile version: 1.17.0

Operation Mode: Xwayland

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_GLX: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12401000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.kwin.aurorae
Theme: __aurorae__svg__Neon_Knights
Plugin recommends border size: No
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 5, 3, 4
decorationButtonsRight: 
borderSize: 0
gridUnit: 10
font: SF Pro Display,9,-1,5,700,0,0,0,0,0,0,0,0,0,0,1,Bold
smallSpacing: 2
largeSpacing: 10

Output backend
==============
Name: DRM
Atomic Mode Setting on GPU 0: true

Cursor
======
themeName: Future-dark-cursors
themeSize: 30

Options
=======
focusPolicy: ClickToFocus
xwaylandCrashPolicy: 1
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: true
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: true
placement: 5
activationDesktopPolicy: SwitchToOtherDesktop
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5002
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: MouseRaise
commandActiveTitlebar2: MouseNothing
commandActiveTitlebar3: MouseOperationsMenu
commandInactiveTitlebar1: MouseActivateAndRaise
commandInactiveTitlebar2: MouseNothing
commandInactiveTitlebar3: MouseOperationsMenu
commandWindow1: MouseActivateRaiseAndPassClick
commandWindow2: MouseActivate
commandWindow3: MouseActivateAndPassClick
commandWindowWheel: MouseNothing
commandAll1: MouseUnrestrictedMove
commandAll2: MouseToggleRaiseAndLower
commandAll3: MouseUnrestrictedResize
keyCmdAllModKey: 16777250
condensedTitle: false
electricBorderMaximize: false
electricBorderTiling: false
electricBorderCornerRatio: 0.10000000149011612
borderlessMaximizedWindows: true
killPingTimeout: 5000
hideUtilityWindowsForInactive: false
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 2
glStrictBinding: true
glStrictBindingFollowsDriver: true
glPreferBufferSwap: AutoSwapStrategy
glPlatformInterface: 2
windowsBlockCompositing: true
allowTearing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: true
cursorPushBackDistance: 1x1
timeThreshold: 75
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Active screen follows mouse:  yes
Number of Screens: 1

Screen 0:
---------
Name: DP-1
Enabled: 1
Geometry: 0,0,3440x1440
Scale: 1
Refresh Rate: 160000
Adaptive Sync: always

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 7900 GRE (radeonsi, navi31, LLVM 17.0.6, DRM 3.57, 6.9.1-2-cachyos)
OpenGL version string: 4.6 (Core Profile) Mesa 24.0.7-arch1.3
OpenGL platform interface: EGL
OpenGL shading language version string: 4.60
Driver: Unknown
GPU class: Unknown
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 24.0.7
X server version: 1.24.1
Linux kernel version: 6.9.1
Direct rendering: Requires strict binding: no
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
thumbnailaside
shakecursor
screenshot
outputlocator
colorpicker
zoom
screenedge
forceblur
contrast
sessionquit
logout
login
slidingpopups
windowaperture
slide
magiclamp
morphingpopups
maximize
fullscreen
frozenapp
fadingpopups
dimscreen
cube
kwin4_effect_geometry_change
kwin4_effect_wisps
sheet
wobblywindows
windowview
tileseditor
overview
highlightwindow
blendchanges
startupfeedback
kwin4_effect_shapecorners
screentransform
kscreen

Currently Active Effects:
-------------------------
forceblur
contrast
kwin4_effect_shapecorners

Effect Settings:
----------------
thumbnailaside:
maxWidth: 200
spacing: 10
opacity: 0.5
screen: -1

shakecursor:

screenshot:

outputlocator:

colorpicker:

zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
focusTrackingEnabled: false
textCaretTrackingEnabled: false
focusDelay: 350
moveFactor: 20
targetZoom: 1

screenedge:

forceblur:

contrast:

sessionquit:
pluginId: sessionquit
isActiveFullScreenEffect: false

logout:
pluginId: logout
isActiveFullScreenEffect: false

login:
pluginId: login
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 106
slideOutDuration: 176

windowaperture:
pluginId: windowaperture
isActiveFullScreenEffect: false

slide:
horizontalGap: 45
verticalGap: 20
slideBackground: true

magiclamp:

morphingpopups:
pluginId: morphingpopups
isActiveFullScreenEffect: false

maximize:
pluginId: maximize
isActiveFullScreenEffect: false

fullscreen:
pluginId: fullscreen
isActiveFullScreenEffect: false

frozenapp:
pluginId: frozenapp
isActiveFullScreenEffect: false

fadingpopups:
pluginId: fadingpopups
isActiveFullScreenEffect: false

dimscreen:
pluginId: dimscreen
isActiveFullScreenEffect: false

cube:
activeView: 
delegate: 
data: 
configuration: 
visible: false
activated: false
animationDuration: 141

kwin4_effect_geometry_change:
pluginId: kwin4_effect_geometry_change
isActiveFullScreenEffect: false

kwin4_effect_wisps:
pluginId: kwin4_effect_wisps
isActiveFullScreenEffect: false

sheet:
duration: 212

wobblywindows:
stiffness: 0.1
drag: 0.85
moveFactor: 0.1
xTesselation: 20
yTesselation: 20
minVelocity: 0
maxVelocity: 1000
stopVelocity: 0.5
minAcceleration: 0
maxAcceleration: 1000
stopAcceleration: 0.5
moveWobble: true
resizeWobble: true

windowview:
activeView: 
delegate: 
animationDuration: 212
layout: 1
ignoreMinimized: false
mode: 
partialActivationFactor: 0
gestureInProgress: false
searchText: 
selectedIds: 

tileseditor:
activeView: 
delegate: 
animationDuration: 200

overview:
activeView: 
delegate: 
animationDuration: 212
layout: 1
ignoreMinimized: false
filterWindows: false
organizedGrid: true
overviewPartialActivationFactor: 0
overviewGestureInProgress: false
transitionPartialActivationFactor: 0
transitionGestureInProgress: false
gridPartialActivationFactor: 0
gridGestureInProgress: false
desktopOffset: 
searchText: 

highlightwindow:

blendchanges:

startupfeedback:
type: 1

kwin4_effect_shapecorners:

screentransform:

kscreen:


Loaded Plugins:
---------------
BounceKeysPlugin
StickyKeysPlugin
buttonsrebind
krunnerintegration
nightcolor
screencast

Available Plugins:
------------------
BounceKeysPlugin
StickyKeysPlugin
buttonsrebind
krunnerintegration
nightcolor
screencast

Please report bugs to bugs.kde.org
Regular users cannot help with bugs :smiley:

Sounds like something is crashing after waking up. Anything in journald?

You could try to restart kwin with kwin_wayland --replace
NOTE: This will kill all apps that do not use QT6

1 Like

I wanted to report it to bug but as the template said there when your not to sure on the issue post it here. I don’t have a lot of data so I’ll try as you said next time it happens. :+1: If anyone one else has the issue was hopping to add it to the bug report as well

Similar issue here. Journal shows the following on closing a window. Resize, move, etc work, just close isn’t.

I my case the system didn’t suspend. The power disconnected while I had an open VNC session and the lid closed so it went to suspend but needed a password confirmation to do so.

Jun 14 16:44:52 cmason-*** ark[976680]: qt.qpa.xcb: Unhandled WM_PROTOCOLS ()
Jun 14 16:44:49 cmason-*** dolphin[976593]: qt.qpa.xcb: Unhandled WM_PROTOCOLS ()