summaryrefslogtreecommitdiff
path: root/src/render/decorations
Commit message (Collapse)AuthorAgeFilesLines
...
* layout: add merge_floated_into_tiled_on_groupbar (#8042)Aqa-Ib2024-10-091-3/+9
|
* layout: add drag_into_group to control merging dragging windows (#8004)Aqa-Ib2024-10-081-4/+12
|
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-264-6/+6
| | | now we roll loops at blazing constified speed.
* decorations: fix infinite recursion on no_gaps when only (#7169)MightyPlaza2024-08-031-1/+1
| | | | | modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp
* border: fixup infinite recursionVaxry2024-08-012-2/+14
| | | | ref #7127
* internal: refactor fullscreen states (#7104)MightyPlaza2024-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor fullscreen modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/LayerSurface.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/desktop/Workspace.hpp modified: src/events/Windows.cpp modified: src/helpers/Monitor.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/DwindleLayout.hpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/layout/MasterLayout.hpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/IdleInhibitor.cpp modified: src/managers/input/InputManager.cpp modified: src/managers/input/Swipe.cpp modified: src/protocols/ForeignToplevelWlr.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/config/ConfigManager.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/events/Windows.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/Swipe.cpp * fix mapWindow fullscreen modified: src/events/Windows.cpp * fix typo modified: src/desktop/Workspace.cpp * add fullscreenstate modified: src/config/ConfigManager.cpp modified: src/events/Windows.cpp * change syncFullscreen to lower modified: src/config/ConfigManager.hpp * initialize fs state modified: src/desktop/Window.hpp
* core: Improve handling of window properties (#6776)MightyPlaza2024-07-113-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add mWindowProperties modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp * support int values modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp * create m_sWindowData modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * simplify some properties modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/managers/KeybindManager.cpp * store multiple values in CWindowOverridableVar modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp * use SET_PROP priority for exec rules modified: src/config/ConfigManager.hpp modified: src/desktop/Window.cpp * add default value modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * add setprop toggle modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp * add setprop toggle modified: src/debug/HyprCtl.cpp * make window rules functional modified: src/config/ConfigManager.cpp modified: src/desktop/Window.cpp * minor fixes modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp * properly clean layout data modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp * remove newline modified: src/events/Windows.cpp * fixes modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp * use CamelCase modified: src/Compositor.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/AnimationManager.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/XWaylandManager.cpp modified: src/render/OpenGL.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* core: Move to hyprutils for MathVaxry2024-06-197-47/+47
| | | | | | Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
* groupbar: fix groupbar position rounding (#6433)MightyPlaza2024-06-121-7/+7
| | | modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* groupbar: Don't apply monitor scale twice to groupbar text (#6411)zakk42232024-06-111-4/+4
|
* groupbar: Fix window title rendering (#6392)zakk42232024-06-102-21/+35
|
* wayland/core: move to new impl (#6268)Vaxry2024-06-082-26/+26
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* renderer: render fonts with pango, add global `font_family` config option ↵giskard2024-05-221-2/+5
| | | | (#6138)
* decoration: Stacked group tabs (#5886)zakk42232024-05-162-28/+59
| | | | | | | | | | | | * Stacked group tabs * Fix index when creating groupbar title textures * Changes for stacked dnd * formatting * Don't remove internal horizontal padding when calculating stacked bar width
* groupbar: fix title scaling (#5969)MightyPlaza2024-05-092-5/+5
| | | | modified: src/render/decorations/CHyprGroupBarDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.hpp
* decorations: fix groupbar input (#5963)MightyPlaza2024-05-092-11/+12
| | | | modified: src/render/decorations/CHyprGroupBarDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.hpp
* deco-positioner: avoid infinite recalcsVaxry2024-05-071-2/+4
| | | | fixes #5908
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-054-62/+63
| | | | | | | | | | | moves std::shared_ptrs to a new implementation Advantages: - you can dereference a weak_ptr directly. This will obviously segfault on a nullptr deref if it's expired. - this is useful to avoid the .lock() hell where we are 100% sure the pointer _should_ be valid. (and if it isn't, it should throw.) - weak_ptrs are still valid while the SP is being destroyed. - reasoning: while an object (e.g. CWindow) is being destroyed, its `weak_ptr self` should be accessible (the sp is still alive, and so is CWindow), but it's not because by stl it's already expired (to prevent resurrection) - this impl solves it differently. w_p is expired, but can still be dereferenced and used. Creating `s_p`s is not possible anymore, though. - this is useful in destructors and callbacks.
* shadow: fix small pixel gaps between borderVaxry2024-05-041-1/+1
| | | | huge fix
* layout: Trigger layout recalcuation on deco position/size change (#5821)zakk42232024-05-011-0/+1
| | | | | | | * Trigger layout recalcuation on deco position/size change * Remove now unneeded code * Formatting
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-2710-174/+184
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* HookSystem: improve callback safetyVaxry2024-04-201-2/+2
|
* renderer: some fixes for renderModifVaxry2024-04-031-0/+3
|
* Workspace/core: Refactor workspace storage (#5380)Vaxry2024-04-023-6/+6
| | | | | * refactor workspaces to use ptrs * clang-format
* deco: fix groupbar offset (#5364)thejch2024-04-011-1/+1
|
* reenderer: Add 1 border damage to fix number rounding issues (#5343)thejch2024-03-311-2/+2
| | | | | * add 1 to border damage to avoid rounding issues * add 1 to rounding too
* renderer/animations: Fix various inaccurate damage tracking issues and ↵thejch2024-03-317-20/+82
| | | | offsets (#5297)
* input: focus window on mouse down on groupbar (#5224)MightyPlaza2024-03-221-0/+4
| | | modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* refactor: move window.hpp to desktop/Vaxry2024-03-201-1/+1
|
* deco: fix warningsVaxry2024-03-091-3/+3
|
* config: improve config value infrastructureVaxry2024-03-033-81/+83
|
* renderer: minor fixes to transformationsVaxry2024-03-031-2/+2
|
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-024-14/+14
| | | | | | | | | | | | | | | | | | | | | | | * 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
* shadow: fix missed invalid use of cfg val ptrVaxry2024-02-211-1/+1
| | | | fixes #4785
* Migrate the config to hyprlang (#4656)Vaxry2024-02-183-69/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* groupbar: scale groupbar text according to monitor scale (#4640)Ben Landon2024-02-081-1/+2
|
* groupbar: separate gradients from title (#4444)MightyPlaza2024-01-151-16/+18
| | | | | | | | | | | * separate gradients from title logic modified: src/config/ConfigManager.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * fix disabled extents modified: src/render/decorations/CHyprGroupBarDecoration.cpp * fix disabled height modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* groupbar: improve gradient handling (#4390)MightyPlaza2024-01-081-13/+17
| | | modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* layout: update rules before applying fullscreen nodes in layoutsvaxerski2024-01-021-1/+1
|
* groupbar: Drag single window instead of destroying group (#4327)dranull2024-01-021-0/+3
|
* groupbar: add enabling groupbar and setting priority (#4299)MightyPlaza2023-12-302-9/+25
|
* groupbar: Middle click on groupbar to close tab (#4297)dranull2023-12-301-4/+20
| | | | | | | | | * 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: minor include fixes and missed formatvaxerski2023-12-291-1/+1
|
* internal: Unify input handling on decorations (#4280)dranull2023-12-284-44/+62
| | | | | | | * Unify input handling on decorations * Make input methods private * Optional data
* hyprctl: add decorations (#4275)MightyPlaza2023-12-288-4/+28
| | | | | | | | | | | | | | | | | | * add hyprctl decorations modified: hyprctl/main.cpp modified: src/debug/HyprCtl.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprBorderDecoration.hpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.hpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.hpp modified: src/render/decorations/IHyprWindowDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.hpp * fixes modified: hyprctl/main.cpp modified: src/render/decorations/IHyprWindowDecoration.cpp
* groupbar: remove extra border size from groupbars (#4262)MightyPlaza2023-12-271-5/+2
| | | modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* groupbar: add egl context to refreshGroupBarGradients() (#4238)MightyPlaza2023-12-241-0/+2
| | | | | | | | * add egl context to refreshGroupBarGradients() modified: src/render/decorations/CHyprGroupBarDecoration.cpp * don't unsetEGL modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* shadow: Avoid rounded shadows when rounding is 0 (#4230)dranull2023-12-231-1/+2
|
* border: fix missed translate by offsetvaxerski2023-12-231-1/+1
|
* shadow: correctly scale boxesvaxerski2023-12-221-2/+4
|