Skip to content

Commit

Permalink
panel.js: Only pick reactive actors while verifying the target actor …
Browse files Browse the repository at this point in the history
…on button press (#12403)
  • Loading branch information
anaximeno authored Nov 27, 2024
1 parent 66ad76e commit 5d01155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ui/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,7 @@ Panel.prototype = {
if (event.get_button() == 3) { // right click
try {
let [x, y] = event.get_coords();
let target = global.stage.get_actor_at_pos(Clutter.PickMode.ALL, x, y);
let target = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, x, y);

// NB test on parent fails with centre aligned vertical box, but works for the test against the actor
if (this._context_menu._getMenuItems().length > 0 &&
Expand Down

0 comments on commit 5d01155

Please sign in to comment.