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

feat: add minimizable and maximizable options #116

Closed
antoncda opened this issue Jul 1, 2021 · 9 comments · Fixed by #562 · May be fixed by grant0417/tao#1
Closed

feat: add minimizable and maximizable options #116

antoncda opened this issue Jul 1, 2021 · 9 comments · Fixed by #562 · May be fixed by grant0417/tao#1

Comments

@antoncda
Copy link

antoncda commented Jul 1, 2021

Feature required where when alwaysOnTop is set to true, then even clicking on the app icon on the OS's task bar should not minimize the application and it stays always on top unless exited by the user.
Thanks,
Donnie

@nothingismagick
Copy link
Sponsor Member

Do you mean always on top or non minimizable? That's two different things. I think I understand, but want to make sure your feature request is clear.

@antoncda
Copy link
Author

antoncda commented Jul 1, 2021

i think its sort of an extra flavour of always on top, I've seen apps which just float on your desktop and wont minimize or quit unless disabled in the system tray, I guess this was done using C++ or C# but thought it would be a nice feature to add if possible. thank you

@amrbashir amrbashir added enhancement help wanted Help is requested to fix this issue labels Jul 1, 2021
@antoncda
Copy link
Author

antoncda commented Jul 1, 2021

To give an example. If we wish to create a tool bar which always floats, then clicking on the taskbar icon should not minimize it as it would hide and defeat its purpose. thanks.

@nothingismagick
Copy link
Sponsor Member

Sure, I've seen this in updaters on macos. It's aggressive and pisses me off, but a LOT less than when I restart my system after a month of uptime and discover an errant window from some process still there in the background.

Thanks

@antoncda
Copy link
Author

antoncda commented Jul 2, 2021

I saw this option in Electron "skipTaskbar: true" this sort of solves the issue of app being un-minimizable whereby the app does not feature on the taskbar with this option therefore it is not minimizable if you disable the minimize button on your titlebar only enabling the close button if you wish.

@amrbashir
Copy link
Member

This should stay un-minimizable feature request as we have skip_taskbar implemented already. I think it is possible on windows, linux seems to be a dead end and I don't know about macOS but I will keep this open until further investigation.

@wusyong
Copy link
Member

wusyong commented Jul 2, 2021

we called deiconify on Linux when minimized is false.

@amrbashir
Copy link
Member

amrbashir commented Jul 2, 2021

yeah but that won't stop the user from clicking the icon in the taskbar/dock to minimize it.

I think electron had minimizable and maximizable options, so I might have to dig into their source code.

@amrbashir
Copy link
Member

After some digging around, minimizable and maximizable is possible on macOS and Windows, linux seems impossible unfortunately.

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

Successfully merging a pull request may close this issue.

4 participants