summaryrefslogtreecommitdiff
path: root/src/helpers/Vector2D.cpp
Commit message (Collapse)AuthorAgeFilesLines
* core: Move to hyprutils for MathVaxry2024-06-191-58/+0
| | | | | | Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
* cursor: move to a hyprland implVaxry2024-05-091-3/+5
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* Migrate the config to hyprlang (#4656)Vaxry2024-02-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* input: focus window on mouse down on decoration (#4514)MightyPlaza2024-02-041-0/+4
| | | Also unifies vectorToWindow funcs
* dwindle: fix windows being created at incorrect position when cursor is over ↵rszyma2024-01-261-8/+0
| | | | | | | | | | | 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
* decorations: Decoration Positioner (#3800)Vaxry2023-11-111-0/+4
|
* compositor: find windows in direction on floatingVaxry2023-11-051-0/+4
|
* Add support for smart splitting (#2676)Daniel Adolfsson2023-07-111-0/+8
| | | | | | | * Add support for smart splitting * clang-format * smart_split default to 0, and make smart_split behave like preserve_split
* xwayland: send zero scaling to xwayland if enabledvaxerski2023-06-231-3/+3
|
* vector: restore cmath include after 438d063ec684 (#2394)Jan Beich2023-05-291-0/+1
| | | | | | | | | | | src/helpers/Vector2D.cpp:27:26: error: no member named 'floor' in namespace 'std' return Vector2D(std::floor(x), std::floor(y)); ~~~~~^ src/helpers/Vector2D.cpp:27:41: error: no member named 'floor' in namespace 'std' return Vector2D(std::floor(x), std::floor(y)); ~~~~~^ src/helpers/Vector2D.cpp:37:17: error: no member named 'sqrt' in namespace 'std' return std::sqrt(dx * dx + dy * dy); ~~~~~^
* vector: use c++ stdlib math functions instead of cmathvaxerski2023-05-281-3/+2
|
* Fix possible usage of clamp with lo > hi in Vector2D (#2049)dann-merlin2023-04-161-1/+1
|
* Unbreak CrashReporter on FreeBSD (#1589)Jan Beich2023-02-201-0/+1
|
* Resize on border (#1347)Ching Pei Yang2023-02-181-1/+7
|
* Added clang format (#1239)Vaxry2022-12-161-5/+6
| | | * clang-format stuff and format files
* added Vector2D::clampvaxerski2022-07-021-0/+8
|
* input basicsvaxerski2022-03-171-0/+4
|
* added vector2dvaxerski2022-03-161-0/+19