src/view.c: dont switch output on SnapToEdge if view is maximized

This commit is contained in:
Flrian 2022-12-10 23:39:38 +01:00 committed by Consolatis
parent 7cc80b7a99
commit e4aa7cef76

View file

@ -821,7 +821,7 @@ view_snap_to_edge(struct view *view, const char *direction,
return; return;
} }
if (view->tiled == edge) { if (view->tiled == edge && !view->maximized) {
/* We are already tiled for this edge and thus should switch outputs */ /* We are already tiled for this edge and thus should switch outputs */
struct wlr_output *new_output = NULL; struct wlr_output *new_output = NULL;
struct wlr_output *current_output = output->wlr_output; struct wlr_output *current_output = output->wlr_output;