Update .clang-format

Align with wlroots style
This commit is contained in:
Johan Malm 2020-09-28 20:41:41 +01:00
parent 96b5ab1fc1
commit 96e05057a3
32 changed files with 669 additions and 515 deletions

View file

@ -2,12 +2,14 @@
static struct wlr_seat *current_seat;
void seat_init(struct wlr_seat *seat)
void
seat_init(struct wlr_seat *seat)
{
current_seat = seat;
}
void seat_focus_surface(struct wlr_surface *surface)
void
seat_focus_surface(struct wlr_surface *surface)
{
if (!surface) {
wlr_seat_keyboard_notify_clear_focus(current_seat);
@ -17,7 +19,8 @@ void seat_focus_surface(struct wlr_surface *surface)
wlr_seat_keyboard_notify_enter(current_seat, surface, NULL, 0, NULL);
}
struct wlr_surface *seat_focused_surface(void)
struct wlr_surface *
seat_focused_surface(void)
{
return current_seat->keyboard_state.focused_surface;
}