Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Undo change for window unmapping in add_window()

  • Loading branch information...
commit 5e2bf3f71656c82bf13200c1e3e6eba3370a668b 1 parent 15a2a49
@moetunes authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 dminiwm.c
View
8 dminiwm.c
@@ -441,11 +441,11 @@ void follow_client_to_desktop(const Arg arg) {
}
void client_to_desktop(const Arg arg) {
+ if(arg.i == current_desktop || current == NULL) return;
+
client *tmp = current;
unsigned int tmp2 = current_desktop;
- if(arg.i == current_desktop || current == NULL) return;
-
// Add client to desktop
select_desktop(arg.i);
add_window(tmp->win, 0);
@@ -812,6 +812,9 @@ void maprequest(XEvent *e) {
return;
}
+ if(mode ==1)
+ for(c=head;c;c=c->next)
+ XUnmapWindow(dis, head->next->win);
XClassHint ch = {0};
unsigned int i=0, j=0, tmp = current_desktop;
if(XGetClassHint(dis, ev->window, &ch))
@@ -841,7 +844,6 @@ void maprequest(XEvent *e) {
if(ch.res_name) XFree(ch.res_name);
add_window(ev->window, 0);
- if(mode ==1) XUnmapWindow(dis, head->next->win);
if(mode != 4) tile();
if(mode != 1) XMapWindow(dis,ev->window);
warp_pointer();
Please sign in to comment.
Something went wrong with that request. Please try again.