Cosmetic
This commit is contained in:
parent
bd2b1b83b0
commit
80f1ebead0
@ -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);
|
||||
|
||||
@ -36,6 +36,7 @@ void
|
||||
init(void)
|
||||
{
|
||||
/* First init */
|
||||
XSetErrorHandler(errorhandlerdummy);
|
||||
gc = DefaultGC(dpy, screen);
|
||||
screen = DefaultScreen(dpy);
|
||||
init_font();
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user