Scrcpy: Always on top for Mac OS

Created on 20 Feb 2019  路  13Comments  路  Source: Genymobile/scrcpy

I really like using scrcpy and was excited to see the always on top feature added. But I believe this is just for Windows or Linux? It doesn't work on Mojave on my Mac at least. It would be great if this could be added.

feature request

Most helpful comment

Not yet, but I'm gonna propose.

All 13 comments

Indeed, it seems only implemented for X11 and Windows in SDL (src/video/x11/SDL_x11window.c and src/video/windows/SDL_windowswindow.c).

You should open a bug on LibSDL, since _scrcpy_ just sets the flag.

Would the bug be something along the lines of "Allow always on top on Mac OS" like that I've asked here?

Would the bug be something along the lines of "Allow always on top on Mac OS" like that I've asked here?

Yes, for more detail, you can specify that the flag SDL_WINDOW_ALWAYS_ON_TOP doesn't apply to MacOS.

In case you still want this you can build sdl from my fork:
https://github.com/gabrielformiga/SDL-mirror/tree/mac_window_always_top

Did you propose a patch to SDL upstream?

Not yet, but I'm gonna propose.

Just in case you want to track this:
https://bugzilla.libsdl.org/show_bug.cgi?id=4809

Thank you :+1:

This has been merged, but always-on-top isn't working for me with 1.11 on Catalina...

https://github.com/spurious/SDL-mirror/commit/1c8dffa9b2fe89e3d15014b1994c21a0bbfca773

@hacker1024 probably for the next release of SDL?

Oh, right

I just built 1.11 with the master branch of sdl2 and can confirm that the patch works.

Here's the binary if anyone wants it.

I think it's gonna be available on 2.0.12. The Bugzilla is marked with target-2.0.12

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swamikamal picture swamikamal  路  3Comments

qymspace picture qymspace  路  3Comments

udit7395 picture udit7395  路  4Comments

targor picture targor  路  3Comments

tonypachino picture tonypachino  路  3Comments