-
Notifications
You must be signed in to change notification settings - Fork 46
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
Alt-Click resizing interferes with some programs #130
Comments
This is currently half-possible in |
I've been poking the code for bit. Oooh the hash function i thought of using is The shortcoming for this (hashing in general) would be; After thought : I do loose points on simplicity though :/ |
We can probably think of a much simpler solution than having to hash the resize mask. There's likely a fairly simple solution, actually, now that I think about it. Rather than passing a string to the The way that these masks work is that they're just a series of numbers, each with only one non-zero bit. They're defined in
Then, when we call a function like Since the values of these masks are standard across the client and server (the berry client/server, that is), we can probably just have the client send over a masked integer as an int and read that on the server side. It would require some parsing on the part of the client, but I think it's more reasonable than using hashing. |
Ah i got misunderstood I believe I'm currently concentrating on translating the string I'll abandon hashing for now and search for other stupid ideas :) |
I checked out Looks like avoiding repeated checks is gonna make it pointless seeing that the maximum number of things that need to be checked against are ~8 Modifier Masks So repeated checks it is I'm trying to make a parse function as compact as possible. |
I think simply enumerating all inputs is fine. It’ll be a bit tedious but it’s totally understandable. |
I gave it a go Pretty much the same from the source sadly Also noticed a potential bug I believe when said unintended value is passed. Which when sent as an event to A simple check would do it |
Yo @hatcatpat I tried a potential solution #146 |
I've found that some programs hard-code the Alt-Click as a hotkey, but this triggers the window resizing in berrywm and doesn't pass the mouse event on.
A specific example is Purr-Data, you need to hold Alt and left click in order to use the UI (so its currently impossible to use this program in berrywm)
I've just changed my local version to use Super+Alt+Click to be resize rather than Alt+Click,
in config.h:
#define RESIZE_MASK Mod1Mask
#define RESIZE_MASK (Mod1Mask | Mod4Mask)
If it is already possible to change this with berryc then ignore me!
Thanks,
Pat
The text was updated successfully, but these errors were encountered: