mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
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.
46 lines
818 B
C
46 lines
818 B
C
#include "libami.h"
|
|
#include "module.h"
|
|
#include <string.h>
|
|
|
|
int md_rotate_screen(XID id)
|
|
{
|
|
return md_command00(id, MCMD_ROTATE_SCREEN);
|
|
}
|
|
|
|
int md_front(XID id)
|
|
{
|
|
return md_command00(id, MCMD_FRONT);
|
|
}
|
|
|
|
int md_back(XID id)
|
|
{
|
|
return md_command00(id, MCMD_BACK);
|
|
}
|
|
|
|
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));
|
|
}
|
|
|
|
int md_managemenu(Window id, int menu, int item, int subitem)
|
|
{
|
|
int data[3];
|
|
data[0]=menu; data[1]=item; data[2]=subitem;
|
|
return md_command0(id, MCMD_MANAGEMENU, data, sizeof(data));
|
|
}
|