Conversation
|
| button.add_events(Gdk::BUTTON_RELEASE_MASK); | ||
| button.signal_button_release_event().connect( | ||
| sigc::mem_fun(*this, &Task::handle_button_release), false); | ||
| button.signal_clicked().connect(sigc::mem_fun(*this, &Task::handle_primary_clicked)); |
There was a problem hiding this comment.
The nearby action-dispatch comment still says per-task actions are handled by Task::handle_clicked, but this change replaces that callback with Task::handle_primary_clicked. This stale reference could mislead future maintenance, so it should name the actual handler.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
What does this PR do?
The wlr taskbar currently runs its primary action from a raw button-release event. GTK accessibility clients activate a button through its
clickedsignal instead, so an AT-SPIDoActiondoes not trigger the configured taskbar action.This moves the primary action to
Gtk::Button::signal_clicked(), which is shared by pointer and accessibility activation. Middle- and right-click actions remain on the button-release path. Dragging continues to use GTK's configured drag source, which suppresses a normal click once a drag starts.Related issues
None.
Checklist
clang-formatninja -C build)man/) — no user-facing options changed