mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-23 03:29:47 +01:00
drm: fix cursor being stuck invisible
This commit is contained in:
parent
320a6d40a7
commit
57e100c802
1 changed files with 4 additions and 1 deletions
|
@ -1170,6 +1170,8 @@ bool Aquamarine::CDRMOutput::setCursor(SP<IBuffer> buffer, const Vector2D& hotsp
|
||||||
backend->backend->log(AQ_LOG_DEBUG, std::format("drm: Cursor buffer imported into KMS with id {}", fb->id));
|
backend->backend->log(AQ_LOG_DEBUG, std::format("drm: Cursor buffer imported into KMS with id {}", fb->id));
|
||||||
|
|
||||||
connector->crtc->pendingCursor = fb;
|
connector->crtc->pendingCursor = fb;
|
||||||
|
|
||||||
|
cursorVisible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
needsFrame = true;
|
needsFrame = true;
|
||||||
|
@ -1179,6 +1181,7 @@ bool Aquamarine::CDRMOutput::setCursor(SP<IBuffer> buffer, const Vector2D& hotsp
|
||||||
|
|
||||||
void Aquamarine::CDRMOutput::moveCursor(const Vector2D& coord) {
|
void Aquamarine::CDRMOutput::moveCursor(const Vector2D& coord) {
|
||||||
cursorPos = coord;
|
cursorPos = coord;
|
||||||
|
cursorVisible = true;
|
||||||
backend->impl->moveCursor(connector);
|
backend->impl->moveCursor(connector);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue