Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
1.75k stars 94 forks source link

EventBox triggering event for other button #343

Closed MohitR1999 closed 3 months ago

MohitR1999 commented 3 months ago

So I'm trying to make a pop up menu, and till now I have achieved almost 90% success for that, I am able to reveal a window on a button click, however, the workspace switcher which I made using EventBox is also triggering the same button which I'm intending to use for the popup menu. I'm attaching a screen capture as well demonstrating that issue

https://github.com/Aylur/ags/assets/31106144/beb2ee47-8bc0-4ab1-98fb-65fb9aaa7304

MohitR1999 commented 3 months ago

Update: Somehow the event handler which I wrote for the utilities menu was being triggered by every button that was present in the bar, so any time I tried to click on any widget the utilities menu would open, however, I later modified the property on the button, and instead of 'on-primary-click' I used the 'onClicked' property, which fixed the issue. Still don't have a clue as how it worked, ideally I assume that both event handlers should work identically.

Since I'm unblocked now, hence closing this issue.