that was a really bad idea, i didnt mean it, i swear
This commit is contained in:
parent
bc1148f0b3
commit
af7278b6e5
1 changed files with 15 additions and 15 deletions
|
@ -401,13 +401,9 @@ void client_unmanage(ObClient *self)
|
||||||
influence */
|
influence */
|
||||||
screen_update_areas();
|
screen_update_areas();
|
||||||
|
|
||||||
if (focus_client == self) {
|
for (it = client_destructors; it; it = g_slist_next(it)) {
|
||||||
XEvent e;
|
GDestroyNotify func = (GDestroyNotify) it->data;
|
||||||
|
func(self);
|
||||||
/* focus the last focused window on the desktop, and ignore enter
|
|
||||||
events from the unmap so it doesnt mess with the focus */
|
|
||||||
while (XCheckTypedEvent(ob_display, EnterNotify, &e));
|
|
||||||
client_unfocus(self);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* tell our parent(s) that we're gone */
|
/* tell our parent(s) that we're gone */
|
||||||
|
@ -431,17 +427,21 @@ void client_unmanage(ObClient *self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (it = client_destructors; it; it = g_slist_next(it)) {
|
|
||||||
GDestroyNotify func = (GDestroyNotify) it->data;
|
|
||||||
func(self);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* remove from its group */
|
/* remove from its group */
|
||||||
if (self->group) {
|
if (self->group) {
|
||||||
group_remove(self->group, self);
|
group_remove(self->group, self);
|
||||||
self->group = NULL;
|
self->group = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (focus_client == self) {
|
||||||
|
XEvent e;
|
||||||
|
|
||||||
|
/* focus the last focused window on the desktop, and ignore enter
|
||||||
|
events from the unmap so it doesnt mess with the focus */
|
||||||
|
while (XCheckTypedEvent(ob_display, EnterNotify, &e));
|
||||||
|
client_unfocus(self);
|
||||||
|
}
|
||||||
|
|
||||||
/* give the client its border back */
|
/* give the client its border back */
|
||||||
client_toggle_border(self, TRUE);
|
client_toggle_border(self, TRUE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue