summaryrefslogtreecommitdiff
path: root/src/layout
Commit message (Collapse)AuthorAgeFilesLines
...
* xdg: minor improvements to initial size reportingVaxry2024-03-021-5/+2
| | | | fixes #4918
* drag: check min size for reisze dragsVaxry2024-03-021-1/+1
| | | | fixes #4920
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-023-38/+39
| | | | | | | | | | | | | | | | | | | | | | | * 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-286-8/+97
| | | | fixes #4022
* feat: Add css style gaps (#4723)Dashie2024-02-212-12/+17
|
* Migrate the config to hyprlang (#4656)Vaxry2024-02-183-103/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* dwindle: add swapsplit dispatcher (#4702)Niklas Haas2024-02-142-0/+17
| | | | | | This is distinct from `swapwindow` in that it allows swapping the entire tree node with its neighbour. Fixes: https://github.com/hyprwm/Hyprland/issues/4701
* dwindle: round wbox before settingvaxerski2024-02-141-5/+10
|
* internal: add `forcenofocus` prop (#4672)Epilepsy Gatherings2024-02-131-2/+2
| | | | | * add forcenofocus * change nofocus to overridable var
* input: focus window on mouse down on decoration (#4514)MightyPlaza2024-02-042-6/+7
| | | Also unifies vectorToWindow funcs
* dwindle: avoid sending negative sizes to wlrVaxry2024-02-021-4/+4
| | | | fixes #4591
* dwindle: fix windows being created at incorrect position when cursor is over ↵rszyma2024-01-262-31/+53
| | | | | | | | | | | reserved area (#4520) * fix: smart_split not working correctly when creating a window with cursor over reserved area * use getClosestNodeOnWorkspace instead of getFirstNodeOnWorkspace when hovering over reserved area * optimize `getClosestNodeOnWorkspace` * remove unused methods
* layout: save float props before setting fs state (#4537)bvr-yr2024-01-262-16/+16
| | | fixes #4388
* input: remove animate checks on resize limiter (#4480)Epilepsy Gatherings2024-01-191-2/+1
|
* layout: Round window pos and size on togglefloating (#4407)Clyybber2024-01-101-6/+8
| | | Also restore the behaviour introduced in bc4a51dbbb285391c9ed45b1b6ca7c2037b7ba71
* 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-022-1/+7
|
* groupbar: Middle click on groupbar to close tab (#4297)dranull2023-12-301-3/+3
| | | | | | | | | * Prevent window swapping when the head is removed * Bring floating windows to top when selected * Allow clicks on gropubar in fullscreen 1 * Close window on groupbar with middle click
* internal: Unify input handling on decorations (#4280)dranull2023-12-283-30/+6
| | | | | | | * Unify input handling on decorations * Make input methods private * Optional data
* dwindle: Use window->middle() when cursor is on reserved area (#4253)dranull2023-12-261-7/+8
|
* master: add dispatchers rollnext and rollprev (#4209)thejch2023-12-221-0/+44
|
* internal: nuke CWindow::m_bMappedX11Vaxry2023-12-172-2/+2
| | | | it's useless. m_bIsMapped is the same.
* layout: Focus a floating window after closing the last tiled (#4137)dranull2023-12-121-4/+10
|
* config: improve layoutopt handling for workspacerulesVaxry2023-12-111-7/+6
|
* internal: Remake borders as window decorations (#4104)Vaxry2023-12-102-20/+12
|
* style/ci: apply clang-format and verify it in ci (#4039)François Conzelmann2023-12-061-4/+2
| | | | | * style: apply clang-format * ci: add new clang-format job to CI
* 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
* group: fix dragging into floating groups (#3719)MightyPlaza2023-11-191-1/+28
| | | | | | | | | | | * allow dragging into floating groups modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/layout/IHyprLayout.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * floating-only modified: src/layout/IHyprLayout.cpp
* layout: Don't update pseudoSize after window moved by mouse. (#3873)Dickby2023-11-181-1/+2
|
* decorations: Decoration Positioner (#3800)Vaxry2023-11-112-8/+8
|
* xdg-shell: update reported size on ack_configureVaxry2023-11-091-1/+3
|
* layout: round box in mouseMoveVaxry2023-11-071-5/+7
| | | | fixes #3792
* layout: fix various rounding errorsVaxry2023-11-062-7/+13
| | | | maybe finally will end #3761
* layout: round window boxes after special scale factorVaxry2023-11-052-6/+12
| | | | fixes #3761 again
* events: set reported size on floating mapVaxry2023-11-051-1/+2
| | | | fixes #3767
* layout: fix missed setWindowSize in no_gaps_when_only node applyVaxry2023-11-042-0/+4
| | | | fixes #3758
* dwindle: move to CBox for expressing nodesVaxry2023-11-042-88/+71
|
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-042-4/+4
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* Decos: Window decoration flags, shadow improvements (#3739)Vaxry2023-11-042-2/+2
|
* 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-034-24/+31
| | | | fixes #3731
* master: fix moving window between monitors (#3721)thejch2023-11-021-1/+1
|
* layout: avoid redundant size sets on new fullscreenVaxry2023-11-013-4/+10
|
* internal: create canBeGroupedInto() (#3693)MightyPlaza2023-10-302-17/+4
| | | | | | | 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-293-24/+33
|
* 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-102-2/+2
| | | | | | | | | | | | | | | | | | | | * 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
* dwindle: Avoid rounding errors in window position (#3524)Michał Lewandowski2023-10-091-9/+8
| | | | | | | * Avoid rounding errors in window position * Fix naming scheme * Fix unwanted window movement