-
Notifications
You must be signed in to change notification settings - Fork 266
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
geany-plugin-addons systray icon feature request: alternate collapse window to icon options #1293
Comments
Whilst anything can be coded if the WM supports it, there are lots of Linux WMs and Windows and Macos and Geany is not likely to include anything that needs specific code for each of those. |
I'm referring to the Geany icon to the lower right beside the volume icon in the systray/notification area. The one enabled in the pictured Geany plugin settings. Not to the other Geany icon further left along the bottom panel amongst other running window icons. The Geany icon to the lower right—that has the mouse pointer over it prompting a tooltip that says "Geany"—is Geany specific and provided via the "addons" plugin. A right click on it brings up a small menu of Geany specific functions and a left click toggles the Geany window in a manner that prevents it from showing in taskbar amongst other running windows when collapsed. And then allows it, the still running Geany session, to show on whatever workspace one's on when the icon is clicked again. |
Ok, thats clearer. Lets go back to your OP.
Depends what you mean by "collapse", the usual meaning is what the
The X in the title bar is usually handled by the WM, Geany does not generate those controls, the WM sends Geany a signal to quit. Many WMs then wait a while, and if the application hasn't quit it pops up a "Application not responding, do you want me to kill it?" type dialog. Clearly that is not compatible with iconifying but continuing the application. For systems where the X in the toolbar can be used as iconify the WM may require client side controls giving the application the ability to intercept and change the signal. But there are many different WMs and they work in many different ways, so its unlikely that a suitable implementation that will suit them all can be found, but of course if "somebody" found a way that worked on all WMs they could make a PR. |
Then "somebody" can copy the portable code from there, and make a PR also being sure its also handled/removed on Windows/macos. |
At present I'm able to collapse the Geany window to the systray icon via a left mouse click upon the systray icon itself.
Which on my system is located at the bottom of the screen in a tint2 panel running within MX Linux 23 FluxBox edition, a Debian based system.
I'd like to be able to collapse the window to the systray with a keyboard shortcut from within the active window. And/or from an icon or menu entry somewhere in the window. And/or, as I've seen implemented in other apps (most recently DeadBeef audio player), to have a toggle in preferences to allow closing the window to collapse it to the systray icon—instead of exiting the program. One then typically exits or "quits" the running instance via a menu entry upon right clicking the systray icon.
In the mean time, I'd welcome any presently applicable workaround suggestions folks might have.
The icon location within the tray is variable so using a click recorder app to invoke a replay of a click at its location via a shortcut triggered script or whatever would likely produce inconsistent results.
Might there be some way to fool the icon into thinking it's received a left click? Like to send a signal to trigger its function regardless of its precise location on screen?
p.s. – Perhaps this link to GTK info might help inspire someone more versed than I: https://www.geany.org/manual/gtk/gtk/GtkStatusIcon.html
The text was updated successfully, but these errors were encountered: