Skip to content
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 drag_into_group #8004

Merged
merged 1 commit into from
Oct 8, 2024
Merged

layout: add drag_into_group #8004

merged 1 commit into from
Oct 8, 2024

Conversation

Aqa-Ib
Copy link
Contributor

@Aqa-Ib Aqa-Ib commented Oct 6, 2024

Describe your PR, what does it fix/add?

This adds the config option drag_into_group to control whether dragging a window into a unlocked group will merge them. Options: 0 (disabled), 1 (enabled), 2 (only when dragging into the groupbar). Wiki

Also does (compared to main):

  • Unifies the dragging into a group logic into IHyprLayout::onEndDragWindow(), and detaches it from IHyprLayout::changeWindowFloatingMode().
  • Fixes grouping a tiling group into a floating group (float state fixed).
  • Fixes grouping a window into a floating group (size fixed).
  • Enables grouping a floating window into a tiled group only when dragging it into the groupbar.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

I have tested every scenario I could imagine and everything is working fine.

Is it ready for merging, or does it need work?

It is ready.

Aqa-Ib added a commit to Aqa-Ib/hyprland-wiki that referenced this pull request Oct 6, 2024
src/config/ConfigDescriptions.hpp Outdated Show resolved Hide resolved
src/layout/IHyprLayout.cpp Outdated Show resolved Hide resolved
src/layout/IHyprLayout.hpp Outdated Show resolved Hide resolved
@Aqa-Ib Aqa-Ib force-pushed the drag_into_group branch 6 times, most recently from f6a2b0d to dbca84d Compare October 7, 2024 16:53
@Aqa-Ib
Copy link
Contributor Author

Aqa-Ib commented Oct 7, 2024

OK, I have refactored the code. Now it is clean.

@Aqa-Ib Aqa-Ib requested a review from vaxerski October 7, 2024 17:31
Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fare enough

@vaxerski vaxerski merged commit 45e8219 into hyprwm:main Oct 8, 2024
12 checks passed
vaxerski pushed a commit to hyprwm/hyprland-wiki that referenced this pull request Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants