From 515673bb36a6c223ddaf6381f4ef41f128ed0fc5 Mon Sep 17 00:00:00 2001 From: liupeng Date: Mon, 27 Apr 2026 21:48:54 +0800 Subject: [PATCH] misc: fix tab Signed-off-by: liupeng --- backend/session/session.c | 2 +- types/wlr_cursor_shape_v1.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/session/session.c b/backend/session/session.c index 868774399..a942e35f6 100644 --- a/backend/session/session.c +++ b/backend/session/session.c @@ -546,7 +546,7 @@ ssize_t wlr_session_find_gpus(struct wlr_session *session, bool is_primary = false; const char *boot_display = udev_device_get_sysattr_value(dev, "boot_display"); if (boot_display && strcmp(boot_display, "1") == 0) { - is_primary = true; + is_primary = true; } else { // This is owned by 'dev', so we don't need to free it struct udev_device *pci = diff --git a/types/wlr_cursor_shape_v1.c b/types/wlr_cursor_shape_v1.c index 563b326e0..35fbb017f 100644 --- a/types/wlr_cursor_shape_v1.c +++ b/types/wlr_cursor_shape_v1.c @@ -135,10 +135,10 @@ static void create_device(struct wl_resource *manager_resource, uint32_t id, wl_signal_add(&seat_client->events.destroy, &device->seat_client_destroy); if (tablet_tool != NULL) { - device->tablet_tool_destroy.notify = device_handle_tablet_tool_destroy; - wl_signal_add(&tablet_tool->wlr_tool->events.destroy, &device->tablet_tool_destroy); + device->tablet_tool_destroy.notify = device_handle_tablet_tool_destroy; + wl_signal_add(&tablet_tool->wlr_tool->events.destroy, &device->tablet_tool_destroy); } else { - wl_list_init(&device->tablet_tool_destroy.link); + wl_list_init(&device->tablet_tool_destroy.link); } wl_resource_set_user_data(device_resource, device);