Skip to content

pointermgr: damage only the surface size#13284

Merged
vaxerski merged 2 commits into
hyprwm:mainfrom
gulafaran:hwcursor
Feb 21, 2026
Merged

pointermgr: damage only the surface size#13284
vaxerski merged 2 commits into
hyprwm:mainfrom
gulafaran:hwcursor

Conversation

@gulafaran

Copy link
Copy Markdown
Contributor

CWaylandOutput returns a vector2d with -1, -1 set as a "no limit", passing that down into beginSimple and the renderer it hits pixman bug of invalid sizes and wrong rectangles gets created.

causing bunch of
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed

just set the damage to the size we render the texture down below instead and we not only solve pixman issue but we dont overdamage either.

Comment thread src/managers/PointerManager.cpp
CWaylandOutput returns a vector2d with -1, -1 set as a "no limit",
passing that down into beginSimple and the renderer it hits pixman bug
of invalid sizes and wrong rectangles gets created.

causing bunch of
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed

set the damage either to cursor plane size or fallback to 256x256.
Comment thread src/managers/PointerManager.cpp Outdated
dedup a bit if else casing
@vaxerski
vaxerski merged commit 13dab66 into hyprwm:main Feb 21, 2026
9 of 10 checks passed
@fxzzi

fxzzi commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

You has broken my system >:(((

PXL_20260221_231013420 MP

My monitor is stetched to the top left, cursor is invisible, and whichever monitor should have the cursor on it is frozen

@ItsOhen

ItsOhen commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

Same.
And no monitor redraws at all. Having to dip to tty2 and back to get it to even show the prompt.

@alper-han

Copy link
Copy Markdown
Contributor

There is a white rectangle under my cursor (hardware cursor)

vaxerski added a commit that referenced this pull request Feb 22, 2026
vaxerski added a commit that referenced this pull request Feb 22, 2026
3l0w pushed a commit to 3l0w/Hyprland that referenced this pull request Feb 24, 2026
* pointermgr: damage only the surface size

CWaylandOutput returns a vector2d with -1, -1 set as a "no limit",
passing that down into beginSimple and the renderer it hits pixman bug
of invalid sizes and wrong rectangles gets created.

causing bunch of
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed

set the damage either to cursor plane size or fallback to 256x256.

* pointermgr: dedup if hw cursorsize checks

dedup a bit if else casing
3l0w pushed a commit to 3l0w/Hyprland that referenced this pull request Feb 24, 2026
crthpl pushed a commit to crthpl/Hyprland that referenced this pull request Jun 3, 2026
* pointermgr: damage only the surface size

CWaylandOutput returns a vector2d with -1, -1 set as a "no limit",
passing that down into beginSimple and the renderer it hits pixman bug
of invalid sizes and wrong rectangles gets created.

causing bunch of
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed

set the damage either to cursor plane size or fallback to 256x256.

* pointermgr: dedup if hw cursorsize checks

dedup a bit if else casing
crthpl pushed a commit to crthpl/Hyprland that referenced this pull request Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants