mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
[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:
@@ -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*));
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user