-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add option to disable splash window #384
Comments
I've also had this issue, even though my computer is relatively high-spec. Skipping or hiding the "Loading Vesktop" splash, or just making it not force the main window to focus when it's done would be a lot less annoying. |
@Maritsu, if you're using
(see https://github.com/Vencord/Vesktop/files/14562853/KWinRuleset.kwinrule.zip) into |
Thanks for the tip! However I use DWM, so this might not be of use to me; though I do hope any KWin users that stumble upon this find this useful! |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
stop leaving these spam comments. if you agree, leave a thumbs up, commenting "omg i need this too" just adds noise |
Yep, this is the troubling behaviour from vesktop - it requests focus twice. Once for the splash screen, and again for the main window. That is the cause of the problem OP describes. The splash screen is given focus by running the application. The main window is given focus without user interaction even if the splash screen does not have it. If you have a WM which has focus stealing prevention, such as kwin, you can see that if you do prevent vesktop from stealing focus, start it, thus giving the splash screen focus, then switch focus to another app, it will still restore the main window's size, and it will be the front window, but not the active one. Like, you will see vesktop maximised like it was before, but the window that was active before, will still be active, you can see in your taskbar, and if you type, you type into that app behind vesktop, not the vesktop window you are looking at. So.... Hiding the splash screen won't solve OP's problem. They could still start vesktop, switch to another app during the wait time, and have focus stolen by the main window. Even if focus stealing is fixed (by: only hand off focus to the main window, if the splash screen already (and still) has focus) then there is also the problem with the restoring the window geometry over the top of other windows. Sorry!
Also wouldn't help, sorry!
I don't know vesktop's source well, but If this is anything like the Discord client, that splash window is (in layman's terms) a separate program that's downloading the actual main program and running it. So that couldn't work because the main window doesn't exist yet. Hopefully this is different...? |
the splash doesn't actually serve any purpose, it's just placeholder ui, and can easily be disabled/removed the reason it exists is that there are two alternatives, both of which suck:
|
I agree. 1) sucks because a user might think it's broken, try to kill it. etc... 2) sucks because "ow my eyes!". Seems like a splash screen is required here. What a surprise, I bet you didn't know that :D (joking) I Imagine that even if you are able to find a way to launch the main window without the white, and skip the splash screen, some people will still prefer the splash screen. It would be nice to fix this for them, too. I am a boring old man, I don't know what a shiggy is, but I sure know ppl around here like one! I guess the trick then, is to ensure we do not give focus/activity to the main window, if the splash screen does not have focus. (but do, if it does - as things are now). That way a user can start the app, see the splash, alt+tab to something else, and not have stolen focus when the main window is ready. Also, finding a means to avoid the obstructive geometry (as in, if the splash screen isn't in front, don't draw the main window at the front) No pressure from me, if you fix it some way that I can turn off the shiggy I probably will. It doesn't gel with my crusty old luddite persona. I just thought some other people might also see the problem OP described and want a fix that lets them keep their shiggy. |
is https://www.electronjs.org/docs/latest/api/browser-window/#setting-the-backgroundcolor-property not the solution for the startup flashbang? |
If you are using Hyprland, a temporary solution is to use a windowrule to hide the vesktop splash Hyprland.conf: You may see the shadow of the window for >=200ms but the window will be hidden |
Thanks for the tip there Axel living up to your name. Here's a KDE approximation of this concept Exported the above to a rule you can import from the GUI, github doesn't like the extension so I added .txt. |
I use DWM, but I'll poke around and maybe get something similar to work. |
Is your feature request related to a problem? Please describe.
The program can take a moment to start up on slower machines, and will steal the focus when it finally opens the main window, which can be annoying (especially if you group your windows into workspaces, where Vesktop will simply pop into the current workspace and steal the focus, which might disrupt workflow).
Describe the solution you'd like
An option to disable showing the splash window (the one that says "Loading Vesktop"), which opens the main window immediately instead
Describe alternatives you've considered
Additional context
None
The text was updated successfully, but these errors were encountered: