summaryrefslogtreecommitdiff
path: root/src/layout/MasterLayout.cpp
Commit message (Collapse)AuthorAgeFilesLines
* animations: Fix incorrect animation when manually moving a window when its ↵thejch2024-03-191-0/+5
| | | | | | | being created (#5141) * fix incorrect rendering when manually moving a window when its being created * add setAnimationsToMove
* master: fix moving fullscreen workspace and remove duplicate code (#5131)thejch2024-03-171-44/+21
|
* master: fix invalid config usageVaxry2024-03-151-2/+2
|
* master: Fix master layout window focus and scroll (#5074)thejch2024-03-131-59/+28
| | | | | | | | | | | * fix master switch window scrolling * fix some more dispatchers and remove some duplicate code * refactor and remove duplicate code * fix focusmonitor: https://github.com/hyprwm/Hyprland/issues/5006#issuecomment-1986977255 * change check
* layout: Fix toggling fullscreen special workspace on different monitor (#5000)thejch2024-03-071-0/+22
| | | | | | | * fix toggling fullscreen special ws on different monitor * add for dwindle * fix change regular workspace when special fullscreen
* master: change active monitor when moving windows around (#5001)thejch2024-03-071-0/+2
|
* keybinds: Allow fullscreen/maximize in special workspace (#4921)thejch2024-03-041-2/+2
| | | | | | | | | | | | | | | * allow fullscreen/maximize in special workspace * remove duplicate code * hide top layer * fix special fullscreen deco * edit * fix fade top layer when toggle special * remove double render
* config: improve config value infrastructureVaxry2024-03-031-81/+82
|
* master: Fix animate resize (#4942)thejch2024-03-031-2/+2
| | | | | * fix master animate resize * fix some other pointers
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-021-7/+7
| | | | | | | | | | | | | | | | | | | | | | | * animation: Refactor AnimatedVariable This commit decomposes the AnimatedVariable class into a base class with the common attribute to all variable types and a templated derived type containing strongly typed info on the type being animated. Access to the typed version is perfomed using the visitor pattern. A utility is provided to build a visitor on the fly using lambdas. Adding a new type to be animated should just be a matter of adding the typed in the list defined by the ANIMABLE_TYPES macro The size of the commit is justified by the API change in the AnimatedVariable class. No more vec(), fl() or col() method but a unified value() method. * animation: Remove visitor pattern * animation: Fix coding style * animation: Fix coding style
* layout: add size prediction for initial xdg commitsvaxerski2024-02-281-0/+27
| | | | fixes #4022
* feat: Add css style gaps (#4723)Dashie2024-02-211-6/+9
|
* Migrate the config to hyprlang (#4656)Vaxry2024-02-181-45/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Migrate to hyprlang * pop up errors * fix swapped args * Meson & Nix: build with hyprlang * CI: add hyprlang to setup action * add infra for plugin stuff * fix hyprctl getoption * fix hyprctl getoption with json * format * fix post parse logic * fix autogen config * oops missed exec-once * fmt * fix ws rules * require 0.3.0 for hyprlang * nix: flaek * minor type fixes * fix cfg usages in swipe * use cvarlist for ws rules * fix throw in addPluginConfigVar * Nix: update hyprlang * minor fixes * fix disableLogs * mention hyprlang docs * bump hyprlang dep in cmake * Meson: bump min hyprlang version Nix: update hyprlang * minor fix * Nix: update meson patch --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
* layout: save float props before setting fs state (#4537)bvr-yr2024-01-261-8/+8
| | | fixes #4388
* master: Add more null checks for rollnext (#4343)thejch2024-01-041-2/+8
| | | | | * add more null check for rollnext * remove pwindow check
* master: guard PNODE in roll*vaxerski2024-01-021-0/+6
| | | | fixes #4331
* layout: update rules before applying fullscreen nodes in layoutsvaxerski2024-01-021-0/+3
|
* internal: Unify input handling on decorations (#4280)dranull2023-12-281-10/+2
| | | | | | | * Unify input handling on decorations * Make input methods private * Optional data
* master: add dispatchers rollnext and rollprev (#4209)thejch2023-12-221-0/+44
|
* internal: nuke CWindow::m_bMappedX11Vaxry2023-12-171-1/+1
| | | | it's useless. m_bIsMapped is the same.
* config: improve layoutopt handling for workspacerulesVaxry2023-12-111-7/+6
|
* internal: Remake borders as window decorations (#4104)Vaxry2023-12-101-10/+6
|
* workspacerules: Add workspace rule for master layout orientation (#3964)thejch2023-12-021-4/+12
| | | | | | | | | | | * add workspace rule for master layout orientation * change rule format * edit rule name * use map for layoutopts * use std::any instead of string
* decorations: Decoration Positioner (#3800)Vaxry2023-11-111-4/+4
|
* layout: fix various rounding errorsVaxry2023-11-061-3/+6
| | | | maybe finally will end #3761
* layout: round window boxes after special scale factorVaxry2023-11-051-3/+6
| | | | fixes #3761 again
* layout: fix missed setWindowSize in no_gaps_when_only node applyVaxry2023-11-041-0/+2
| | | | fixes #3758
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-041-2/+2
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* Decos: Window decoration flags, shadow improvements (#3739)Vaxry2023-11-041-1/+1
|
* Master: fix drop_at_cursor when there are only two windows (#3734)thejch2023-11-031-22/+55
| | | | | * make drop_at_cursor work when dragging into a one-window workspace * fix drop_at_cursor when new_is_master is enabled
* layout: better storage for no fullscreen checks varvaxerski2023-11-031-10/+11
| | | | fixes #3731
* master: fix moving window between monitors (#3721)thejch2023-11-021-1/+1
|
* layout: avoid redundant size sets on new fullscreenVaxry2023-11-011-2/+5
|
* internal: create canBeGroupedInto() (#3693)MightyPlaza2023-10-301-8/+2
| | | | | | | modified: src/Window.cpp modified: src/Window.hpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* input: handle mouse on decorations (#3560)MightyPlaza2023-10-291-12/+15
|
* master: fix movewindow across monitors (#3628)thejch2023-10-201-1/+10
|
* master: fix resizing wrong window behind in special workspace (#3591)thejch2023-10-171-1/+2
|
* groups: create group and groupbar config sections (#3522)MightyPlaza2023-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | * config: create group section modified: src/Compositor.cpp modified: src/config/ConfigManager.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/InputManager.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * separate group border and groupbar colors modified: src/Compositor.cpp modified: src/config/ConfigManager.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * add new line modified: config/ConfigManager.cpp
* master: fix drop_at_cursor on workspace 2 (#3512)Jeremy Huang2023-10-061-0/+2
|
* master: add option to drag and drop windows at cursor position (#3465)Jeremy Huang2023-10-031-0/+29
| | | | | * add option to drag and drop a window at cursor position * use getWindowIdealBoundingBoxIgnoreReserved
* layout: don't discard fullscreen on new tilingvaxerski2023-09-281-7/+0
|
* windowrules: add rule `group` to map windows grouped (#3279)memchr2023-09-221-4/+11
| | | | | * windows: add rule group to map windows grouped * group rule: use `invade` to force open a window in a locked group
* keybinds: implement pushactivetobottom dispacher (#3217)alaricljs2023-09-211-1/+1
| | | Co-authored-by: Leeman <lstrout@enlj.com>
* logging: implement std::formatter for some types (#3380)memchr2023-09-201-2/+3
|
* master: partially revert 0e64dd2e and fix the animation (#3327)Jeremy Huang2023-09-151-1/+5
|
* master: Add mfact dispatcher (#3298)Jeremy Huang2023-09-151-0/+14
| | | | | | | | | * add mfact dispatcher * limit mfact to between 0.05 and 0.95 * add try catch block for stof * change log to err
* refactor: flatten nesting `if`s in layout window creation method (#3294)memchr2023-09-141-36/+36
|
* master: respect the resizing animation option in master layout (#3300)Jeremy Huang2023-09-141-5/+2
|
* master: Fix the wrong resize speed in master layout center orientation (#3289)Jeremy Huang2023-09-131-40/+36
| | | | | | | * rebase * change isStackVertical variable to make it more readable * fix some code getting unnecessarily repeating in a loop
* layout: add direction parameter to onWindowCreated and friends (#3269)memchr2023-09-131-25/+23
| | | | | | | | | | | | | | | | | | * feat(layout): add direction parameter to onWindowCreated and friends In addition: - Implement directional moveWindowOutOfGroup for `movewindoworgroup` when using dwindle layout. (augmentation of #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