Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ iconify_client(client_t *c)
void
do_iconify(client_t *c)
{
if (c->state & STATE_ZOOMED) {
unzoom_client(c);
c->state |= STATE_ICONIFIED_ZOOMED; }

XSetWindowAttributes attrs = { 0 };
XGCValues gv;

Expand Down Expand Up @@ -417,7 +421,11 @@ do_iconify(client_t *c)

void
uniconify_client(client_t *c)
{
{
if (c->state & STATE_ICONIFIED_ZOOMED) {
c->state &= ~STATE_ICONIFIED_ZOOMED;
zoom_client(c); }

if (c->desk != cur_desk) {
c->desk = cur_desk;
set_atoms(c->win, net_wm_desk, XA_CARDINAL, &cur_desk, 1);
Expand All @@ -428,10 +436,8 @@ uniconify_client(client_t *c)
c->state &= ~STATE_ICONIFIED;
set_wm_state(c, NormalState);

c->ignore_unmap++;
XDestroyWindow(dpy, c->icon);
c->icon = None;
c->ignore_unmap++;
if (c->icon_xftdraw) {
XftDrawDestroy(c->icon_xftdraw);
c->icon_xftdraw = None;
Expand Down
1 change: 1 addition & 0 deletions progman.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ enum {
STATE_DOCK = (1 << 5),
STATE_ABOVE = (1 << 6),
STATE_BELOW = (1 << 7),
STATE_ICONIFIED_ZOOMED = (1 << 8)
};

/* client_t frame_style */
Expand Down