-
Notifications
You must be signed in to change notification settings - Fork 287
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
SSR goes in the foreground, when recording Minecraft #479
Comments
Are you using glinject? and its SSR not SSS :P On Thu, Aug 18, 2016 at 7:53 AM, Wilma456 notifications@github.com wrote:
|
Whats glinject? |
Using openGL to record the game, for instance to record minecraft you would On Fri, Aug 19, 2016 at 8:48 AM, Wilma456 notifications@github.com wrote:
|
I have never seen this happen myself. SSR certainly doesn't minimize Minecraft, it has no ability to do that. Minecraft must be minimizing itself, but I have no idea why. Are you using the hotkey to start the recording? Does changing the hotkey to something else have any effect? Does Minecraft also minimize itself if you press the same hotkey when SSR is not running? |
I see what you mean now. I can reproduce it if I put Minecraft in fullscreen by pressing F11, but that's not what I usually do. Usually I use Super+F, a shortcut which I've set up in my window manager which puts the current application in fullscreen (works with anything, not just Minecraft). When I do this there is no problem. This seems to be a problem with Minecraft, not with SSR. I get the same results when I press Alt+F2 or any other global hotkey, even when SSR is not running. So I suggest you just do what I do, configure a global hotkey in your window manager and use that instead of F11. This is not something that I can fix from SSR. |
That sounds probable because it's not "true fullscreen", or whatever that would mean. It's just maximized and no border. Maximizing a window is no problem, it's just bigger, and if you remove border, then it covers entire screen depending on panels you might have and preferences for them... This is my guess why it works. |
It's the other way around. My shortcut asks the window manager to make the game fullscreen, which is the 'right' way to do fullscreen on X11. The application-level equivalent is setting _NET_WM_STATE_FULLSCREEN, which tells the window manager that it should make that window fullscreen. This is what decently written Linux applications (e.g. firefox) do. Unfortunately there are a lot of poorly written applications and libraries out there that don't know that _NET_WM_STATE_FULLSCREEN exists, and instead try to implement it themselves, usually poorly:
Optional extras:
This is what SDL 1 did. It's what many games still do, and why my global hotkey code in SSR is so ridiculously complex - I'm basically running a low-level keylogger just to make sure the hotkey still works when broken games grab the keyboard. Apparently Minecraft has followed a somewhat different pattern. Their fullscreen implementation is only partially broken. It works with the 'nvidia' driver but fails with the open-source 'radeon' driver (just gives you a frozen screen). It does overwrite the gamma curves but at least it leaves the resolution alone. It does not mess with secondary monitors. It does not switch to the wrong screen either. It does not break global hotkeys, but somehow it does minimize itself when you press any hotkey (even the volume buttons, apparently). There is no such thing as 'true fullscreen' (the technical term is 'exclusive mode') on Linux, this is something which exists in DirectX but not in OpenGL. With OpenGL, you can just switch between windowed and fullscreen because there's no real difference, and the window manager will enable page flipping when this is possible. Page flipping is almost equivalent to DirectX exclusive mode without actually being exclusive. There is absolutely no reason why applications should have to implement their own broken fullscreen attempts, it does not gain them any performance and it just breaks the window manager. |
I think. recording in window is now the best method. Thank you for your efforts! |
When I start SSS, when Minecrsft is in fullscreen mode, SSS minimize Minecraft and goes in the foreground, so I have to maximize Minecraft while recording. I use Oracle JDK 1.8.0_92.
The text was updated successfully, but these errors were encountered: