mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
backend/drm: don't set cursor if off-screen
Closes: https://github.com/swaywm/wlroots/issues/2216
This commit is contained in:
parent
5947160630
commit
e7a8ea84c3
4 changed files with 14 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ static bool legacy_crtc_commit(struct wlr_drm_backend *drm,
|
|||
}
|
||||
}
|
||||
|
||||
if (cursor != NULL && cursor->cursor_enabled) {
|
||||
if (cursor != NULL && drm_connector_is_cursor_visible(conn)) {
|
||||
struct wlr_drm_fb *cursor_fb = plane_get_next_fb(cursor);
|
||||
struct gbm_bo *cursor_bo =
|
||||
drm_fb_acquire(cursor_fb, drm, &cursor->mgpu_surf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue