[okular] [Bug 426613] Middle click on sidebar tab bar unloads the document. Nice, but—wrong tab bar

David Hurka bugzilla_noreply at kde.org
Sat Sep 19 16:30:29 BST 2020


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

--- Comment #2 from David Hurka <david.hurka at mailbox.org> ---
Created attachment 131778
  --> https://bugs.kde.org/attachment.cgi?id=131778&action=edit
Manually shown tab bar

I debugged it for you: Shell::eventFilter() listens to event of the whole main
widget, and then tries to get the tab under the event.

In the screenshot we see the tab bar after manually invoking show(). Mouse
events on the sidebar tab bar happen to match the position of the hidden tab.

This bug was not visible in older versions, because there was no tab bar, but
the line edit, which accepts middle clicks.

A simple and clean solution is to make Shell::eventFilter() listen to the
actual tab bar (not the tab widget), because that can’t promote events when it
is hidden. Another clean solution is to make the tab bar process middle clicks
itself.

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


More information about the Okular-devel mailing list