summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/handlers.c2
-rw-r--r--sway/layout.c8
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
427} 427}
428 428
429static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers, 429static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers,
430 uint32_t button, enum wlc_button_state state) { 430 uint32_t button, enum wlc_button_state state, const struct wlc_origin *origin) {
431 swayc_t *focused = get_focused_container(&root_container); 431 swayc_t *focused = get_focused_container(&root_container);
432 //dont change focus if fullscreen 432 //dont change focus if fullscreen
433 if (focused->type == C_VIEW && wlc_view_get_state(focused->handle) & WLC_BIT_FULLSCREEN) { 433 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) {
152 geometry.origin.y = 0; 152 geometry.origin.y = 0;
153 geometry.size.w = parent->width; 153 geometry.size.w = parent->width;
154 geometry.size.h = parent->height; 154 geometry.size.h = parent->height;
155 wlc_view_set_geometry(container->handle, &geometry); 155 wlc_view_set_geometry(container->handle, 0, &geometry);
156 wlc_view_bring_to_front(container->handle); 156 wlc_view_bring_to_front(container->handle);
157 } else { 157 } else {
158 wlc_view_set_geometry(container->handle, &geometry); 158 wlc_view_set_geometry(container->handle, 0, &geometry);
159 container->width = width; 159 container->width = width;
160 container->height = height; 160 container->height = height;
161 } 161 }
@@ -232,10 +232,10 @@ void arrange_windows(swayc_t *container, int width, int height) {
232 geometry.origin.y = 0; 232 geometry.origin.y = 0;
233 geometry.size.w = parent->width; 233 geometry.size.w = parent->width;
234 geometry.size.h = parent->height; 234 geometry.size.h = parent->height;
235 wlc_view_set_geometry(view->handle, &geometry); 235 wlc_view_set_geometry(view->handle, 0, &geometry);
236 wlc_view_bring_to_front(view->handle); 236 wlc_view_bring_to_front(view->handle);
237 } else { 237 } else {
238 wlc_view_set_geometry(view->handle, &geometry); 238 wlc_view_set_geometry(view->handle, 0, &geometry);
239 view->width = width; 239 view->width = width;
240 view->height = height; 240 view->height = height;
241 // Bring the views to the front in order of the list, the list 241 // Bring the views to the front in order of the list, the list