Skip to content

Commit

Permalink
Restore old map/unmap behavior
Browse files Browse the repository at this point in the history
Fixes #708.
  • Loading branch information
baskerville committed Sep 21, 2017
1 parent a464968 commit d953f6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
9 changes: 2 additions & 7 deletions src/events.c
Expand Up @@ -248,13 +248,8 @@ void unmap_notify(xcb_generic_event_t *evt)
return;
}

coordinates_t loc;
if (!locate_window(e->window, &loc)) {
return;
}

set_hidden(loc.monitor, loc.desktop, loc.node, true);
arrange(loc.monitor, loc.desktop);
set_window_state(e->window, XCB_ICCCM_WM_STATE_WITHDRAWN);
unmanage_window(e->window);
}

void property_notify(xcb_generic_event_t *evt)
Expand Down
8 changes: 1 addition & 7 deletions src/window.c
Expand Up @@ -50,13 +50,7 @@ void schedule_window(xcb_window_t win)
free(wa);
}

if (override_redirect) {
return;
}

if (locate_window(win, &loc)) {
set_hidden(loc.monitor, loc.desktop, loc.node, false);
arrange(loc.monitor, loc.desktop);
if (override_redirect || locate_window(win, &loc)) {
return;
}

Expand Down

0 comments on commit d953f6f

Please sign in to comment.