55 |
Window wnd; |
Window wnd; |
56 |
unsigned long id; |
unsigned long id; |
57 |
unsigned long parent; |
unsigned long parent; |
|
XWMHints *hints; |
|
58 |
int xoffset, yoffset; |
int xoffset, yoffset; |
59 |
int width, height; |
int width, height; |
60 |
int state; /* normal/minimized/maximized. */ |
int state; /* normal/minimized/maximized. */ |
294 |
if (sw == win) |
if (sw == win) |
295 |
{ |
{ |
296 |
*prevnext = sw->next; |
*prevnext = sw->next; |
|
XFree(sw->hints); |
|
297 |
xfree(sw); |
xfree(sw); |
298 |
return; |
return; |
299 |
} |
} |
3112 |
sw->wnd = wnd; |
sw->wnd = wnd; |
3113 |
sw->id = id; |
sw->id = id; |
3114 |
sw->parent = parent; |
sw->parent = parent; |
|
sw->hints = XAllocWMHints(); |
|
|
sw->hints->flags = 0; |
|
3115 |
sw->xoffset = 0; |
sw->xoffset = 0; |
3116 |
sw->yoffset = 0; |
sw->yoffset = 0; |
3117 |
sw->width = 0; |
sw->width = 0; |
3226 |
XIconifyWindow is easier. */ |
XIconifyWindow is easier. */ |
3227 |
if (sw->state == SEAMLESSRDP_NOTYETMAPPED) |
if (sw->state == SEAMLESSRDP_NOTYETMAPPED) |
3228 |
{ |
{ |
3229 |
sw->hints->flags |= StateHint; |
XWMHints *hints; |
3230 |
sw->hints->initial_state = IconicState; |
hints = XAllocWMHints(); |
3231 |
XSetWMHints(g_display, sw->wnd, sw->hints); |
hints->flags = StateHint; |
3232 |
|
hints->initial_state = IconicState; |
3233 |
|
XSetWMHints(g_display, sw->wnd, hints); |
3234 |
|
XFree(hints); |
3235 |
XMapWindow(g_display, sw->wnd); |
XMapWindow(g_display, sw->wnd); |
3236 |
} |
} |
3237 |
else |
else |