summaryrefslogtreecommitdiff
path: root/src/Window.hpp
Commit message (Collapse)AuthorAgeFilesLines
* windowrules: minor improvements to min/max sizeVaxry2024-03-081-1/+1
| | | | fixes #5017
* windowrules: Make min/maxsize rules dynamic (#4775)Epilepsy Gatherings2024-03-081-20/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rebase * simplify and remove prop * Stuff - add back win prop - change minsize defaults - change request formatting for setprop * style fix * remove empty line * change defaults * redo string to vec * remove redundant parsing * change to vec * support commas * remove static rules * take out garbage * format * don't allow commas and resize on setprop * use isNumber
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-021-10/+10
| | | | | | | | | | | | | | | | | | | | | | | * 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
* window: remove unused listVaxry2024-02-291-2/+1
|
* xdg: rewrite entire popup implementationVaxry2024-02-291-2/+3
|
* refactor: move a few things to desktop/Vaxry2024-02-291-2/+2
|
* subsurface: Rewrite the subsurface tree (#4877)Vaxry2024-02-291-3/+4
|
* dispatchers: add Fullscreen without sending fullscreen to application (#4720)epicgamer2567052024-02-171-10/+11
| | | | | | | | | | | * Add extra option to fullscreen * Remove useless branch fixes #1817 --------- Co-authored-by: matteo bob <matteo4375@gmail.com>
* windowrules: add suppresseventVaxry2024-02-141-4/+13
| | | | deprecates nofullscreenrequest nomaximizerequest
* internal: add `forcenofocus` prop (#4672)Epilepsy Gatherings2024-02-131-1/+1
| | | | | * add forcenofocus * change nofocus to overridable var
* input: focus window on mouse down on decoration (#4514)MightyPlaza2024-02-041-1/+11
| | | Also unifies vectorToWindow funcs
* config: Add border gradients to windowrulev2 (#4335)Isaac Myhal2024-01-141-6/+6
| | | | | | | * Add border gradients to windowrulev2 * windowrule border gradient: Use CVarList to parse * windowrule border gradient: No {} around short ifs
* subsurfaceTree: update surface tree protocol feedback on mapvaxerski2024-01-091-1/+1
|
* groupbar: add enabling groupbar and setting priority (#4299)MightyPlaza2023-12-301-0/+1
|
* internal: Unify input handling on decorations (#4280)dranull2023-12-281-0/+1
| | | | | | | * Unify input handling on decorations * Make input methods private * Optional data
* windowrules: add initialTitle and initialClass (#4259)Tuur Vanhoutte2023-12-261-0/+2
|
* xdgshell: bump to 6, send suspended statesvaxerski2023-12-231-1/+3
|
* windowrules: add onworkspacevaxerski2023-12-201-6/+7
| | | | cool
* Revert "xdgshell: set predicted tiled windows to monitor res size pre-map"Vaxry2023-12-181-2/+1
| | | | | | This reverts commit 763d5fa05f7d0191182a1d6cd827415a65293f99. Some issues and fixes #4185
* xdgshell: set predicted tiled windows to monitor res size pre-mapVaxry2023-12-171-1/+2
| | | | Should improve #4022 although not exactly fix. Fixing would require more witchcraft
* internal: nuke CWindow::m_bMappedX11Vaxry2023-12-171-1/+0
| | | | it's useless. m_bIsMapped is the same.
* internal: fix interactions with fakefullscreen (#4113)François Conzelmann2023-12-111-0/+1
| | | | | - In a maximized window, unstuck fakefullscreen from on state - In a fakefullscreen window, going in and out of fullscreen state keep the fakefullscreen state rendered
* windowrules: add focus paramVaxry2023-12-081-0/+1
|
* 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
* decorations: Decoration Positioner (#3800)Vaxry2023-11-111-0/+2
|
* xdg-shell: improve ack-configure handlingVaxry2023-11-101-5/+5
| | | | fixes #3807
* xdg-shell: update reported size on ack_configureVaxry2023-11-091-3/+6
|
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-041-6/+8
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* internal: create canBeGroupedInto() (#3693)MightyPlaza2023-10-301-5/+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: better cursor image infrastructureVaxry2023-10-291-0/+1
| | | | | | Improves handling of cursor images/surfaces Fixes an issue with decos and cursors Fixes #3471
* windowrules: add nearestneighborVaxry2023-10-241-0/+1
|
* renderer: add transformersVaxry2023-10-211-0/+5
|
* surface/wayland: conform to small surface requirementsVaxry2023-10-201-0/+1
| | | | do not stretch small surfaces, instead center them if they fit.
* renderer: Tearing implementation (#3441)Vaxry2023-09-281-2/+8
|
* windowrules: add rule `group` to map windows grouped (#3279)memchr2023-09-221-1/+18
| | | | | * windows: add rule group to map windows grouped * group rule: use `invade` to force open a window in a locked group
* logging: implement std::formatter for some types (#3380)memchr2023-09-201-1/+43
|
* decos: groupbar mouse interaction (#3102)MightyPlaza2023-08-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow groupbar clicking modified: src/Window.cpp modified: src/Window.hpp modified: src/managers/input/InputManager.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.hpp * remove setting pos inside insertWindowToGroup() modified: src/Window.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp * add group window by index and group size functions modified: src/Window.cpp modified: src/Window.hpp modified: src/managers/input/InputManager.cpp * allow dragging into groupbar modified: src/Window.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp * allow dragging from groupbar modified: src/managers/KeybindManager.cpp * try groupbar clicking before border resize modified: src/managers/input/InputManager.cpp * block grabbing groupbar on floating (crash) remove later when crashing is fixed modified: src/managers/KeybindManager.cpp * remove redundant { } modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp * implement getWindowDecorationBox() modified: src/Window.cpp modified: src/Window.hpp 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/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.hpp * fix crash when moveoutofgroup in floating windows also removes dragging from floating windows limitation modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp * use CRegion in getWindowDecorationBox() modified: src/helpers/Region.cpp modified: src/helpers/Region.hpp 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/IHyprWindowDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.hpp * add groupbar scrolling modified: src/config/ConfigManager.cpp modified: src/managers/input/InputManager.cpp * change name to getWindowDecorationRegion() 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/IHyprWindowDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.hpp * make dragging from group less hacky for floating modified: src/managers/KeybindManager.cpp
* renderer: Border improvements (#2986)MightyPlaza2023-08-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * simplify getting border size modified: src/Window.cpp modified: src/Window.hpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * fix border damage and input box modified: src/Window.cpp modified: src/managers/AnimationManager.cpp * add border size in resize_on_border box modified: src/managers/input/InputManager.cpp * simplify border (fixes possible typo) modified: src/Window.cpp * use updateSpecialRenderData() modified: Window.cpp modified: Window.hpp modified: events/Windows.cpp modified: layout/DwindleLayout.cpp modified: layout/IHyprLayout.cpp modified: layout/MasterLayout.cpp modified: render/Renderer.cpp * update window workspace rule data on reload modified: src/config/ConfigManager.cpp * use rounding() modified: src/Window.cpp
* remove shadow no_gaps_when_only (#2956)MightyPlaza2023-08-121-0/+1
| | | | | | | modified: src/Window.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/layout/DwindleLayout.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp
* rules: add layer and window xray rulesvaxerski2023-08-091-0/+1
|
* renderer: remember extents before removing a window and use them for dtvaxerski2023-08-091-5/+7
| | | | fixes #2351
* keybinds: Keep aspect ratio (#2907)MightyPlaza2023-08-081-2/+2
|
* windowrules: add workspace paramvaxerski2023-08-021-1/+3
|
* windowrules: implements nomaximizerequest (#2785)MightyPlaza2023-07-231-3/+3
| | | | | | | | | * Window.hpp * ConfigManager.cpp * Windows.cpp * fix maximize event
* renderer: add occlusion for back layersvaxerski2023-07-191-0/+1
|
* windowrules: add border size rulevaxerski2023-07-181-0/+1
|
* keybinds: add movegroupwindowvaxerski2023-07-131-0/+2
|
* rules: add stayfocusedvaxerski2023-07-041-1/+5
|
* xwayland: add force_zero_scalingvaxerski2023-06-111-0/+1
|
* feat: add lockactivegroup dispatcher (#2478)memchr2023-06-091-0/+1
| | | | | | | | | | | | | | | | | * feat: add lockactivegroup dispatcher The `lockactivewindow` dispatcher takes `lock`, `toggle` or `unlock` as arguments. When a group is locked, no window or group can be added to it, nor can it be added to another group, but the `moveintogroup` and `moveoutofgroup` dispatches are not affected. Implementation details: the lock is implement via `SGroupData.locked` flag (defaults to false). The flag is only relevant to the group head, and upon the group head's succession, the flag will be passed down to the new head. Meanwhile, the old head's flag will be set to false. The flag is set to false when a group is dismissed. New condition checks have been added to the dwindle and master layout to check if target group is unlocked (and if the source is also a group and unlocked) before adding windows to the target group. * refactor: `lockactivegroup dispatcher code ordering