-
Notifications
You must be signed in to change notification settings - Fork 44
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
Multiple keyboard-based focus/resize improvements #73
Multiple keyboard-based focus/resize improvements #73
Conversation
I'm not currently available to do any code review, but
If these are not configurable they mist be to merge the PR without breaking peoples' workflows. To clarify, considering floating windows when a floating window is actually selected is good behavior, but integrating them with the tiled layer is unexpected if you do. I don't mind an option or multiple for that existing but it must be configurable. |
Thank you, I'll add those - had considered this already but chose not to predicated on avoiding exploding optionitis, hadn't considered principle of least surprise though. Proposal:
Rationale:
Please confirm that you're happy with this approach, I'll start implementing now working on basis that you are unless you say otherwise & obviously would prefer not to waste time if that proposal doesn't make sense to you. |
Sounds good to me, except I don't see the point of "floating"/"tiled" for default_movefocus_layer. It makes sense for the layer argument to movefocus though. |
Done - I'm going to need to handle the |
37f9dc7
to
b2f2e9b
Compare
Righto, that's ready for review please. I changed the config slightly |
Ah sorry, missed this again, I'll review it today. |
Cheers, much appreciated
23 Feb 2024 09:26:17 outfoxxed ***@***.***>:
…
Ah sorry, missed this again, I'll review it today
—
Reply to this email directly, view it on GitHub[#73 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADH2UZYAM7BFHX2O54VQMYLYVBODNAVCNFSM6AAAAABDNWPHPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQHE4DMMRWGA].
You are receiving this because you authored the thread.
[Tracking image][https://github.com/notifications/beacon/ADH2UZZSQNLLAAODMFNKSFLYVBODNA5CNFSM6AAAAABDNWPHPCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTU4JDJI.gif]
|
bump for likely missed edit since your email reply didn't include it |
Git identity .... yep, a little bit of information leakage lol, thanks for pointing it out. I'm aware of it, have dropped a lot of paranoia since initially creating a GitHub account :). |
Move floating window if focused, even if tiled windows on same workspace Navigate based on window middle Feels unintuitive in use when floating overlaid on tiled Fix: Set new monitor active when moving floating windows, remember previous workspace
Use last-focused-window when navigating to monitor by direction if it has same relative position as the logically closest window
1f69077
to
82f6283
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have not tested functionality yet. May have more comments after that. Didn't see any actual bugs.
Git identity .... yep, a little bit of information leakage lol, thanks for pointing it out. Comments addressed & changes pushed, thank you for the review. |
Alright I gave it a test.
|
@github-usr-name I had to revert this due to it breaking tab navigation. Feel free to re-open after thats fixed. |
Will do, thanks - what's the breakage please (basic repro)?
5 Mar 2024 09:43:56 outfoxxed ***@***.***>:
…
@github-usr-name[https://github.com/github-usr-name] I had to revert this due to it breaking tab navigation. Feel free to re-open after thats fixed.
—
Reply to this email directly, view it on GitHub[#73 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADH2UZ6A4KDALIIWIR6Y35LYWWHVVAVCNFSM6AAAAABDNWPHPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYGM2DIMJWHA].
You are receiving this because you were mentioned.
[Tracking image][https://github.com/notifications/beacon/ADH2UZ5LJ6XI5N4BIMWBJ5DYWWHVVA5CNFSM6AAAAABDNWPHPCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTV5MROQ.gif]
|
Try to use movefocus to change the current tab.
|
@github-usr-name It was impossible to focus tabbed window. Do you plan to correct the bug? I was very interested by this functlionalities. |
Yes, absolutely intend to fix the problem. Unfortunately I'm extremely busy at work right now and also can't replicate the issue, so haven't had an opportunity to look at it.
18 Mar 2024 19:25:44 Alexandre Acebedo ***@***.***>:
…
@github-usr-name[https://github.com/github-usr-name] It was impossible to focus tabbed window. Do you plan to correct the bug? I was very interested by this functlionalities.
—
Reply to this email directly, view it on GitHub[#73 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADH2UZ4IOU7FNJ576UHAFODYY45TNAVCNFSM6AAAAABDNWPHPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUG42DSNRWHA].
You are receiving this because you were mentioned.
[Tracking image][https://github.com/notifications/beacon/ADH2UZ3R367FXMDF2Z3RNGTYY45TNA5CNFSM6AAAAABDNWPHPCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTXPYGWI.gif]
|
Finally had a change to look. Despite seeing video of the issue I'm completely unable to replicate it. @aacebedo / @outfoxxed , it would be extremely helpful if you could please:
My code is on branch |
@github-usr-name apologies, took me a while to get to this. anyway it's still reproducible for me. Stripped down config used below
With this config you can observe that recording.mp4 |
And yet, with minimal config changes (just plugin path & terminal) I have totally different results!! OK, in the interests of eliminating things, then I am going to install alacritty; can you please supply your config on the tiniest little possible outside chance that it's something like an OSC sequence? Assuming that that doesn't show the problem then I'll prepare a branch with "insane logging" later on and ask if you could please supply the log output from that. test.webm(still not reproducible for me with stock alacritty install via |
I think there's a regression on this branch introduced by some recent Hyprland changes. I think it's since 0.38 or so, before that I've been using your branch just fine. When I use |
Haven't seen that one, but I've only just upgraded my box & not really used it enough to say. It'll be the weekend at the earliest before I can look, am away from home this week.
I have noticed sigsegv's on shutdown, coming from the CWorkspace destructor, coming from TabGroup dtor - looks like some sort of double-free type issue perhaps because 'this' had a value of 0x0. Bit of a pain, I like the workspace pointer changes though.
9 Apr 2024 19:30:22 postsolar ***@***.***>:
…
@github-usr-name[https://github.com/github-usr-name]
I think there's a regression on this branch introduced by some recent Hyprland changes. I think it's since 0.38 or so, before that I've been using your branch just fine. When I use *hy3:movefocus* on a floating window Hyprland freezes and eventually crashes. I get this with a pretty much the default config. Did you experience this too recently?
—
Reply to this email directly, view it on GitHub[#73 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADH2UZ6QYVARAM76WIPFEQDY4QXTXAVCNFSM6AAAAABDNWPHPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVHAZTQNBSHA].
You are receiving this because you were mentioned.
[Tracking image][https://github.com/notifications/beacon/ADH2UZ3JVNQRZX4K3YKB4SLY4QXTXA5CNFSM6AAAAABDNWPHPCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTZ6ECFY.gif]
|
I noticed I'm getting the same freeze+crash if I do:
I checked and it doesn't happen on base hy3. |
Thank you, I appreciate the reproduction information. Will have a look over the weekend.
11 Apr 2024 06:23:43 postsolar ***@***.***>:
…
I noticed I'm getting the same freeze+crash if I do:
1. Open two windows, expand one of the windows with *hy3:expand expand*
2. Try to use *hy3:movefocus* in the direction where the other window was
I checked and it doesn't happen on base hy3.
—
Reply to this email directly, view it on GitHub[#73 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADH2UZ4PJ5OXRSTGZTMGHXDY4YM5XAVCNFSM6AAAAABDNWPHPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBYHE2DONBQGI].
You are receiving this because you were mentioned.
[Tracking image][https://github.com/notifications/beacon/ADH2UZYPIZOPOZS4TT2GYY3Y4YM5XA5CNFSM6AAAAABDNWPHPCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT2EB2MU.gif]
|
@postsolar fixed - the problem was some additional logging code not validating pointers
|
@github-usr-name sorry I didn't notice this message — although I did update and was using the new version without knowing this issue is fixed :D Thank you very much! |
hy3:resizenode
dispatcher, which functions just likeresizeactivewindow
but applied to a whole nodehy3:movefocus
hy3:movefocus