[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

View File

@@ -370,6 +370,7 @@ extern int md_iconify(Window);
extern int md_errormsg(Window, char *);
extern int md_rotate_window_raise(Window);
extern int md_rotate_window_lower(Window);
extern int md_rotate_window_desktop(Window);
/* eventdispatcher.c */
extern void cx_event_broker(int, unsigned long, int (*)(XEvent*));

View File

@@ -32,6 +32,11 @@ int md_rotate_window_lower(XID id)
return md_command00(id, MCMD_ROTATE_WINDOW_LOWER);
}
int md_rotate_window_desktop(XID id)
{
return md_command00(id, MCMD_WINDOW_MOVE_NEXT_DESKTOP);
}
int md_errormsg(Window id, char *str)
{
return md_command0(id, MCMD_ERRORMSG, str, strlen(str));