[amiwm] Implement a keyboard shortcut to move a client to a different screen

This allows a keyboard shortcut to move a client to a different amiwm
screen.  That way when you have things like Firefox restart every window
in a single screen, you can quickly move screens to where they should be.
This commit is contained in:
Adrian Chadd
2022-05-26 18:54:13 -07:00
parent c0450d83bc
commit 631176c9a2
9 changed files with 45 additions and 1 deletions

4
icon.c
View File

@@ -156,12 +156,16 @@ void reparenticon(Icon *i, Scrn *s, int x, int y)
i->next=s->icons;
s->icons=i;
if(i->client) {
#if 1
reparent_client(s, i->client);
#else
i->client->scr=s;
if(i->client->parent != i->client->scr->root)
XReparentWindow(dpy, i->client->parent, s->back,
i->client->x, i->client->y);
setstringprop(i->client->window, amiwm_screen, s->deftitle);
sendconfig(i->client);
#endif
}
if(os)
selecticon(i);