Skip to content

Commit 1a1288d

Browse files
authored
menu: Fix misclick on user avatar area when resizing the menu (#13154)
1 parent 8e1fceb commit 1a1288d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,13 +2407,13 @@ class CinnamonMenuApplet extends Applet.TextIconApplet {
24072407
this.userBox = new St.BoxLayout({
24082408
style_class: 'appmenu-sidebar-user-box',
24092409
vertical: true,
2410-
reactive: true
2410+
reactive: false
24112411
});
24122412

24132413
let user = AccountsService.UserManager.get_default().get_user(GLib.get_user_name());
24142414
this.userIcon = new UserWidget.UserWidget(user, Clutter.Orientation.VERTICAL, false);
2415-
2416-
this.userBox.connect('button-press-event', () => {
2415+
this.userIcon.set_reactive(true);
2416+
this.userIcon.connect('button-press-event', () => {
24172417
this.menu.toggle();
24182418
Util.spawnCommandLine("cinnamon-settings user");
24192419
});

0 commit comments

Comments
 (0)