37#ifdef WARPTO_FROM_ICONMGR
39 if(
len == 0 && tmp_win && tmp_win->iconmgr) {
40 printf(
"curren iconmgr entry: %s", tmp_win->iconmgr->Current);
43 for(tw =
Scr->FirstWindow; tw != NULL; tw = tw->
next) {
44 if(!strncmp(action, tw->
name,
len)) {
52 for(tw =
Scr->FirstWindow; tw != NULL; tw = tw->
next) {
53 if(!strncmp(action, tw->
class.res_name,
len)) {
61 for(tw =
Scr->FirstWindow; tw != NULL; tw = tw->
next) {
62 if(!strncmp(action, tw->
class.res_class,
len)) {
90 Window iconwin = None;
94 if(tmp_win && tmp_win->iconmanagerlist) {
98 else if(
Scr->iconmgr->active) {
99 raisewin =
Scr->iconmgr->twm_win;
100 iconwin =
Scr->iconmgr->active->w;
104 for(tw =
Scr->FirstWindow; tw != NULL; tw = tw->
next) {
117 XWarpPointer(
dpy, None, iconwin, 0, 0, 0, 0, 5, 5);
141 switch(((
char *)action)[0]) {
166 if(
Scr->WarpUnmapped || tmp_win->mapped) {
167 if(!tmp_win->mapped) {
183 if(
Scr->RingLeader) {
184 head =
Scr->RingLeader;
186 else if(!(head =
Scr->Ring)) {
216 ||
Scr->Focus == NULL
232 "WarpAlongRing: cursor_valid := true; x := %d (%d-%d), y := %d (%d-%d)\n",
233 Tmp_win->ring.curs_x, ev->x_root, t->frame_x,
Tmp_win->ring.curs_y, ev->y_root,
static void WarpAlongRing(XButtonEvent *ev, bool forward)
int match(const char *p, const char *t)
void OtpRaise(TwmWindow *twm_win, WinType wintype)
struct TwmWindow * prev
Previous window in the ring.
int curs_x
Stored cursor position in the window.
int curs_y
Stored cursor position in the window.
bool cursor_valid
Whether curs_x and curs_y are usable.
struct TwmWindow * next
Next window in the ring.
Info and control for every X Window we take over.
struct TwmWindow * next
Next TwmWindow on the Screen.
struct TwmWindow::_ring ring
Window ring connectivity. "
char * name
Current window name. Points into TwmWindow::names.
char * icon_name
Current icon name. Points into TwmWindow::names.
bool mapped
Is the window mapped ?
XClassHint class
Window class info. From XGetClassHint().
struct WList * iconmanagerlist
List of the icon managers the window is in.
void DeIconify(TwmWindow *tmp_win)
void UnlinkWindowFromRing(TwmWindow *win)
void AddWindowToRing(TwmWindow *win)
#define WindowIsOnRing(win)
bool visible(const TwmWindow *tmp_win)
TwmWindow * GetTwmWindow(Window w)
void WarpToWindow(TwmWindow *t, bool must_raise)