10#include <X11/extensions/shape.h>
120 switch(
Scr->IconifyStyle) {
144 if(!
Scr->ClickToFocus) {
145 Scr->FocusRoot =
true;
151 if(!
Scr->WindowMask &&
Scr->IconifyFunction.func != 0) {
155 action =
Scr->IconifyFunction.item ?
Scr->IconifyFunction.item->action :
NULL;
173 if(
Scr->WindowMask) {
185 if(
t->icon_on &&
t->icon &&
t->icon->w) {
203 if(!
Scr->WindowMask &&
Scr->DeIconifyFunction.func != 0) {
207 action =
Scr->DeIconifyFunction.item ?
208 Scr->DeIconifyFunction.item->action :
NULL;
229 int width =
tmp_win->frame_width;
230 int height =
tmp_win->frame_height;
232 srect = (width < height) ? (width / 20) : (height / 20);
247 for(i = 0; i < 10; i++) {
281 for(i = 0; i <
nsteps; i++) {
314 for(i = 0; i <
nsteps; i++) {
316 (h / 2) - (i *
step),
403 for(i = 0; i < 20; i++) {
453 ||
Scr->ZoomCount < 1) {
470 for(
j = 0;
j < 2;
j++) {
474 for(i = 1; i <
z; i++) {
481 x,
y, width, height);
492 Zoom(
t->icon->w,
t->frame);
503 if(
false &&
Scr->Root !=
Scr->CaptiveRoot) {
507 if(!
Scr->NoRaiseDeicon) {
513 if(
t->icon &&
t->icon->w) {
516 if(
Scr->ShrinkIconTitles) {
517 t->icon->title_shrunk =
true;
520 if(
t->iconmanagerlist) {
523 for(wl =
t->iconmanagerlist; wl !=
NULL; wl = wl->
nextv) {
543 for(
t =
Scr->FirstWindow;
t !=
NULL;
t =
t->next) {
545 ((
t->istransient &&
t->transientfor ==
tmp_win->w) ||
546 (
t->group ==
tmp_win->w &&
t->isicon))) {
561 for(
t =
Scr->FirstWindow;
t !=
NULL;
t =
t->next) {
563 ((
t->istransient &&
t->transientfor ==
tmp_win->w) ||
593 if(
t->icon &&
t->icon->w) {
597 if(
t ==
Scr->Focus) {
599 if(!
Scr->ClickToFocus) {
600 Scr->FocusRoot =
true;
603 if(
t->iconmanagerlist) {
#define ALLOW_DEAD_STORE(x)
void ExecuteFunction(int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
void IconUp(TwmWindow *tmp_win)
void IconDown(TwmWindow *tmp_win)
void CreateIconWindow(TwmWindow *tmp_win, int def_x, int def_y)
void * LookInList(name_list *list_head, const char *name, XClassHint *class)
void OtpRaise(TwmWindow *twm_win, WinType wintype)
int ReparentWindow(Display *display, TwmWindow *twm_win, WinType wintype, Window parent, int x, int y)
Info and control for every X Window we take over.
static void MosaicFade(TwmWindow *tmp_win, Window blanket)
static void ReMapOne(TwmWindow *t, TwmWindow *leader)
static void waitamoment(float timeout)
static void Zoom(Window wf, Window wt)
void Iconify(TwmWindow *tmp_win, int def_x, int def_y)
static void ZoomInWindow(TwmWindow *tmp_win, Window blanket)
static void SweepWindow(TwmWindow *tmp_win, Window blanket)
void UnmapTransients(TwmWindow *tmp_win, bool iconify, long eventMask)
void DeIconify(TwmWindow *tmp_win)
static void FadeWindow(TwmWindow *tmp_win, Window blanket)
void ReMapTransients(TwmWindow *tmp_win)
static void ZoomOutWindow(TwmWindow *tmp_win, Window blanket)
void SetFocus(TwmWindow *tmp_win, Time tim)
bool visible(const TwmWindow *tmp_win)
TwmWindow * GetTwmWindow(Window w)
int restore_mask(Window w, long restore)
long mask_out_event_mask(Window w, long ignore_event, long curmask)
long mask_out_event(Window w, long ignore_event)
void SetMapStateProp(TwmWindow *tmp_win, int state)
void WarpToWindow(TwmWindow *t, bool must_raise)
void WMapDeIconify(TwmWindow *win)
void WMapIconify(TwmWindow *win)