diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 6 | ||||
-rw-r--r-- | backend/wayland/output.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 30be40ea..7224cb3e 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -581,11 +581,11 @@ static bool drm_connector_set_cursor(struct wlr_output *output, wlr_log_errno(L_ERROR, "Failed to create cursor bo"); return false; } - - wlr_matrix_projection(plane->matrix, plane->surf.width, - plane->surf.height, output->transform); } + wlr_matrix_projection(plane->matrix, plane->surf.width, + plane->surf.height, output->transform); + struct wlr_box hotspot = { .x = hotspot_x, .y = hotspot_y }; wlr_box_transform(&hotspot, wlr_output_transform_invert(output->transform), plane->surf.width, plane->surf.height, &hotspot); diff --git a/backend/wayland/output.c b/backend/wayland/output.c index 109834c9..42b41508 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -284,8 +284,12 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *_backend) { goto error; } + char title[32]; + if (snprintf(title, sizeof(title), "wlroots - %s", wlr_output->name)) { + zxdg_toplevel_v6_set_title(output->xdg_toplevel, title); + } + zxdg_toplevel_v6_set_app_id(output->xdg_toplevel, "wlroots"); - zxdg_toplevel_v6_set_title(output->xdg_toplevel, "wlroots"); zxdg_surface_v6_add_listener(output->xdg_surface, &xdg_surface_listener, output); zxdg_toplevel_v6_add_listener(output->xdg_toplevel, |