https://bugs.kde.org/show_bug.cgi?id=445277

darktemp...@basealt.ru changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darktemp...@basealt.ru

--- Comment #8 from darktemp...@basealt.ru ---
Created attachment 143697
  --> https://bugs.kde.org/attachment.cgi?id=143697&action=edit
full backtrace for setKeyboardGrabEnabled.txt

It looks like platformWindow is missing with new kirigami when
QWindow::setKeyboardGrabEnabled is called. Here's old kirigami:

(gdb) print d->platformWindow
$3 = (QPlatformWindow *) 0x55879d8b6370
(gdb) print *d->platformWindow
$4 = {<QPlatformSurface> = {_vptr.QPlatformSurface = 0x7f2d69594ab0 <vtable for
QXcbGlxWindow+440>, m_surface = 0x55879d9cdab0}, d_ptr = {d = 0x55879d8c0c10}}

Here's new kirigami:

(gdb) print d->platformWindow
$10 = (QPlatformWindow *) 0x0

Code in question:
https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/kernel/qwindow.cpp?h=v5.15.2#n2044

It looks like offscreen window without platform window is created and used, and
it's unable to grab keyboard:

https://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/quickwidgets/qquickwidget.cpp?h=v5.15.2#n103

Full backtrace for QWindow::setKeyboardGrabEnabled call is in attachment.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to