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

--- Comment #13 from Julien Nabet <[email protected]> ---
(In reply to Caolán McNamara from comment #12)
> "If you change your patch to use EndExtTextInputFlags::Complete, does it
> still longer ignore the Ctrl-Alt-foo shortcut?" My patch does nothing for
> me, ctrl+alt+whatever doesn't get delivered to libreoffice for me in either
> case, presumably the IM has consumed it. But I wonder if it does do
> something for those who can reproduce this under gtk.

with:
diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index e9127b23e659..0450e875330b 100644
--- a/vcl/unx/gtk3/gtkframe.cxx
+++ b/vcl/unx/gtk3/gtkframe.cxx
@@ -451,6 +451,9 @@ bool GtkSalFrame::doKeyCallback( guint state,
     bool bStopProcessingKey;
     if (bDown)
     {
+        if (aEvent.mnCode | KEY_MOD1) // tdf#152404
+            EndExtTextInput(EndExtTextInputFlags::Complete);
+
         bStopProcessingKey = CallCallbackExc(SalEvent::KeyInput, &aEvent);
         // #i46889# copy AlternateKeyCode handling from generic plugin
         if (!bStopProcessingKey)


I got exactly the same crash:
#0  0x00007f2bb54b2c85 in std::__uniq_ptr_impl<WindowImpl,
std::default_delete<WindowImpl> >::_M_ptr() const (this=0x8)
    at
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/unique_ptr.h:191
#1  0x00007f2bb54b2c65 in std::unique_ptr<WindowImpl,
std::default_delete<WindowImpl> >::get() const (this=0x8) at
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/unique_ptr.h:462
#2  0x00007f2bb54f7595 in std::unique_ptr<WindowImpl,
std::default_delete<WindowImpl> >::operator bool() const (this=0x8)
    at
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/unique_ptr.h:479
#3  0x00007f2bb56d87a9 in vcl::Window::ImplGrabFocus(GetFocusFlags)
(this=0x55a686cd7140, nFlags=GetFocusFlags::NONE) at
vcl/source/window/mouse.cxx:295
#4  0x00007f2bb57a6de7 in vcl::Window::GrabFocus() (this=0x55a686cd7140) at
vcl/source/window/window.cxx:2985
#5  0x00007f2b8f982075 in SwPostItMgr::LayoutPostIts() (this=0x55a68588d080) at
sw/source/uibase/docvw/PostItMgr.cxx:796
#6  0x00007f2b8f98ce5f in SwPostItMgr::CalcHdl(void*) (this=0x55a68588d080) at
sw/source/uibase/docvw/PostItMgr.cxx:2243
#7  0x00007f2b8f97c08d in SwPostItMgr::LinkStubCalcHdl(void*, void*)
(instance=0x55a68588d080, data=0x0) at
sw/source/uibase/docvw/PostItMgr.cxx:2229

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to