Vaxry
e951011503
renderer/internal: stop using box pointers
...
in favor of const refs
2025-01-26 15:05:34 +00:00
heather7283
9b3f71390c
layershell: check if layer is valid ( #9156 )
...
fixes compositor crash when client tried to create a layer surface with
invalid layer argument
2025-01-24 16:51:31 +01:00
Vaxry
57a39984dd
input: abord dnd op on escape pressed
...
ref #9154
2025-01-24 13:37:30 +00:00
outfoxxed
465cf66df1
protocols: add hyprland_surface_v1.set_visible_region implementation ( #9120 )
2025-01-23 22:57:33 +01:00
Vaxry
0a1ae48a9f
core: move all shared_ptrs from the STL to hyprutils ( #9143 )
2025-01-23 21:55:41 +01:00
Vaxry
d335c8f101
fractional-scale: avoid redundant and duplicate scale events
...
fixes #9126
2025-01-22 10:41:04 +00:00
Maximilian Seidler
407453166c
protocols: add hyprland_lock_notify_v1 implementation ( #9092 )
2025-01-19 18:21:36 +00:00
outfoxxed
086fd7ece8
protocols: do not destroy screencopy resources before client request ( #9048 )
2025-01-19 12:51:42 +00:00
Tom Englund
4da9b7cc5b
core: reserve vector sizes as much as we can ( #9118 )
...
avoid reallocations as much as possible with a few edge cases where the
reservation overshoots a tiny bit. but a few bytes of memory short term
is better used then the overhead of potential reallocation.
2025-01-19 10:38:42 +00:00
vaxerski
47d645d84a
core: fixup includes
2025-01-17 19:14:55 +01:00
vaxerski
b7a3c45269
core: add LIKELY and UNLIKELY macros
...
helps the compiler optimize
2025-01-17 18:56:39 +01:00
user111111111111111111111111111111111
2bad73354a
core: cleanup header includes ( #9088 )
...
Cleanup some unneeded includes to speed up compilation
2025-01-17 15:21:35 +00:00
outfoxxed
f16f170433
protocols: immediately copy toplevel content when ignoreDamage set ( #9049 )
...
Also sets m_ignoreDamage, as it wasn't set before.
2025-01-14 16:44:09 +00:00
outfoxxed
a6b263713a
protocols: allow hyprland-toplevel-export to capture hidden windows ( #9041 )
2025-01-12 17:10:36 +00:00
outfoxxed
4f0f512cab
protocols: do not capture cursor in toplevel without pointer focus ( #9042 )
2025-01-12 17:09:02 +00:00
UjinT34
a3a7499317
renderer: Do not set hdr metadata unless needed ( #9014 )
2025-01-12 17:02:41 +00:00
UjinT34
a8b568c6c4
core: Add render:allow_early_buffer_release to make buffer release configurable ( #9019 )
2025-01-10 18:42:26 +00:00
Dardo D Kleiner
f9c37ca43b
windows: honor xdg_toplevel_set_fullscreen output hint ( #8965 )
...
Co-authored-by: Dardo D Kleiner <dardo.kleiner@nrl.navy.mil>
2025-01-09 22:38:38 +00:00
staz
75727e7c17
protocols: fix compilation error ( #8988 )
2025-01-08 10:28:47 +00:00
UjinT34
830350a1f7
core: Add support for HDR and color management protocols ( #8715 )
2025-01-07 18:32:50 +00:00
Maximilian Seidler
5642ed331d
core: move parts of the animation system to hyprutils ( #8868 )
...
* core: change animation manager to use Hyprutils::Animation
* config: move animation config to hyprutils animation tree
* use g_pAnimationManager->createAnimation and the new PHLANIMVAR template
* core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks
* core: adapt animated variable usage (dereference the shared pointer)
* misc: bump CMakeLists to hyprutils 0.3.3
2025-01-07 17:55:14 +00:00
UjinT34
6a90b50545
core/compositor: fix too early buffer release ( #8966 )
2025-01-06 16:52:35 +00:00
vaxerski
f1a7a7497e
datadevice: guard XWayland server against crashes
...
The server might be dead or restarting, and we'd deref null
ref #7822
2025-01-06 15:27:57 +01:00
vaxerski
94381e5999
dnd/seat: avoid sending button events during a dnd op
...
fixes #8781
2025-01-02 15:58:28 +01:00
outfoxxed
42fd366046
protocols: fix alpha-modifier noncompliance ( #8929 )
...
Also fixes small issues with hyprland-surface opacity < 1.0 while
surface alpha = 1.0.
2025-01-02 11:53:57 +00:00
outfoxxed
dde3e082c9
protocols: add hyprland_surface_v1 implementation ( #8877 )
2025-01-01 23:34:02 +00:00
vaxerski
8c14c2a5f4
ctm: disable fade animation by default on nvidia
...
Fixes #8891 , the nvidia driver dies when we spam CTM too much.
2024-12-30 11:58:35 +01:00
vaxerski
deb077c346
ctm: add an internal fade animation to ctm transitions
2024-12-29 19:21:20 +01:00
user111111111111111111111111111111111
775111b603
foreign-toplevel: update active on null window focus ( #8860 )
...
* update ForeignTopLevel on null window focus
* fix
* clang
2024-12-27 15:20:55 +00:00
Vaxry
e536b02248
Renderer: rewrite render scheduling ( #8683 )
...
This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
2024-12-22 17:12:09 +01:00
Vaxry
52ee7a8748
data-device: fix edge case crash on null xwm
...
fixes #8787
2024-12-21 15:08:00 +00:00
Ikalco
e2c78c00e5
internal: remove dead code ( #8748 )
2024-12-17 17:31:27 +01:00
Vaxry
db24964877
xwayland: Support cross DnD from Wayland ( #8708 )
...
Adds support for drag-and-drop from Wayland clients to XWayland ones
2024-12-15 00:37:17 +01:00
Vaxry
9f7a96b997
core/data: Use pointer focus for DnD operations ( #8707 )
...
fixes #7737
2024-12-14 16:19:56 +01:00
Vaxry
aefaeedf5e
data-device: fixup wrong box expansion
...
oopsie 7c03e9d376 was wrong
2024-12-12 12:16:59 +00:00
Vaxry
7c03e9d376
core/data-device: expand damage region to fix minor px errors
...
fixes #7656
2024-12-11 22:30:17 +00:00
Vaxry
bb5c3f2702
core/output: don't send enter too aggresively
...
sometimes this might be like 1px and send enter to the wrong output
fixes #8654
2024-12-10 01:40:35 +00:00
Vaxry
8bbeee1173
core: Add clang-tidy ( #8664 )
...
This adds a .clang-tidy file for us.
It's not a strict requirement to be compliant, but I tuned it to be alright.
2024-12-07 18:51:18 +01:00
vaxerski
f6ac755cf7
cleanup: Revert use doLater instead of adding idle event handlers ( #8624 )
...
This reverts commit 6d7544458d .
2024-12-03 21:15:25 +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
Ikalco
6d7544458d
cleanup: use doLater instead of adding idle event handlers ( #8624 )
2024-12-01 17:14:35 +00:00
Ikalco
1fb720b62a
seat: fix double scrolling in some applications ( #8583 )
2024-11-26 13:52:43 +00:00
Nabil Otsmane
1930a95000
shm: fix shm fd size check before creating or resizing shm_pool ( #8572 )
...
* protocols: fix shm fd size check before creating or resizing shm_pool
* added static to function
2024-11-25 00:50:35 +00:00
Vaxry
c4eda46d0e
xdg-shell: even more robust layout min/max size
...
although I don't think any apps use this, but better safe than sorry
2024-11-19 22:07:25 +00:00
Vaxry
aa067a4cf1
xdg-shell: don't report invalid min/max sizes on unset
...
fixes #8522
2024-11-19 21:40:16 +00:00
johannes hanika
6744bb57c6
constraints: don't warp pointer position on release ( #8491 )
...
this was annoying for nuklear properties/ui slider elements that grab
the pointer via GLFW_CURSOR_DISABLE to allow more range and finer control.
upon mouse release, the pointer is reset to the middle of the window
without this patch, making long mouse movements necessary to go back
to the original position for readjustments. fwiw the new behaviour
is consistent with x11 and weston.
2024-11-18 14:02:34 +00:00
Vaxry
b735295d2b
windows/xdg: minor cleanup of min/max size calculations
...
fixes #8495
2024-11-17 19:31:54 +00:00
Vaxry
20031cea92
pointer: add drm dumb buffers for cursors ( #8399 )
...
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-11-14 20:15:51 +00:00
Vaxry
e3882b23d0
screencopy: fix build with legacyrenderer
...
fixes #8355
2024-11-05 09:59:03 +00:00
Vaxry
40081cb330
renderer: improve api around new framebuffer changes
...
ref #8325
2024-11-02 15:26:45 +00:00