From d04ef39a9881186f8edc35aa956fc701d04a2ead Mon Sep 17 00:00:00 2001 From: anaximeno Date: Sat, 21 Sep 2024 02:44:13 -0100 Subject: [PATCH] panel.js: Only pick reactive actors while verifying the target actor on button press --- js/ui/panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index 93697988c0..3730449da8 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -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 &&