ceef4fb3a5
core: feeling a bit quirky today.
2024-12-05 03:36:50 +00:00
22f7d6f142
core: add a few festive splashes
...
adds two new 'special' splash types for xmas and new years. Activated based on local time.
2024-12-05 01:59:36 +00:00
Vaxry
320144ae72
core: move colorspace handling to oklab ( #8635 )
...
* Meson: add hyprgraphics
* Nix: add hyprgraphics
* CI/setup_base: get hyprgraphics-git
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-12-03 18:58:24 +00:00
745a82ce8a
core: workspace-related function cleanup / refactor
...
CCompositor is massive, and has a lot of functions that could be better optimized if in CWorkspace
2024-11-22 16:01:02 +00:00
a847bc67b1
monitor: fix default focus when switching to a fs workspace
2024-11-22 15:22:35 +00:00
Tom Englund
943b3d467b
bezier: optimize setup of bezier curves ( #8528 )
...
avoid reallocations by resizing and copy the pVec into the resized
m_dPoints, reduce the amount of calculations in baking to only do it
once per iteration instead of twice. precompute in getYforT and getXforT
return early in getYForPoint if x is equal or below 0. and use const
references where we can.
these changes we are now down to an average of "time to bake: 2.50µs."
on my machine compared to before average of "time to bake: 11.15µs"
2024-11-22 01:47:51 +00:00
47a1650c48
miscfunctions: move configStringToInt to std::expected
2024-11-18 23:53:38 +00:00
Maximilian Seidler
cc923ad031
config: update the configStringToInt implementation ( #8476 )
...
Copied from hyprlang and removed std::expected.
2024-11-18 19:45:22 +00:00
505c1f8f4a
miscfunctions: fix cross build
2024-11-18 14:35:09 +00:00
2259a88551
miscfunctions: add missing include
2024-11-18 13:59:57 +00:00
1ba050d603
shell: propagate new machanism from hyprctl to miscfunctions
2024-11-17 21:58:00 +00:00
e8717a4fce
shell: don't use fgrep, prefer grep -F
2024-11-17 21:57:04 +00:00
Alessio Molinari
9b03307653
hooks: add pre connected/disconnected monitor events ( #8503 )
2024-11-17 19:34:03 +00:00
c10739e6e3
core: fixup execAndGet
...
fixes #8410
2024-11-10 22:53:11 +00:00
a8ff3a452c
core: move to os/Process from hyprutils
...
nix bump too
2024-11-09 17:14:25 +00:00
Ikalco
c4d214c42d
monitors: fix vrr breaking monitor disconnect ( #8314 )
2024-11-01 12:30:26 +00:00
MightyPlaza
12c1bb936d
internal: check size limit in layouts ( #8298 )
...
modified: src/desktop/Window.cpp
modified: src/desktop/Window.hpp
modified: src/events/Windows.cpp
modified: src/helpers/MiscFunctions.cpp
modified: src/helpers/MiscFunctions.hpp
modified: src/layout/DwindleLayout.cpp
modified: src/layout/IHyprLayout.cpp
modified: src/layout/MasterLayout.cpp
modified: src/macros.hpp
2024-10-30 18:58:36 +00:00
Vaxry
5d4b54b012
core: move internal structures to monitor pointers ( #8266 )
2024-10-27 18:45:38 +00:00
d5689bb539
internal: cleanup CMonitor usage and fix a few ref hogs
...
ref #8221
2024-10-26 02:06:13 +01:00
08cc063e17
monitor: avoid crash on released buffer in surf
2024-10-19 23:48:25 +01:00
Vaxry
f044e4c951
internal: Move CMonitor to SP ( #8178 )
...
* move monitors to sp
* XD
2024-10-19 23:03:29 +01:00
62ee5cc273
monitor: modernize/refactor last legacy-handled events
2024-10-19 16:21:47 +01:00
UjinT34
ee8116ac5d
input: Fix VRR for constrained cursors ( #6877 )
2024-10-12 01:29:51 +01:00
Vaxry
1bf63dfdcd
protocols: Add support for hyprland-ctm-control-v1 ( #8023 )
...
* initial ctm support
* flake.lock: update
* Meson: bump required versions and add ctm proto
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-10-08 16:59:15 +01:00
52c0919621
monitor: arrange monitors on connect and disconnect
2024-10-05 14:41:44 +01:00
46bf87c8d1
monitor: use a scope guard for disconnect events
2024-10-05 14:37:12 +01:00
a815b14bf1
monitor: cleanup and modernize scheduleDone
2024-10-05 01:01:21 +01:00
Theo Paris
1ed925b69c
internal: fix missing include directive ( #7984 )
...
This should fix building with clang.
2024-10-04 09:41:27 +01:00
68fd32c810
byteoperations: add missing header
2024-09-30 17:27:10 +01:00
3ddb16bd5b
compositor/wayland: up the max buffer size to avoid disconnects when app hangs
2024-09-30 17:25:57 +01:00
488efab636
single-pixel-buffer: new protocol impl
...
fixes #6624
2024-09-30 00:58:16 +01:00
Vaxry
caaa9b11e4
wlr-output-configuration: Improve output configuration ( #7571 )
2024-09-26 11:10:53 +01:00
Vaxry
2320b2241c
Internal: move to Mat3x3 from hyprutils ( #7902 )
...
* Meson: require hyprutils >= 0.2.3
* flake.lock: update hyprutils
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-09-25 10:01:13 +01:00
f79497087b
internal: nuke wlsignal and related
...
old semi-wrappers for wl_signal, they are no longer used
2024-09-24 00:47:34 +01:00
9232bc2c00
internal: move to hyprutils' scopeguard
...
bumps hyprutils dep to 0.2.2
2024-09-21 00:37:17 +01:00
Leiser Fernández Gallo
9e35656244
internal: Delay monitor events/hooks ( #7797 )
...
* Delay monitor messages
* Format
2024-09-15 21:03:42 +01:00
Ikalco
838ed87d6f
renderer: minor direct scanout fixes ( #7594 )
2024-08-31 15:07:52 +02:00
fbd6354393
presentation-feedback: minor fixups
2024-08-30 15:53:45 +02:00
25e72949a1
window/xwayland: minor property cleanup
...
fixes #6921
2024-08-30 14:12:23 +02:00
Ikalco
98e99cd03d
renderer: ensure buffer format on commit ( #7556 )
2024-08-28 15:07:13 +02:00
Tom Englund
72c7818ae6
misc: constify the remaining for loops ( #7534 )
...
now we roll loops at blazing constified speed.
2024-08-26 20:24:30 +02:00
Tom Englund
8d6c18076f
core: make most for loops use const references ( #7527 )
...
why not let the compiler optimise things for us at hyprspeeds when we
can.
2024-08-26 17:25:39 +02:00
Tom Englund
9c5a37a797
build: fix 32bit builds ( #7510 )
...
ensure the correct type is passed to std::clamp and std::max int64_t is
different on 64bit compared to 32bit, also in presentationtime
tv_sec is __time_t and on 32bit its a 32bit type so right shift count >= width
of type. so only bit shift on 64bit. and avoid potential nullptr deref
in the for loops, check for .end() before *it <= endID.
2024-08-26 14:08:30 +02:00
c86db7bbb0
monitor: avoid dangling references to old monitors being undestroyed
...
ref #7414
2024-08-19 18:44:22 +02:00
912e7ba82d
render: fixup format mismatch after leaving DS
...
fixes #7373
2024-08-17 19:27:20 +02:00
Vaxry
92744b5b9a
IPC: Add config descriptions ( #7377 )
...
Thanks @gulafaran for the work
---
Co-authored-by: @gulafaran
2024-08-17 17:33:16 +01:00
Mirkwood
069faa4027
helpers: fix: revert to signed arithmetic for cycling through workspaces ( #7339 )
...
The code clearly expects signed types there.
Fixes #7329
2024-08-15 13:03:23 +01:00
Tom Englund
3fa6db1e7a
core: fix data race and a unsigned int rollover ( #7278 )
...
* keybindmgr: avoid uint rollover on mouse keycode
mouse keycode is 0, and the switch case checks for 0 - 8 and rolls over,
just return early if keycode is 0.
* watchdog: avoid data races in watchdog
asan thread sanitizer reported data races in the watchdog from reading
and setting the bool variables make them std::atomic bools. also add a
atomic bool for the main thread to wait for to avoid data race when
reading the config values.
* hyprdebug: change non unicode character to name
asan created false positives and didnt like this bit, so for the sake of
easier debugging rename it to something unicode.
2024-08-12 18:19:03 +01:00
Zach DeCook
0bf9ceb53b
core: Include cstring whenever strncpy is used ( #7267 )
...
Fixes ppc64le build in alpine
2024-08-10 21:09:12 +01:00
Mathis H.
fd1d4e288e
headers: set correct paths to header files ( #7245 )
2024-08-09 16:51:21 +02:00