-
Notifications
You must be signed in to change notification settings - Fork 74
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
Implement "move-or-raise" action #408
Comments
If I understand correctly you would like the window to raise when you Alt+Click on it, but still not to raise when you alt+click+drag it, is that right? Because otherwise you already have the Focus Windows when draging option |
I just would have to implement a Set foreground mouse action that you would set as a drag-free move action. |
As I understand it, he wants that the hotkey alone (Ctrl/Win/Alt) is able to focus the window. |
The discussion comes from the non-drag actions That is why I understood that. Anyway it seems a good idea to gave the Focus window action, it takes barely takes extra code and could also be used as a While moving action or something. |
Actually, in both cases raise the window, whether or not it is moved. Maybe that is how you already implemented it? Sorry I was 8 hours late to respond, I'm apparently in a different time zone or went to sleep too early ;-). |
Then, just Check the Focus Windows while dragging option in the general tab of the config file, (first option). |
It is fine, there is no hurry, I am aware that people from the whole globe are commenting here So I understand there can be easily more than a day for a full answer response loop. |
I have now tried config.general.focus-windows-when-dragging, but "Move" ends up iconizing/minimizing the window rather than raising it when NOT dragging. The reason is I'm using move as the base operation for both mouse1 and mouse2, and move has already been programmed to the "move-or-iconify", so the iconify/minimize takes precedence (I guess) over "move"+config.general.focus-windows-when-dragging setting when I am NOT dragging. Said another way: Need to get focus when NOT dragging. Am I making sense? I hope I am. Apoligies for rambling a bit, maybe I'm just trying to convince myself I am understanding correctly how things currently work. I'm still learning. Upshot: It looks to me like a programmable "raise"/Focus action pulldown menu functionality/entry would be needed, with the optional "move-if-dragged" also in effect. Just for easy reference, my original X11 + twm/vtwm/fvwm style formulation from #110 Button1 = m : window|title|icon : f.function "move-or-iconify" |
I do not see how I could implement what you are asking. |
Is it the same input? I'm describing the action of a different mouse button, mouse2 not mouse1. Does AltSnap not take into account which mouse button was pressed when deciding what do to? Granted, both mouse1 and mouse2 in some sense invoke "move" (if dragged), but does AltSnap then not distinguish between the choice of minimize/iconify and focus/raise if there was no dragging? |
Ok, I get it, it is indeed not supported by AltSnap indeed. |
I'm trying your suggested "resize" trick, specifically I set config.mouse.mouse2.action=resize (not move) That worked for me!! Don't really understand how it works, but great, I can now mouse2.press-drag for resize, and mouse3.click for raise/focus. |
One more general comment that may be relevant or provide an idea: I noticed that the mouse action menu has multiple "modes" such as 1. primary with "submodes" A. while moving B. while resizing. Seems to me that if there existed submodes called C. press-release and D. press-drag-release then that would be a way of specifying independently for each mouse button what function/operation to do when drag/nodrag. Just some food for thought, maybe it is a viable idea? The limitation of the long-drag-free-move/resize "special two hacks" is that they apply only to either move or resize operations, but as we know, also that it cannot distinguish between multiple mouse buttons set to move as for selection of the non-drag operation to choose. A more general scheme like aforementioned (C,D) might have some advantages and be more flexible and extensible? |
At some point I may generalize the UpClick actions so that you can configure any action on the upclick, but for now it is not the case because the upclick only makes sense for the move and resize actions. |
I see what you mean, although the action of the upclick is in some sense dependent on whether there was a drag right before it :). One might need a configuration distinction between nodrag-upclick and drag-upclick actions. Note to self: downclick-drag-upclick as terminology, versus what I have been calling it: press-drag-release |
I will close it as it is resolved, I will open a new Issue if I work on generalizing up-click handling |
Hi Ramon, do you think you could also implement "move-or-raise" (see original post), where raise means to foreground the window (not sure what that is called in windows parlance).
If not clear why this is useful: I can raise a window simply by clicking the mouse1 button (LMB?), but the problem is that it is completely ingrained in me to press the Alt key when I use X11 (or AltSnap), and in that case there is no programming of AltSnap that will raise the window (move-or-raise is the desired functionality).
Originally posted by @reikred in #110 (comment)
The text was updated successfully, but these errors were encountered: