This commit is contained in:
Martin Duquesnoy 2008-11-09 05:13:28 +01:00
parent bd2b1b83b0
commit 80f1ebead0
4 changed files with 6 additions and 9 deletions

View File

@ -464,8 +464,6 @@ client_unmanage(Client *c)
selbytag[i] = NULL;
/* }}} */
/* Detach this client of the chain
* and set the withdraw state */
client_detach(c);
setwinstate(c->win, WithdrawnState);
XDestroySubwindows(dpy, c->frame);

View File

@ -36,6 +36,7 @@ void
init(void)
{
/* First init */
XSetErrorHandler(errorhandlerdummy);
gc = DefaultGC(dpy, screen);
screen = DefaultScreen(dpy);
init_font();

View File

@ -153,11 +153,10 @@ mouse_resize(Client *c)
mwf = 1 - fy;
else if(tags[seltag].layout.func == tile_bottom)
mwf = fy;
else
mwf = tags[seltag].mwfact;
tags[seltag].mwfact =
(((0.01) > (mwf) ? (0.01) : (mwf) ) < 0.99)
? ((0.01) > (mwf) ? (0.01): (mwf))
: 0.99;
tags[seltag].mwfact = (mwf < 0.05) ? 0.05 : ((mwf > 0.95) ? 0.95 : mwf);
arrange();
}

View File

@ -166,6 +166,7 @@ scan(void)
continue;
if(wa.map_state == IsViewable || getwinstate(wins[i]) == IconicState)
client_manage(wins[i], &wa);
}
for(i = 0; i < num; i++)
{
@ -194,8 +195,7 @@ handle_signal(int signum)
for(c = clients; c; c = c->next)
{
XReparentWindow(dpy, c->win, root, 0, 0);
XDestroySubwindows(dpy, c->frame);
XDestroyWindow(dpy, c->frame);
client_unmanage(c);
}
fprintf(stderr, "\nExit WMFS... Bye !!\n");
quit();
@ -264,7 +264,6 @@ main(int argc, char **argv)
/* Check if an other WM is already running; set the error handler */
XSetErrorHandler(errorhandler);
XSetErrorHandler(errorhandlerdummy);
/* Let's Go ! */
init_conf();