Plasma::WindowThumbnail spams the log with: QXcbConnection: XCB error: 2 (BadValue), sequence: <unknown number>, resource id: <window id>, major code: <unknown number> (Unknown), minor code: <unknown number> Examining the situation I found the problem to be in WindowThumbnail::stopRedirecting(), line 708, where the redirecting is stopped. Apparently later some Qt object tries to access it still. Removing line 708 ends the log spam while window thumbnails still work, but it's probably not the best solution to it.
To make it clear, line 708 is in my source file: xcb_composite_unredirect_window(c, m_winId, XCB_COMPOSITE_REDIRECT_AUTOMATIC);
Most likely the window doesn't exist any more. You can see similar warning messages triggered in KWin. It's not really an issue, just Qt should not report the messages. A solution might be to just filter out the errors in a NativeEventFilter.
(In reply to Martin Gräßlin from comment #2) > A solution might be to just filter out the errors in a NativeEventFilter. Would this be easy to implement? There is already an override of nativeEventFilter(..) in the WindowThumbnail class.
Yeah quite easy. KWin does so in events.cpp for example.