summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* i18n: add Vietnamese translation (#13163)Vũ Xuân Trường2026-02-011-0/+46
|
* gestures: add cursor zoom (#13033)Luke Barkess2026-02-013-1/+62
|
* input: fix edge grab resize logic for gaps_out > 0 (#13144)ekhadley2026-02-011-0/+2
|
* xwayland: ensure NO_XWAYLAND builds (#13160)Tom Englund2026-02-011-0/+1
| | | add , using xcb_atom_t = uint32_t;
* time: ensure type correctness and calculate nsec correctly (#13167)Tom Englund2026-02-011-14/+13
| | | | | | | | | | | use auto for nsecdur, assigning system_tp into steady_tp compiles but is not correct. just change it to auto. use {} initialization for timespec structs and returning std::pair. in timediff, fromTimespec and toTimespec the else case was calculating wrong. we need to correctly handle the borrow when the nanoseconds of the first time are smaller than the second, by adding TIMESPEC_NSEC_PER_SEC and decrementing the seconds.
* renderer/pass: fix surface opaque region bounds used in occluding (#13124)jmanc32026-01-311-1/+10
|
* renderer: fix mouse motion in VRR (#12665)Szwagi2026-01-3112-105/+63
|
* buffer: add move constructor and operator to CHLBufferReference (#13157)Tom Englund2026-01-312-0/+20
| | | | add missing move constructor and operator, a lot of churn was done on always copying CHLBufferReference, also add a self copy check.
* xwayland/xwm: get supported props on constructing surface (#13156)Tom Englund2026-01-312-4/+38
| | | | | not all clients supports WM_DELETE_WINDOW like glxgears, so get supported props in constuctor of surface, and if not supported forcefully kill the client.
* opengl: set EGL_CONTEXT_RELEASE_BEHAVIOR_KHR if supported (#13114)Tom Englund2026-01-302-0/+8
| | | | | | | | | EGL_CONTEXT_RELEASE_BEHAVIOR_KHR determines what happends with implicit flushes when context changes, on multigpu scenario we change context frequently when blitting content. while we still rely on explicit sync fences, the flush is destroying driver optimisations. setting it to EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR essentially mean just swap context and continue processing on the next context.
* xwayland/xwm: fix _NET_WM_STATE_MAXIMIZED_VERT type (#13151)Tom Englund2026-01-301-2/+2
| | | add _ infront of the atom name. as it should be.
* xwayland/xwm: handle INCR clipboard transfer chunks correctly (#13125)Zynix2026-01-301-7/+28
| | | | | Handle XCB_PROPERTY_NEW_VALUE events for incremental selection transfers. Previously only DELETE was handled, causing INCR transfers to fail after the first chunk.
* xwayland/xwm: prevent onWrite infinite loop and clean orphan transfers (#13122)Zynix2026-01-292-11/+33
| | | | | | | | | | | | Fixes #11411 - Add return 0 after erasing completed non-incremental transfer to stop event source polling - Add removeTransfer() helper to SXSelection for cleaning transfers by window ID - Add removeTransfersForWindow() helper to CXWM for cleaning all selections at once - Clean orphan transfers in handleDestroy before surface removal - Clean orphan transfers in handlePropertyNotify on missing window or failed reply - Add m_dndSelection to handleSelectionPropertyNotify cleanup loop - Initialize SXTransfer members with safe defaults to prevent undefined behavior - Fix race condition in getTransferData by using window ID lookup instead of index
* opengl: allow texture filter to be changed (#13078)jmanc32026-01-272-4/+7
| | | | | | | | | | | * opengl: allow texture filter to be changed * format * correct filter * Moved from OpenGL.hpp to Texture.hpp * Shortened names
* hyprctl: fix layerrules not being applied dynamically with hyprctl (#13080)ItsOhen2026-01-271-1/+14
|
* eventLoop: various eventloopmgr fixes (#13091)Tom Englund2026-01-271-12/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eventloopmgr: use unordered_map for readableWaiters use an unordered_map with the raw ptr as key, avoids any risk of dangling ptrs. * eventloopmgr: read the timerfd fd the manpage for timerfd_create and read states this. timefd_create creates a new timer object, and returns a file descriptor that can be used to read the number of expirations that have occurred. The FD becomes readable when the timer expires. read removes the “readable” state from the FD. so most likely it has somewhat worked because of the scheduleRecalc() function. * eventloopmgr: avoid unneeded std::function copy move the idle functions instead of copying. * eventloopmgr: remove event source before calling fn if fn causes a dispatch/reentry its gonna cause UB inside libwayland itself, remove the event source before calling the fn() avoids that entirerly. even if a new dispatch occurs. * eventloopmgr: check if timer fd is readable check if timerfd is readable before calling read on it, so we dont end up blocking on an accident, log an error if its not readable. * eventloopmgr: revert unordered_map change my mistake, the address wasnt changing on reallocations of the heap object. the only issue i was triggering was the reentry path in fn()
* i18n: add Romanian translations (#13075)Viorel Ciobotaru2026-01-271-0/+56
|
* hyprctl: add overFullscreen field in hyprctl window debug (#13066)Naufal Hisyam Muzakki2026-01-241-4/+6
|
* hyprctl: remove trailing comma from json object (#13042)Michał Minarowski2026-01-231-1/+1
|
* opengl/fb: use GL_DEPTH24_STENCIL8 instead of GL_STENCIL_INDEX8 (#13067)Tom Englund2026-01-231-4/+10
| | | | older drivers lack support for GL_STENCIL_INDEX8 so use GL_DEPTH24_STENCIL8 but explicitly disable the depth.
* renderer: fix frame sync (#13061)UjinT342026-01-229-67/+106
| | | | | | | | | * fix commit timing timer * fix surface state lock/unlock * debug state sync todos * debug solitary vrr
* desktop/windowRule: allow expression in min_size/max_size (#12977)Florent Charpentier2026-01-212-9/+28
|
* desktop: restore invisible floating window alpha/opacity when focused over ↵Naufal Hisyam Muzakki2026-01-213-0/+11
| | | | fullscreen (#12994)
* renderer: add surface shader variants with less branching and uniforms (#13030)UjinT342026-01-2127-414/+273
| | | | | | | | | * shader variant features * getSurfaceShader variant with feats * split surface shaders by features * cleanup old shaders
* animation: reset tick state on session activation (#13024)William Wernert2026-01-213-0/+12
| | | | | | | | | After suspend/wake, the animation tick timer state (m_lastTickValid, m_tickScheduled) could be stale, causing framerate drops when blur is enabled. This was introduced in 2b0fd417 which changed the animation tick timing mechanism. Reset the tick state when the session becomes active to ensure a clean state for the animation system.
* renderer: fix non shader cm reset (#13027)UjinT342026-01-212-10/+15
|
* hyprerror: clear reserved area on destroy (#13046)Luke Barkess2026-01-211-0/+1
|
* protocols/toplevelExport: Support transparency in toplevel export (#12824)ArchSav2026-01-203-4/+21
|
* pointermgr: remove onRenderBufferDestroy (#13008)Tom Englund2026-01-181-4/+3
| | | | | set the damage to cursor plane size instead of INT16_MAX and remove onRenderbufferDestroy, renderbuffer already have a listener that destroys when buffer is destroyed.
* renderer: optimise shader usage further, split shaders and add more caching ↵Tom Englund2026-01-1713-96/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#12992) * shader: split CM rgba/rgbx into discard ones make it branchless if we have no discards. * shader: ensure we dont stall on vbo uv buffer if we render a new texture before the previous was done gpu wise its going to stall until done, call glBufferData to orphan the data. this allows the driver to return a new memory block immediately if the GPU is still reading from the previous one * protocols: ensure we reset GL_PACK_ALIGNMENT reset GL_PACK_ALIGNMENT back to the default initial value of 4 * shader: use unsigned short in VAO loose a tiny bit of precision but gain massive bandwidth reductions. use GL_UNSIGNED_SHORT and set it as normalized. clamp and round the UV for uint16_t in customUv. * shader: interleave vertex buffers use std::array for fullverts, use a single interleaved buffer for position and uv, should in theory improve cache locality. and also remove the need to have two buffers around. * shader: revert precision drop we need the float precision because we might have 1.01 or similiar floats entering CM shader maths, and rounding/clamping those means the maths turns out wrong. so revert back to float, sadly higher bandwidth usage. * update doColorManagement api * convert primaries to XYZ on cpu * remove unused primaries uniform --------- Co-authored-by: UjinT34 <ujint34@mail.ru>
* anr: remove window on closewindow (#13007)Tom Englund2026-01-171-1/+2
| | | | m_data was never cleaned and continously built up the m_data, remove the entry on closeWindow.
* desktop/ruleApplicator: fix typo in border color rule parsing (#12995)Vaxry2026-01-161-1/+1
| | | ref https://github.com/hyprwm/Hyprland/discussions/12746
* core: optimize some common branchesVaxry2026-01-163-22/+22
|
* desktop/window: avoid uaf on instant removal of a windowVaxry2026-01-161-5/+5
| | | | ref https://github.com/hyprwm/Hyprland/discussions/12999
* desktop/workspaceHistory: fix tracking for multiple monitors (#12979)Vaxry2026-01-152-46/+42
|
* protocols/cm: Fix image description info events (#12781)UjinT342026-01-137-74/+151
| | | | | | | | | | | | | | | | | | | | | | | * fix image description info events * always send some target primaries * set edid values as target primaries and luminances * init monitor image description * set default luminances for tf * fix BT1886 luminances * fix mastering values and overrides * set maxCLL & maxFALL * typo * add FALL & CLL to preferred HDR image description * fix ref luminances
* shm: ensure we use right gl unpack alignment (#12975)Tom Englund2026-01-131-2/+23
| | | | | | | | gl defaults to 4 and not all formats is divisible with 4 meaning its going to pad out ouf bounds and cause issues. check if the stride is divisible with 4 otherwise set it to 1, aka disable it. GL_UNPACK_ALIGNMENT only takes 1,2,4,8 but formats like RGB888 has bytesPerBlock 3.
* protocols/syncobj: fix DRM sync obj support logging (#12946)Chris Naporlee2026-01-121-4/+4
|
* renderer: shader code refactor (#12926)Tom Englund2026-01-1214-790/+832
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * shader: begin the shader refactor make SShader a class and rename it to CShader, move createprogram, compileshader, logshadererror to CShader. * shader: move uniform creation to CShader move uniform creation to CShader, reduces tons of duplicated effort, however forcing uniform names to be same in all shaders. * shader: move to array based frag handling use an array with an enum so it gets easier dealing with multiple shaders, move creating program to a for loop and array, reduces line of code a lot. * shader: use shared ptr for frags with smart pointers we can now rename useProgram to useShader and return the shader directly, means only place we have to decide the shader frag is when calling useShader. easier for future shader splitting to reduce branching. * shader: move unneded public members to private move structs and uniforms to private add a get/set for initialtime and add a getUniformLocation to make the code tell what its doing, instead of direct array getting when all we wanted to get was its value, also limits the setting of uniformLocations to the createProgram as it should be. * shader: fix style nits set first enum member to 0 , remove extra {} * shader: dont show a failed notif on success the logic got inverted in the refactor here. * shader: split CM shader to rgba/rgbx variants split shader to rgba/rgbx variants, use bool, and reduce branching. * shader: split up blurprepare CM and non CM split up blurprepare, remove skipcm, move gain to gain.glsl. remove ternary operator and reduce branching by using step() and mix() use vec3 for gain, make brightness a cheap mulitplication with max. * shader: split up border to CM/noncm variants splitup border shader to CM/noncm variant, move common used things to border.glsl , there is room for optimisations here but its a complex shader im putting it for future PR. * shader: touchup blurfinish make brightness a cheap multiplication instead of branching. mod is redundant, fract in hash already returns a value in [0.0, 1.0]
* decoration: take desiredExtents on all sides into account (#12935)zacoons2026-01-101-15/+15
|
* desktop/window: track explicit workspace assignments to prevent X11 ↵John Mylchreest2026-01-091-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | configure overwrites (#12850) * fix: track explicit workspace assignments to prevent X11 configure overwrites Instead of only checking for special workspaces, track when workspaces are explicitly assigned via window rules or user actions (movetoworkspace). This prevents onX11ConfigureRequest from overwriting any explicit workspace assignment based on window position. Changes: - Add m_workspaceExplicitlyAssigned flag to CWindow - Set flag when window rules assign workspace - Set flag when user moves window via dispatcher - Check flag in onX11ConfigureRequest instead of just special workspace - Add debug logging for explicit workspace assignments * fix: simplify X11 configure request handling for special workspaces X11 apps send configure requests with positions based on XWayland's monitor layout, which could incorrectly move windows off special workspaces. Skip workspace reassignment when the window is on a special workspace or staying on the same monitor, but always run z-order, fullscreen flag, and damage logic since the configure request may include geometry changes.
* fix: handle fullscreen windows on special workspaces (#12851)John Mylchreest2026-01-083-7/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: handle fullscreen windows on special workspaces inFullscreenMode() only checked m_activeWorkspace, missing fullscreen windows on special workspaces. This caused crashes and incorrect behavior when fullscreen windows were on special workspaces. Changes: - inFullscreenMode() now checks special workspace first since it renders on top of regular workspaces - Added getFullscreenWindow() helper to safely get fullscreen window from either active or special workspace - Updated callers (shouldSkipScheduleFrameOnMouseEvent, Renderer, getFSImageDescription) to use the new helper - Reset m_aboveFullscreen for layer surfaces when opening, closing, or stealing special workspaces between monitors * test: add special workspace fullscreen detection tests Add tests for the new special workspace fullscreen handling introduced in the previous commit. The tests cover: 1. Fullscreen detection on special workspace - verifies that a window made fullscreen on a special workspace is correctly detected 2. Special workspace fullscreen precedence - verifies that when both regular and special workspaces have fullscreen windows, the special workspace window can be focused when the special workspace is opened 3. Toggle special workspace behavior - verifies that toggling the special workspace off properly hides it and returns focus to the regular workspace's fullscreen window These tests exercise the key code paths modified in the fix: - inFullscreenMode() checking special workspace first - getFullscreenWindow() helper returning correct window - Layer surface m_aboveFullscreen reset on special workspace toggle
* animationMgr: avoid uaf in ::tick() if handleUpdate destroys AVVaxry2026-01-081-0/+3
| | | | ref https://github.com/hyprwm/Hyprland/discussions/12840
* desktop/ls: fix invalid clampVaxry2026-01-081-2/+2
|
* main: add watchdog-fd and safe-mode options to help message (#12922)Aaron Blasko2026-01-081-1/+3
| | | Additionally, don't print the "you're not using start-hyprland" warning when using `--verify-config`
* desktop/reservedArea: clamp dynamic types to 0Vaxry2026-01-081-0/+2
| | | | ref https://github.com/hyprwm/Hyprland/discussions/12880
* desktop/reservedArea: clamp to 0Vaxry2026-01-081-2/+3
| | | | ref https://github.com/hyprwm/Hyprland/discussions/12880
* config: don't crash on permission with a config checkVaxry2026-01-081-1/+1
| | | | ref #12872
* renderer/gl: add internal gl formats and reduce internal driver format ↵Tom Englund2026-01-0710-171/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conversions (#12879) * format: add internal formats for drm formats cross referenced with weston and added internal formats and types for a lot of missing ones. also added a isFormatYUV helper. * framebuffer: ensure we use right internalformat ensure we use the right internal format to avoid internal driver blitting, also since we only attach the GL_STENCIL_ATTACHMENT we might just aswell only use the GL_STENCIL_INDEX8 to not confuse drivers that we want a depth aswell. * texture: use external on yuv or non linear mods using external makes us use the gpu's internal detiler. and this is makes intel a lot happier then having to format convert it to a linear format internally. * shaders: add external support to CM frag add external support to CM frag, and correct ext.frag typo. * formats: remove duplicates and fix a typo in cm.frag remove duplicate formats and a typo in cm.frag * formats: add swizzle logic to all formats add swizzle logic from weston for all formats and use it in shm texture paths. * format: more format changes use monitor drm format instead of forcing something different. * shader: remove external from cm.frag drivers want this resolved at compiletime cant use both samplerExternalOES and sampler2d and then runtime branch it. * screencopy: swizzle textures in screencopy swizzle textures in screencopy, to get the right colors when copying. * screencopy: restore old behaviour try restore old behaviour before the gles3 format changes. glReadPixels had the wrong format, so i went to far trying to mitigate it. should be like before now.
* groupbar: added group:groupbar:text_padding (#12818)wbg2026-01-073-6/+15
| | | Co-authored-by: Roman Weinberger // ACL <roman.weinberger@acl.at>