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

The titlebar on the window created by scrcpy isn't detected by altdrag. #241

Closed
RamonUnch opened this issue Jul 30, 2022 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@RamonUnch
Copy link
Owner

Also wanted to add that the titlebar on the window created by scrcpy isn't detected by altdrag.
https://github.com/Genymobile/scrcpy

Originally posted by @rp1231 in #235 (comment)

@RamonUnch
Copy link
Owner Author

@rp1231
Maybe first have a look at the WM_NCHITTEST value when pointing at the titlebar, using the Identify Window option in the Blacklist tab.
Probably the program does not respond properly as it seems it is redrawing itself everything.

@RamonUnch RamonUnch added the bug Something isn't working label Jul 30, 2022
@rp1231
Copy link

rp1231 commented Jul 30, 2022

AltSnap_wk3moIKoUO
This is the blacklist tab screenshot.

@RamonUnch
Copy link
Owner Author

RamonUnch commented Jul 30, 2022

It is a SDL based program so it is blacklisted by default.
You can still try to modify the MMBLower blacklist and remove the *|SDL_app, entry but I am not sure that it will behave correctly:

In the [Blacklist] section

MMBLower=*|CASCADIA_HOSTING_WINDOW_CLASS,*|SDL_app,*|MozillaDialogClass
; List of windows for which the Titlebar action should not be performed.
; default is MS-WindowTerminal and all SDL programs.

The reason that SDL apps are blacklisted in this way is that I was unable to make DOSBox windows behave correctly with AltSnap. Your experience might vary with different configuration and with a different SDL based program.

@rp1231
Copy link

rp1231 commented Jul 30, 2022

Yes thanks,
That solved it.
There is one minor quirk ( A deadzone to the left of the minimize button) but it is largely very functional and usable for this particular window.

@RamonUnch
Copy link
Owner Author

I will link this thread to the wiki

@Ichisich
Copy link

Ichisich commented Aug 2, 2022

The reason that SDL apps are blacklisted in this way is that I was unable to make DOSBox windows behave correctly with AltSnap.

Does this still persist?
I only tested DOSBox 0.74 and couldn't notice anything unusual.
SDL apps are very common, I at least use almost a dozen, and not one behaves irregularly (I deleted the blacklist entry long ago).

Edit:
Tested DOSBox 0.78.1, the most recent one.
Couldn't notice different behaviour between title bar handling and general hotkey actions.

@RamonUnch
Copy link
Owner Author

I do not which version I was using but it seems you are right. Also maybe AltSnap changed too. I guess I will remove it from the default list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants