37#ifdef WARPTO_FROM_ICONMGR
40 printf(
"curren iconmgr entry: %s",
tmp_win->iconmgr->Current);
56 if(
match(action,
tw->class.res_name)) {
65 if(
match(action,
tw->class.res_class)) {
73 if(
Scr->WarpUnmapped ||
tw->mapped) {
98 else if(
Scr->iconmgr->active) {
106 if(
tw->iconmanagerlist &&
107 tw->iconmanagerlist->iconmgr->twm_win->mapped) {
108 raisewin =
tw->iconmanagerlist->iconmgr->twm_win;
141 switch(((
char *)action)[0]) {
183 if(
Scr->RingLeader) {
184 head =
Scr->RingLeader;
186 else if(!(head =
Scr->Ring)) {
192 if(
r->mapped && (
Scr->WarpRingAnyWhere ||
visible(
r))) {
199 if(
r->mapped && (
Scr->WarpRingAnyWhere ||
visible(
r))) {
226 p->ring.cursor_valid =
true;
227 p->ring.curs_x =
ev->x_root -
t->frame_x;
228 p->ring.curs_y =
ev->y_root -
t->frame_y;
232 "WarpAlongRing: cursor_valid := true; x := %d (%d-%d), y := %d (%d-%d)\n",
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.
struct TwmWindow * next
Next window in the ring.
Info and control for every X Window we take over.
struct TwmWindow::_ring ring
Window ring connectivity. "
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)