- /* position it with relative coords */
- Monitor* mon = &Monitors[Workspaces[c->wspace].monitor];
- c->x = mon->x + c->rel_x;
- c->y = mon->y + c->rel_y;
- Client_MoveResize(c);
-
- /* set mouse to titlebar if mapping for first time */
- if (!(c->wm_flags & F_MAPPED_ONCE))
- {
- int mon = Monitors_GetActiveMonitor();
- c->wspace = Monitors[mon].wspace;
- c->x = Monitors[mon].midx - c->w/2;
- c->y = Monitors[mon].midy - c->h/2;
- Client_MoveResize(c);
- Mouse_ToTitle(c);
- c->wm_flags |= F_MAPPED_ONCE;
- }
-
- /* update, map and redraw */
- ReadProps(c);
- SetWMState(c, NormalState);
- XMapWindow(X.disp, c->frame);
- XMapWindow(X.disp, c->win);
- Redraw(c);
+// /* position it with relative coords */
+// Monitor* mon = &Monitors[Workspaces[c->wspace].monitor];
+// c->x = mon->x + c->rel_x;
+// c->y = mon->y + c->rel_y;
+// Client_MoveResize(c);
+//
+// /* set mouse to titlebar if mapping for first time */
+// if (!(c->wm_flags & F_MAPPED_ONCE))
+// {
+// int mon = Monitors_GetActiveMonitor();
+// c->wspace = Monitors[mon].wspace;
+// c->x = Monitors[mon].midx - c->w/2;
+// c->y = Monitors[mon].midy - c->h/2;
+// Client_MoveResize(c);
+// Mouse_ToTitle(c);
+// c->wm_flags |= F_MAPPED_ONCE;
+// }
+//
+// /* update, map and redraw */
+// ReadProps(c);
+// SetWMState(c, NormalState);
+// XMapWindow(X.disp, c->frame);
+// XMapWindow(X.disp, c->win);
+// Redraw(c);
+
+ UpdateHiddenState(c, CLR_FLAG);