something

This commit is contained in:
2026-05-21 12:34:35 +07:00
parent d98771900c
commit d00ac09a9b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -76,6 +76,11 @@ static void process_cursor_move(absn_server *server)
if (!toplevel->floating) {
toplevel_set_floating(toplevel, true);
}
if (toplevel->output != server->focused_output) {
toplevel->output = server->focused_output;
toplevel->workspace = toplevel->output->workspace;
}
}
static void apply_resize(absn_toplevel *toplevel, struct wlr_box *new_geom)
+1 -1
View File
@@ -202,7 +202,7 @@ void switch_workspace(absn_server *server, const absn_arg *arg)
}
}
if (toplevels_count == 0) {
if (toplevels_count == 0 && server->focused_output == server->workspaces[i].output) {
server->focused_output->workspace->output = NULL;
}