https://bugs.documentfoundation.org/show_bug.cgi?id=160565

Michael Weghorn <m.wegh...@posteo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|libreoffice-b...@lists.free |m.wegh...@posteo.de
                   |desktop.org                 |
                 CC|                            |m.wegh...@posteo.de
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
             Blocks|                            |145734

--- Comment #9 from Michael Weghorn <m.wegh...@posteo.de> ---
(In reply to Albert Astals Cid from comment #8)
> Are you sure? I can not reproduce this with qt5, only with qt6/kf6. Note
> that for example if you do SAL_USE_VCLPLUGIN=kf5 libreoffice in Arch it will
> use the kf6 one since kf5 isn't packaged.
> 
> For me this only happens on Plasma+X11 not on Plasma+Wayland. Can you also
> confirm?
> 
> The patch at https://codereview.qt-project.org/c/qt/qtbase/+/556573 does not
> fix it, Arch has that backported and doesn't help.

I can confirm all of the above: no issue with kf5, only with
QT_QPA_PLATFORM=xcb with qt6/kf6, not with QT_QPA_PLATFORM=wayland

The issue is triggered by a call to `QWidget::winId`, doesn't happen any more
with this local test change in place (needs further investigation):

diff --git a/vcl/qt5/QtFrame.cxx b/vcl/qt5/QtFrame.cxx
index d4a43fc7a544..ac2044b85302 100644
--- a/vcl/qt5/QtFrame.cxx
+++ b/vcl/qt5/QtFrame.cxx
@@ -1340,7 +1340,10 @@ void QtFrame::ResolveWindowHandle(SystemEnvData& rData)
const
         return;
     assert(rData.platform != SystemEnvData::Platform::Invalid);
     if (rData.platform != SystemEnvData::Platform::Wayland)
-        rData.SetWindowHandle(static_cast<QWidget*>(rData.pWidget)->winId());
+    {
+        // TODO: identify callers of this method and avoid calling this to
unbreak things
+       
//rData.SetWindowHandle(static_cast<QWidget*>(rData.pWidget)->winId());
+    }
 }


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=145734
[Bug 145734] [META] Qt6 VCL plugin bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to