mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
style: include brackets for if/while/for, even if it's a single statement
This commit is contained in:
parent
1fbd6cb0f0
commit
dcc743047b
7 changed files with 39 additions and 15 deletions
|
|
@ -330,7 +330,9 @@ static bool add_signal_matches(struct logind_session *session) {
|
|||
|
||||
static int dbus_event(int fd, uint32_t mask, void *data) {
|
||||
sd_bus *bus = data;
|
||||
while (sd_bus_process(bus, NULL) > 0);
|
||||
while (sd_bus_process(bus, NULL) > 0) {
|
||||
;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -307,8 +307,9 @@ size_t wlr_session_find_gpus(struct wlr_session *session,
|
|||
}
|
||||
|
||||
const char *seat = udev_device_get_property_value(dev, "ID_SEAT");
|
||||
if (!seat)
|
||||
if (!seat) {
|
||||
seat = "seat0";
|
||||
}
|
||||
if (session->seat[0] && strcmp(session->seat, seat) != 0) {
|
||||
udev_device_unref(dev);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue