Closed Bug 1377084 Opened 7 years ago Closed 2 years ago

Update gtk grab to 3.20 - replace gdk_pointer_grab() by gdk_seat_grab()

Categories

(Core :: Widget: Gtk, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: stransky, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We should replace gdk_pointer_grab() by gdk_seat_grab() which was introduced in Gtk 3.20. The problem here is that gdk_seat_grab() actually works and the pointer *is* grabbed which causes regression in menu behavior. For instance when second (child) sub-menu is opened (Menu bar -> View -> Toolbars), the Toolbars sub-menu is opened, grabs input by gdk_seat_grab() and all mouse input is directed only to the Toolbars submenu. OTOH the recent behavior does not restrict pointer input to the Toolbars submenu only.
Attached video pointer grab demonstration (deleted) —
This video demonstrates the pointer grab performed on sub-menu.
Attachment #8882131 - Attachment description: drag demonstration → pointer grab demonstration
I wonder if we actually want to perform that pointer drag (I don't think so) and why is behavior of gdk_pointer_grab() and gdk_seat_grab() different here.
Attached patch patch (deleted) — Splinter Review
This patch replaces gdk_pointer_grab() and gdk_seat_grab() but also causes the regression.
Priority: -- → P3
No longer blocks: 1423598
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: