-
-
Notifications
You must be signed in to change notification settings - Fork 842
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
layout: add direction parameter to onWindowCreated and friends #3269
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In addition: - Implement directional moveWindowOutOfGroup for `movewindoworgroup` when using dwindle layout. (augmentation of hyprwm#3006) - Replace `DWindleLayout::OneTimeFocus` with `IHyprLayout::eDirection`. - Slight formatting change (clang-format).
memchr
force-pushed
the
feat_outofgroup_dir
branch
from
September 12, 2023 10:09
0fbc200
to
bcd29ad
Compare
I fail to see the use? |
|
vaxerski
reviewed
Sep 12, 2023
memchr
changed the title
feat(layout): add direction parameter to onWindowCreated and friends
layout: add direction parameter to onWindowCreated and friends
Sep 12, 2023
memchr
commented
Sep 13, 2023
vaxerski
reviewed
Sep 13, 2023
vaxerski
approved these changes
Sep 13, 2023
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.
top g
doesnt this require a wiki mr too? for movewindowoutofgroup |
Probably not, I find the old behaviour unexpected (e.g. |
okay |
thejch
pushed a commit
to thejch/Hyprland
that referenced
this pull request
Sep 13, 2023
…m#3269) * feat(layout): add direction parameter to onWindowCreated and friends In addition: - Implement directional moveWindowOutOfGroup for `movewindoworgroup` when using dwindle layout. (augmentation of hyprwm#3006) - Replace `DWindleLayout::OneTimeFocus` with `IHyprLayout::eDirection`. - Slight formatting change (clang-format). * fix: nullptr dereference in dwindle window creation * refactor: generalized eDirection * refactor: eliminate DIRECTION_NONE * Update IHyprLayout.hpp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Abstract
Add a direction parameter with a default value to the onWindowCreated and onWindowCreatedTiling virtual methods of IHyprLayout. This parameter allows potential control over the direction of window creation.
Currently only DWindleLayout has an existing implementation of such control.
Does not affect master layout.
Other Changes
movewindoworgroup
. (augmentation of feat: add a new dispatcher that can move windows in and out of groups, or swap windows #3006)DWindleLayout::OneTimeFocus
withIHyprLayout::eDirection
.Hyprland/src/layout/DwindleLayout.cpp
Lines 298 to 308 in ed51fe7
The probability of this nullptr dereference being triggered is low, perhaps elucidating its belated detection.