diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-29 10:43:10 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-29 10:43:10 -0400 |
commit | c01248cf17b0556145d973449d0b12cad0b96a8c (patch) | |
tree | 8b76fcdbf82ee92ef19504d4a9c0e3abc43f8e1c /backend | |
parent | ce72a687ce3b88b69b0d319800d2f466205a15f7 (diff) | |
parent | 50e86a0efa43fa72bd7d8c2dfc2d124052f74823 (diff) |
Merge branch 'master' into feature/xwm-rewrite
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index a3594bb0..27a8490c 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -503,13 +503,6 @@ static bool wlr_drm_connector_set_cursor(struct wlr_output *output, struct wlr_drm_crtc *crtc = conn->crtc; struct wlr_drm_plane *plane = crtc->cursor; - if (!buf && update_pixels) { - // Hide the cursor - plane->cursor_enabled = false; - return drm->iface->crtc_set_cursor(drm, crtc, NULL); - } - plane->cursor_enabled = true; - // We don't have a real cursor plane, so we make a fake one if (!plane) { plane = calloc(1, sizeof(*plane)); @@ -520,6 +513,13 @@ static bool wlr_drm_connector_set_cursor(struct wlr_output *output, crtc->cursor = plane; } + if (!buf && update_pixels) { + // Hide the cursor + plane->cursor_enabled = false; + return drm->iface->crtc_set_cursor(drm, crtc, NULL); + } + plane->cursor_enabled = true; + if (!plane->surf.gbm) { int ret; uint64_t w, h; |