Steps to reproduce: 1. Customize the second docked toolbar from the top (e.g. Formatting toolbar in Writer), and add the "Insert Table" dropdown button as the *first* item there. 2. Click on the button. The popup will show but close immediately. The problem isn't specific to the "Insert Table" popup, it's just an easy reproducer. What seems to happen is that after the popup gets the focus, it receives mouse move and mouse up events, that were supposed to go to the parent, with the coordinates of the parent - so it treats it as if clicking inside the popup in the same coordinates. What seems to eliminate this behavior is either: 1. Reorder the callbacks in GtkSalFrame::signalButton. So SalEvent::MouseButtonUp goes first, and SalEvent::Move afterwards. 2. Comment all mouse grabs in GtkSalFrame::Show. But I doubt any of those is the right fix...
Hopefully that's the right solution: https://gerrit.libreoffice.org/32465/
Maxim Monastirsky committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=23a13694a5a70098b5ecd58b99d99618111f3ea5 tdf#104944 gtk3: Ignore mouse up event if the wrong frame It will be available in 5.4.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
seems a reasonable fix to me
Maxim Monastirsky committed a patch related to this issue. It has been pushed to "libreoffice-5-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=f1b786bdd2576f584c62bfa797d3849eb5330c2c&h=libreoffice-5-3 tdf#104944 gtk3: Ignore mouse up event if the wrong frame It will be available in 5.3.0.2. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.