master layout - allow usage of layoutmsg swapwithmaster to optionally disable swapping master with a slave #10597
-
|
I am writing this issue because I am attempting to use hyprland on my mobile phone. I would like a layout in which you can touch one of the unfocused slave windows in order to focus it, and set it as the master. However, I do not want to touch the master window, and then have it become a slave again. I am using the plugin hyprgrass in order to bind touch gestures (in this case, a single tap anywhere on the screen) to execute dispatchers (in this case, Expected behaviour for my specific problem, but not compatible with other setups:
Expected behaviour, more compatible with other setups, my preferred method:
This could possibly be implemented in a plugin or script, but I'm not experienced with those. I think editing the source code of Hyprland's master layout will be easier for my problem. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
I would also like to point out that, after downloading Hyprland's source code, I found the following lines: Recompiling after commenting these lines out completely solved my issue. Of course, I have not added an option, but have explicitly removed the lines that were causing my specific problem. Solving this the "correct way" would seem to be extremely easy for anyone willing to add an extra option to this layoutmsg, but I don't know C++, so I cannot fix it myself. |
Beta Was this translation helpful? Give feedback.
-
|
I was told by the wiki to post an additional comment with more info if the discussion is stale. I don't have any additional information to add, other than that I'm still recompiling Hyprland from source. Can someone look into this? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
#11042