Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse middle click doesn't work #152

Open
YanDoroshenko opened this issue Nov 11, 2021 · 11 comments
Open

Mouse middle click doesn't work #152

YanDoroshenko opened this issue Nov 11, 2021 · 11 comments

Comments

@YanDoroshenko
Copy link

Looks like the essence of the tray button has changed since 0.8.0 and middle mouse click doesn't mute/unmute sound. Is it possible to bring the middle click back?
Thanks.

@YanDoroshenko
Copy link
Author

I've done a bit of poking around and it seems that left or right mouse click just opens the menu (ignoring the modifiers) while middle click does nothing at all.

@aimixess
Copy link

I tried all of these on tray icon and nothing work for me :

  • ctrl + left-click: start pavucontrol
  • middle-click / alt + left-click: toggle mute default sink
  • ctrl + middle-click / ctrl + alt + left-click: toggle mute default source
  • ctrl + scroll: adjust the default source volume

@Abastro
Copy link

Abastro commented Mar 8, 2022

Think I am also suffering from this issue. Does the tray support activate/secondary activate from status-notifier-item?

@aimixess
Copy link

I just test again with version 0.8.0 and all is working fine if it is launched with symbolic icons. @Abastro, what is your DE/WM ? Did you tried with another one ?

@Abastro
Copy link

Abastro commented Mar 11, 2022

Okay, let me try and check again

@YanDoroshenko
Copy link
Author

YanDoroshenko commented Mar 11, 2022

I've just run the code from master and that's what I'm seeing:
image

New on click:
image

Old on click:
image

Plus middle click on the old one works as a mute, while the new one does not react to middle click.

Mouse scroll changes volume on both.

By "old" I mean the Arch Linux package that claims to be 0.8.0 too.

@Abastro
Copy link

Abastro commented Mar 13, 2022

Hm, somehow it works now, even though I did nothing.

@YanDoroshenko
Copy link
Author

OK, updates:

"Old" vs "new" is GtkStatusIcon vs AppIndicator, middle click doesn't work on appindicator and logs the following error:

gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

@Abastro
Copy link

Abastro commented Jun 5, 2022

Just checked the code.
https://github.com/christophgysin/pasystray/blob/master/src/systray_impl.c
The appindicator version does not implement anything other than the menu and scroll, it seems.
Perhaps that's why it has such dependent behavior, now for me middle click does not work again.

@bgstack15
Copy link

I was going to investigate adding a https://github.com/linuxmint/xapp implementation but I know next to nothing about C lang.

On a debian-based system, if you remove all libayatana-appind* packages, you can then manually compile this application to use its fallback implementation which works with the middle-click to mute.

(pasystray:25749): pasystray-DEBUG: 11:32:18.647: [systray_impl] using GtkStatusIcon

So for Debian Unstable and related releases, you can just use my package (note: it also disables avahi usage for network discovery).

@christophgysin
Copy link
Owner

On a debian-based system, if you remove all libayatana-appind* packages, you can then manually compile this application to use its fallback implementation which works with the middle-click to mute.

@bgstack15 Instead of removing packages, simply use:

$ ./configure --disable-ayatana-appindicator ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants