Add floating window movement with keys. Add focus moving on floating

This commit is contained in:
2026-06-30 00:40:39 -04:00
parent 02708b12c8
commit 5e5e787c41
4 changed files with 127 additions and 87 deletions
+3 -3
View File
@@ -394,7 +394,7 @@ ipc_build_workspace(struct json_writer *w, Monitor *m, uint32_t tag_bit,
json_object_end(w);
json_key_string(w, "output", m->wlr_output->name);
json_key_string(w, "layout", m->ltsymbol);
json_key_string(w, "layout", m->ltsymbol[tag_idx]);
json_key_string(w, "representation", "");
json_key_string(w, "type", "workspace");
@@ -495,7 +495,7 @@ static void
ipc_build_client(struct json_writer *w, Client *c)
{
int floating = c->isfloating ||
!c->mon->lt[c->mon->sellt]->arrange;
!curlayout(c->mon)->arrange;
json_object_start(w);
json_key_int(w, "id", (int64_t)(uintptr_t)c);
@@ -685,7 +685,7 @@ ipc_handle_get_tree(struct ipc_client *client)
json_key_string(&w, "type", "workspace");
json_key_string(&w, "name",
ipc_tag_name(i));
json_key_string(&w, "layout", m->ltsymbol);
json_key_string(&w, "layout", m->ltsymbol[i]);
json_key(&w, "rect");
json_object_start(&w);