mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
[amiwm] add a new command action to rotate windows
This adds a command to iterate over the set of windows. It's not like alt-tab in ye olde windows world where you'd alt tab once to switch between two windows, and then keep alt-tab'ing with alt down to go through the window list. For now it just literally iterates through those windows. This makes it a lot easier to work with a large number of open windows without having to constantly use the mouse.
This commit is contained in:
@@ -368,6 +368,8 @@ extern int md_front(Window);
|
||||
extern int md_back(Window);
|
||||
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);
|
||||
|
||||
/* eventdispatcher.c */
|
||||
extern void cx_event_broker(int, unsigned long, int (*)(XEvent*));
|
||||
|
||||
@@ -22,6 +22,16 @@ int md_iconify(XID id)
|
||||
return md_command00(id, MCMD_ICONIFY);
|
||||
}
|
||||
|
||||
int md_rotate_window_raise(XID id)
|
||||
{
|
||||
return md_command00(id, MCMD_ROTATE_WINDOW_RAISE);
|
||||
}
|
||||
|
||||
int md_rotate_window_lower(XID id)
|
||||
{
|
||||
return md_command00(id, MCMD_ROTATE_WINDOW_LOWER);
|
||||
}
|
||||
|
||||
int md_errormsg(Window id, char *str)
|
||||
{
|
||||
return md_command0(id, MCMD_ERRORMSG, str, strlen(str));
|
||||
|
||||
Reference in New Issue
Block a user