misc: fix tab

Signed-off-by: liupeng <liupeng01@kylinos.cn>
This commit is contained in:
liupeng 2026-04-27 21:48:54 +08:00
parent 37f30dc8d0
commit 515673bb36
2 changed files with 4 additions and 4 deletions

View file

@ -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 =

View file

@ -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);