60 Commits

Author SHA1 Message Date
Zebra2711
eab6921631
all: chase hyprland (#334)
Co-authored-by: Zebra2711 <zebra2711@users.noreply.github.com>
2025-05-06 03:57:20 +02:00
Vaxry
16fddaab1e
all: chase hyprland 2025-05-01 18:04:34 +01:00
Vaxry
2b9a54f21b
all: chase hyprland 2025-04-29 14:22:22 +01:00
Amadej Kastelic
61ab0385c8
all: Change variable names to chase Hyprland (#324)
* flake.lock: update hyprland

* all: Change variable names to chase Hyprland
2025-04-25 21:50:46 +02:00
Amadej Kastelic
8e5e53adef
all: Change variable names to chase Hyprland (#322)
* flake.lock: update hyprland

* Use correct var names after hyprland refactor
2025-04-22 21:31:50 +02:00
Vaxry
bf3ec0479d all: chase hyprland 2025-01-26 15:08:45 +00:00
Vaxry
7634792d19 all: chase hyprland 2025-01-24 01:30:43 +00:00
Pollux
25d0292857
all: add new roundingPower parameter to render function calls (#272) 2025-01-08 00:32:25 +00:00
vaxerski
d224c84d8e all: chase hyprland 2025-01-07 19:30:40 +01:00
vaxerski
920af33577 all: avoid crash on unload if using render pass elements
fixes #264
2025-01-02 18:17:25 +01:00
vaxerski
3cd8d37a5d borderspp: chase hyprland 2024-12-25 15:58:23 +01:00
Amaan Qureshi
2530394e67
all: chase hyprland (#252) 2024-12-04 15:58:09 +01:00
Constantin Piber
4141dfdd1f
chase https://github.com/hyprwm/Hyprland/commit/67cee4300 (#246) 2024-11-19 21:45:50 +00:00
Constantin Piber
c347d8ad9b
all: chase hyprland fixes (#238)
* Fix 60c5c63

* Also update to most recent commit
2024-11-02 22:55:20 +00:00
vaxerski
60c5c6330b all: chase hyprland 2024-10-31 11:18:29 +00:00
Vaxry
082d5c1007 all: chase hyprland 2024-10-21 19:17:06 +01:00
Tony Ngo
13301eeede
borders++: make deco sticky, fix scaling issues (#227) 2024-09-29 16:59:56 +01:00
Mihai Fufezan
928164d6d2
plugins: chase Hyprland 2024-07-13 16:10:57 +03:00
Mihai Fufezan
61656eb7d6
hyprtrails,borders-plus-plus: chase hyprland 2024-06-23 22:21:21 +03:00
Mihai Fufezan
d716d12213 treewide: add CMake files
- Nix: switch everything to CMake
- simplify overlay
2024-05-05 16:36:13 +03:00
Vaxry
97e9d252ff all: chase hyprland 2024-04-27 13:06:23 +01:00
Vaxry
be8f8d81ef all: chase hyprland 2024-04-22 15:57:22 +01:00
zebogan
9971fec974
treewide: update pkgconfig flags to include irregular locations of headers on distros like openSUSE (#150) 2024-04-20 13:05:44 +03:00
vaxerski
4334510363 all: chase hyprland
fixes #104
2024-04-03 12:09:31 +01:00
Vaxry
e45066d074 all: chase hyprland 2024-03-31 02:18:20 +01:00
Vaxry
29f31da29a all: chase hyprland 2024-03-20 03:02:10 +00:00
Mihai Fufezan
34ade54e1b Nix: use mkHyprlandPlugin from nixpkgs 2024-03-13 00:08:22 +02:00
Vaxry
35fe7c3202 all: chase hyprland 2024-03-02 19:38:48 +00:00
Vaxry
f99822818e all: chase hyprland 2024-02-18 15:30:26 +00:00
vaxerski
47a1acd6ba
all: chase hyprland
fixes #66 fixes #67
2024-01-28 23:40:51 +02:00
vaxerski
e654b1e9f6 borders-plus-plus: fix scaling
fixes #62
2023-12-27 11:58:32 +01:00
Vaxry
28c1191620 borders-plus-plus: adjust priority to after border
ref #60
2023-12-17 14:38:35 +00:00
Vaxry
9ad145a102 borders-plus-plus: fix workspace offset calculation 2023-11-12 22:49:40 +00:00
Vaxry
2cc193e6dc all: update for hyprland#3800 2023-11-11 14:39:46 +00:00
Vaxry
18107f141b bpp: update for hyprland@#3755 2023-11-04 17:25:00 +00:00
Vaxry
0a562ab2c4 all: add -O2 to compiler args 2023-11-04 00:48:52 +00:00
Vaxry
e7caa01b4f all: fix for hyprland@a61eb769 2023-10-21 14:55:42 +01:00
Vaxry
48be13fcb9 borders-plus-plus: remove old debug log 2023-10-19 14:56:59 +01:00
Vaxry
45fcd108d1 borders-plus-plus: honor 0 rounding 2023-10-19 14:48:55 +01:00
Vaxry
2ae696398a borders-plus-plus: Add more borders and controls
Adds up to 9 borders, adds an option to modify size of each, adds natural_rounding
2023-10-19 14:43:54 +01:00
Vaxry
ef552ecfa9 [bpp] Add version check 2023-10-19 14:12:55 +01:00
vaxerski
aa3517bec5 borders-plus-plus: remove debug log 2023-10-10 22:24:14 +01:00
vaxerski
ac6bc07346 borders-plus-plus: update for hyprland 2023-10-10 20:13:20 +01:00
vaxerski
4f58c9b64a borders++: fix compile 2023-09-19 11:21:03 +01:00
outfoxxed
0053442040 Use pname instead of name for plugin derivations 2023-05-11 10:40:04 +03:00
vaxerski
fb204633fb unbreak build on arch 2023-05-08 19:02:38 +01:00
Jan Beich
1228eb57f9
Unbreak build on FreeBSD (#23)
* make: unhardcode pixman-1 and libdrm include cflags

On BSDs /usr/include only contains headers from base system.

$ pkg-config --cflags pixman-1
-I/usr/local/include/pixman-1
$ pkg-config --cflags libdrm
-I/usr/local/include -I/usr/local/include/libdrm

* make: drop GCC dependencies

/bin/sh: g++: not found
c++: error: unsupported option '--no-gnu-unique'
error: invalid value 'c++23' in '-std=c++23'

* make: drop GNU make extensions

Makefile is evaluated by both GNU make and BSD make but their
extensions are not compatible. Instead of renaming Makefile
to GNUmakefile support both.

- GNU $(shell ...) is BSD ${:!...!} or POSIX sh `...` or $$(...)
- GNU $^ is BSD $> for target rule prerequisites

* hyprbars: silence Clang -Wc++11-narrowing like Hyprland

barDeco.cpp:73:47: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'double' in initializer list [-Wc++11-narrowing]
    const auto         BARBUF      = Vector2D{(int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT};
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.cpp:73:47: note: insert an explicit cast to silence this issue
    const auto         BARBUF      = Vector2D{(int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT};
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                              static_cast<double>(                       )
barDeco.cpp:73:92: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'double' in initializer list [-Wc++11-narrowing]
    const auto         BARBUF      = Vector2D{(int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT};
                                                                                           ^~~~~~~~
barDeco.cpp:73:92: note: insert an explicit cast to silence this issue
    const auto         BARBUF      = Vector2D{(int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT};
                                                                                           ^~~~~~~~
                                                                                           static_cast<double>( )
barDeco.cpp:249:24: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'double' in initializer list [-Wc++11-narrowing]
    m_seExtents = {{0, *PHEIGHT + 1}, {}};
                       ^~~~~~~~~~~~
barDeco.cpp:249:24: note: insert an explicit cast to silence this issue
    m_seExtents = {{0, *PHEIGHT + 1}, {}};
                       ^~~~~~~~~~~~
                       static_cast<double>( )
barDeco.cpp:251:34: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'double' in initializer list [-Wc++11-narrowing]
    const auto BARBUF = Vector2D{(int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT} * pMonitor->scale;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.cpp:251:34: note: insert an explicit cast to silence this issue
    const auto BARBUF = Vector2D{(int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT} * pMonitor->scale;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                 static_cast<double>(                       )
barDeco.cpp:251:79: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'double' in initializer list [-Wc++11-narrowing]
    const auto BARBUF = Vector2D{(int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT} * pMonitor->scale;
                                                                              ^~~~~~~~
barDeco.cpp:251:79: note: insert an explicit cast to silence this issue
    const auto BARBUF = Vector2D{(int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT} * pMonitor->scale;
                                                                              ^~~~~~~~
                                                                              static_cast<double>( )
barDeco.cpp:253:31: error: type 'double' cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing]
    wlr_box    titleBarBox = {(int)m_vLastWindowPos.x - *PBORDERSIZE - pMonitor->vecPosition.x, (int)m_vLastWindowPos.y - *PBORDERSIZE - *PHEIGHT - pMonitor->vecPosition.y,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.cpp:253:31: note: insert an explicit cast to silence this issue
    wlr_box    titleBarBox = {(int)m_vLastWindowPos.x - *PBORDERSIZE - pMonitor->vecPosition.x, (int)m_vLastWindowPos.y - *PBORDERSIZE - *PHEIGHT - pMonitor->vecPosition.y,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              static_cast<int>(                                               )
barDeco.cpp:253:97: error: type 'double' cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing]
    wlr_box    titleBarBox = {(int)m_vLastWindowPos.x - *PBORDERSIZE - pMonitor->vecPosition.x, (int)m_vLastWindowPos.y - *PBORDERSIZE - *PHEIGHT - pMonitor->vecPosition.y,
                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.cpp:253:97: note: insert an explicit cast to silence this issue
    wlr_box    titleBarBox = {(int)m_vLastWindowPos.x - *PBORDERSIZE - pMonitor->vecPosition.x, (int)m_vLastWindowPos.y - *PBORDERSIZE - *PHEIGHT - pMonitor->vecPosition.y,
                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                                static_cast<int>(                                                          )
barDeco.cpp:254:31: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'int' in initializer list [-Wc++11-narrowing]
                              (int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT + *PROUNDING * 3 /* to fill the bottom cuz we can't disable rounding there */};
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.cpp:254:31: note: insert an explicit cast to silence this issue
                              (int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT + *PROUNDING * 3 /* to fill the bottom cuz we can't disable rounding there */};
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              static_cast<int>(                          )
barDeco.cpp:254:76: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'int' in initializer list [-Wc++11-narrowing]
                              (int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT + *PROUNDING * 3 /* to fill the bottom cuz we can't disable rounding there */};
                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.cpp:254:76: note: insert an explicit cast to silence this issue
                              (int)m_vLastWindowSize.x + 2 * *PBORDERSIZE, *PHEIGHT + *PROUNDING * 3 /* to fill the bottom cuz we can't disable rounding there */};
                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                           static_cast<int>(        )
barDeco.cpp:273:30: error: type 'double' cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing]
        wlr_box windowBox = {(int)m_vLastWindowPos.x + offset.x - pMonitor->vecPosition.x, (int)m_vLastWindowPos.y + offset.y - pMonitor->vecPosition.y, (int)m_vLastWindowSize.x,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.cpp:273:30: note: insert an explicit cast to silence this issue
        wlr_box windowBox = {(int)m_vLastWindowPos.x + offset.x - pMonitor->vecPosition.x, (int)m_vLastWindowPos.y + offset.y - pMonitor->vecPosition.y, (int)m_vLastWindowSize.x,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                             static_cast<int>(                                           )
barDeco.cpp:273:92: error: type 'double' cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing]
        wlr_box windowBox = {(int)m_vLastWindowPos.x + offset.x - pMonitor->vecPosition.x, (int)m_vLastWindowPos.y + offset.y - pMonitor->vecPosition.y, (int)m_vLastWindowSize.x,
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.cpp:273:92: note: insert an explicit cast to silence this issue
        wlr_box windowBox = {(int)m_vLastWindowPos.x + offset.x - pMonitor->vecPosition.x, (int)m_vLastWindowPos.y + offset.y - pMonitor->vecPosition.y, (int)m_vLastWindowSize.x,
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                           static_cast<int>(                                           )
barDeco.cpp:338:41: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'double' in initializer list [-
Wc++11-narrowing]
    return SWindowDecorationExtents{{0, *PHEIGHT}, {}};
                                        ^~~~~~~~
barDeco.cpp:338:41: note: insert an explicit cast to silence this issue
    return SWindowDecorationExtents{{0, *PHEIGHT}, {}};
                                        ^~~~~~~~
                                        static_cast<double>( )
barDeco.cpp:344:100: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'double' in initializer list [-Wc++11-narrowing]
    return g_pInputManager->getMouseCoordsInternal() - m_pWindow->m_vRealPosition.vec() + Vector2D{*PBORDER, *PHEIGHT + *PBORDER};
                                                                                                   ^~~~~~~~
barDeco.cpp:344:100: note: insert an explicit cast to silence this issue
    return g_pInputManager->getMouseCoordsInternal() - m_pWindow->m_vRealPosition.vec() + Vector2D{*PBORDER, *PHEIGHT + *PBORDER};
                                                                                                   ^~~~~~~~
                                                                                                   static_cast<double>( )
barDeco.cpp:344:110: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'double' in initializer list [-Wc++11-narrowing]
    return g_pInputManager->getMouseCoordsInternal() - m_pWindow->m_vRealPosition.vec() + Vector2D{*PBORDER, *PHEIGHT + *PBORDER};
                                                                                                             ^~~~~~~~~~~~~~~~~~~
barDeco.cpp:344:110: note: insert an explicit cast to silence this issue
    return g_pInputManager->getMouseCoordsInternal() - m_pWindow->m_vRealPosition.vec() + Vector2D{*PBORDER, *PHEIGHT + *PBORDER};
                                                                                                             ^~~~~~~~~~~~~~~~~~~
                                                                                                             static_cast<double>( )

Based on https://github.com/hyprwm/Hyprland/commit/9ee14eb4452e
2023-05-07 15:38:50 +01:00
vaxerski
a6097426e6 all: use pkgconfig for headers 2023-05-01 01:03:10 +01:00
vaxerski
960a2ae4aa all: update makefile 2023-04-27 14:43:06 +01:00
Mihai Fufezan
b1b43e8108
Nix: init 2023-04-27 02:01:29 +03:00