Lines Matching refs:tmp_win
23 static void DisplayWinUnchecked(VirtualScreen *vs, TwmWindow *tmp_win);
232 DisplayWin(VirtualScreen *vs, TwmWindow *tmp_win)
235 DisplayWinUnchecked(vs, tmp_win);
240 DisplayWinUnchecked(VirtualScreen *vs, TwmWindow *tmp_win)
246 if(vs && tmp_win->vs) {
251 tmp_win->vs = vs;
255 if(!tmp_win->mapped) {
256 ReparentFrameAndIcon(tmp_win);
259 if(tmp_win->isicon) {
260 if(tmp_win->icon_on) {
261 if(tmp_win->icon && tmp_win->icon->w) {
263 IconUp(tmp_win);
264 XMapWindow(dpy, tmp_win->icon->w);
276 if(tmp_win->UnmapByMovingFarAway) {
282 XReparentWindow(dpy, tmp_win->frame, vs->window,
283 tmp_win->frame_x, tmp_win->frame_y);
286 XMoveWindow(dpy, tmp_win->frame, tmp_win->frame_x, tmp_win->frame_y);
291 if(!tmp_win->squeezed) {
294 eventMask = mask_out_event(tmp_win->w, StructureNotifyMask);
295 XMapWindow(dpy, tmp_win->w);
296 restore_mask(tmp_win->w, eventMask);
299 ReparentFrameAndIcon(tmp_win);
301 XMapWindow(dpy, tmp_win->frame);
302 SetMapStateProp(tmp_win, NormalState);
313 ReparentFrameAndIcon(TwmWindow *tmp_win)
315 VirtualScreen *vs = tmp_win->vs; /* which virtual screen we want it in */
318 if(vs != tmp_win->parent_vs) {
319 struct Icon *icon = tmp_win->icon;
324 tmp_win->parent_vs = vs;
327 ReparentWindowAndIcon(dpy, tmp_win, vs->window,
328 tmp_win->frame_x, tmp_win->frame_y,
332 ReparentWindow(dpy, tmp_win, WinWin, vs->window,
333 tmp_win->frame_x, tmp_win->frame_y);
344 Vanish(VirtualScreen *vs, TwmWindow *tmp_win)
347 if(vs && tmp_win->vs && tmp_win->vs != vs) {
352 if(tmp_win->UnmapByMovingFarAway) {
354 XMoveWindow(dpy, tmp_win->frame, Scr->rootw + 1, Scr->rooth + 1);
356 else if(tmp_win->mapped) {
360 eventMask = mask_out_event(tmp_win->w, StructureNotifyMask);
361 XUnmapWindow(dpy, tmp_win->w);
362 XUnmapWindow(dpy, tmp_win->frame);
363 restore_mask(tmp_win->w, eventMask);
365 if(!tmp_win->DontSetInactive) {
366 SetMapStateProp(tmp_win, InactiveState);
369 else if(tmp_win->icon_on && tmp_win->icon && tmp_win->icon->w) {
371 XUnmapWindow(dpy, tmp_win->icon->w);
372 IconDown(tmp_win);
392 Window junkW, w = tmp_win->frame;
400 tmp_win->vs = firstvs;
401 ReparentFrameAndIcon(tmp_win);
407 tmp_win->vs = NULL;