mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-19 06:59:48 -05:00
commit
d2e796edb7
14 changed files with 24 additions and 22 deletions
|
|
@ -162,7 +162,7 @@ static struct wlr_output_impl output_impl = {
|
|||
.move_cursor = wlr_wl_output_move_cursor
|
||||
};
|
||||
|
||||
void handle_ping(void* data, struct wl_shell_surface* ssurface, uint32_t serial) {
|
||||
void handle_ping(void *data, struct wl_shell_surface *ssurface, uint32_t serial) {
|
||||
struct wlr_wl_backend_output *output = data;
|
||||
assert(output && output->shell_surface == ssurface);
|
||||
wl_shell_surface_pong(ssurface, serial);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ static void pointer_handle_enter(void *data, struct wl_pointer *wl_pointer,
|
|||
struct wlr_wl_input_device *wlr_wl_dev = (struct wlr_wl_input_device *)dev;
|
||||
assert(dev && dev->pointer);
|
||||
struct wlr_wl_pointer *wlr_wl_pointer = (struct wlr_wl_pointer *)dev->pointer;
|
||||
struct wlr_wl_backend_output* output =
|
||||
struct wlr_wl_backend_output *output =
|
||||
wlr_wl_output_for_surface(wlr_wl_dev->backend, surface);
|
||||
assert(output);
|
||||
wlr_wl_pointer->current_output = output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue