diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 2 | ||||
-rw-r--r-- | sway/layout.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 534b4e4f..1fe2dc27 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -427,7 +427,7 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct } static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers, - uint32_t button, enum wlc_button_state state) { + uint32_t button, enum wlc_button_state state, const struct wlc_origin *origin) { swayc_t *focused = get_focused_container(&root_container); //dont change focus if fullscreen if (focused->type == C_VIEW && wlc_view_get_state(focused->handle) & WLC_BIT_FULLSCREEN) { diff --git a/sway/layout.c b/sway/layout.c index 105359d2..a6a241f4 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -152,10 +152,10 @@ void arrange_windows(swayc_t *container, int width, int height) { geometry.origin.y = 0; geometry.size.w = parent->width; geometry.size.h = parent->height; - wlc_view_set_geometry(container->handle, &geometry); + wlc_view_set_geometry(container->handle, 0, &geometry); wlc_view_bring_to_front(container->handle); } else { - wlc_view_set_geometry(container->handle, &geometry); + wlc_view_set_geometry(container->handle, 0, &geometry); container->width = width; container->height = height; } @@ -232,10 +232,10 @@ void arrange_windows(swayc_t *container, int width, int height) { geometry.origin.y = 0; geometry.size.w = parent->width; geometry.size.h = parent->height; - wlc_view_set_geometry(view->handle, &geometry); + wlc_view_set_geometry(view->handle, 0, &geometry); wlc_view_bring_to_front(view->handle); } else { - wlc_view_set_geometry(view->handle, &geometry); + wlc_view_set_geometry(view->handle, 0, &geometry); view->width = width; view->height = height; // Bring the views to the front in order of the list, the list |