mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-20 06:59:44 -05:00
Reduce indentation in notify_button()
This commit is contained in:
parent
ea08115ee3
commit
dff2e3c550
1 changed files with 45 additions and 44 deletions
|
|
@ -875,7 +875,9 @@ notify_button(struct wlsc_input_device *device,
|
||||||
struct wl_drag *drag = device->drag;
|
struct wl_drag *drag = device->drag;
|
||||||
|
|
||||||
surface = (struct wlsc_surface *) device->input_device.pointer_focus;
|
surface = (struct wlsc_surface *) device->input_device.pointer_focus;
|
||||||
if (surface) {
|
if (!surface)
|
||||||
|
return;
|
||||||
|
|
||||||
if (state && device->grab == WLSC_DEVICE_GRAB_NONE) {
|
if (state && device->grab == WLSC_DEVICE_GRAB_NONE) {
|
||||||
wlsc_surface_raise(surface);
|
wlsc_surface_raise(surface);
|
||||||
|
|
||||||
|
|
@ -921,7 +923,6 @@ notify_button(struct wlsc_input_device *device,
|
||||||
}
|
}
|
||||||
|
|
||||||
wlsc_compositor_schedule_repaint(compositor);
|
wlsc_compositor_schedule_repaint(compositor);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue