question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Left-click action for tray icon on Linux.

See original GitHub issue

Is your feature request related to a problem? Please describe.

Kind of. Currently, when hiding WebCord (e.g. exiting the app, which moves it to the tray), you have to then right click the icon and press the Toggle button, to re-show WebCord.

Describe the solution you’d like

As an optional setting, available from the settings page, I’d like to have the ability to left-click (i.e. just press) the icon, to toggle the visibility of the WebCord window. The right-click settings could stay intact.


MOD EDIT: This is more a bug description about known Linux limitation in Electron that has been recently resolved; I will update tags accordingly to use it for tracking this issue in WebCord.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
SpacingBat3commented, Aug 22, 2022

There should not be any difference between this method and closing the window. Moreover, there should be no difference when hiding window with Toogle option:

Just tested it again and for me it worked like this:

* Hide window by closing it: The window does not show up in the list of open apps, but is in tray (this is what I wanted)

* Hide window by pressing the toggle button in tray: does the same thing

* Hide window by clicking the tray icon: The window is "Hidden" by GNOME's standards, but is not actually closed and can still be visible when checking all the open apps.

From what I understand from your code all three options use the same parent.hide() function, so this is most likely a GTK/GNOME problem. In that case thanks for the thorough explanation and for trying to fix the problem 😃

Testing on XFCE4 after removing libappindicator it works excatly the same in all three cases. The window is hidden and can be neither found with <kbd>ALT</kbd>+<kbd>TAB</kbd> nor in taskbar. So that seems to be a GNOME-specific issue, maybe not related to WebCord at all.

1reaction
SpacingBat3commented, Aug 14, 2022

I might still implemented it on macOS/Windows or Linux with GtkStatusIcon through… and this was something I’ve originally planned to do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Left-click on tray icon opens menu instead of show/hiding the ...
Description Left-clicking on the tray icon does not show/hide the Riot desktop app. Instead, it shows the menu that also shows up on...
Read more >
Left clicking on some system tray icons results in no action
Start an application which displays an icon in the system tray (e.g., Slack for Linux) 2. Close the application's main window. 3.
Read more >
[SOLVED] Taskbar's (system tray applet) left-click behavior ...
- left clicking on an icon in the taskbar, open the application menu. In order to open the application itself, instead of one...
Read more >
Bug #1553269 “tray icon ignores left mouse click in plasma5”
The tray icon when clicked with any mouse button does nothing. Setting the floating icon active and using that works, however the icon...
Read more >
Systray and left mouse button : r/suckless - Reddit
I just upgraded to the new slackware 15.0 and noticed this awful behavior: by clicking both with right or left click always appears...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found