event: Remove unmapnotify handle
This commit is contained in:
parent
d2255a2581
commit
e3dcf8ddf9
15
src/client.c
15
src/client.c
@ -161,9 +161,10 @@ client_get(Window w)
|
||||
void
|
||||
client_hide(Client *c)
|
||||
{
|
||||
XMoveWindow(dpy, c->win, c->geo.x + mw * 2, c->geo.y);
|
||||
if(conf.titlebar.exist)
|
||||
XMoveWindow(dpy, c->tbar->win, c->geo.x + mw * 2, c->geo.y);
|
||||
//XMoveWindow(dpy, c->win, c->geo.x + mw * 2, c->geo.y);
|
||||
//if(conf.titlebar.exist)
|
||||
// XMoveWindow(dpy, c->tbar->win, c->geo.x + mw * 2, c->geo.y);
|
||||
client_unmap(c);
|
||||
setwinstate(c->win, IconicState);
|
||||
|
||||
return;
|
||||
@ -432,9 +433,10 @@ uicb_client_raise(uicb_t cmd)
|
||||
void
|
||||
client_unhide(Client *c)
|
||||
{
|
||||
XMoveWindow(dpy, c->win, c->geo.x, c->geo.y);
|
||||
if(conf.titlebar.exist)
|
||||
titlebar_update_position(c);
|
||||
//XMoveWindow(dpy, c->win, c->geo.x, c->geo.y);
|
||||
//if(conf.titlebar.exist)
|
||||
// titlebar_update_position(c);
|
||||
client_map(c);
|
||||
setwinstate(c->win, NormalState);
|
||||
|
||||
return;
|
||||
@ -461,7 +463,6 @@ client_unmanage(Client *c)
|
||||
if(conf.titlebar.exist)
|
||||
titlebar_delete(c);
|
||||
efree(c);
|
||||
XSetErrorHandler(errorhandler);
|
||||
arrange();
|
||||
|
||||
return;
|
||||
|
||||
13
src/event.c
13
src/event.c
@ -439,18 +439,6 @@ propertynotify(XEvent ev)
|
||||
return;
|
||||
}
|
||||
|
||||
/* UNMAPNOTIFY */
|
||||
void
|
||||
unmapnotify(XEvent ev)
|
||||
{
|
||||
Client *c;
|
||||
|
||||
if((c = client_get(ev.xunmap.window)))
|
||||
client_unmanage(c);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/* Handle */
|
||||
void
|
||||
getevent(void)
|
||||
@ -467,7 +455,6 @@ getevent(void)
|
||||
case MapRequest: maprequest(event); break;
|
||||
case MappingNotify: mapnotify(event); break;
|
||||
case PropertyNotify: propertynotify(event); break;
|
||||
case UnmapNotify: unmapnotify(event); break;
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
@ -131,7 +131,7 @@ titlebar_update(Client *c)
|
||||
bar_refresh_color(c->tbar);
|
||||
|
||||
/* Draw the client title in the titlebar *logeek* */
|
||||
if(conf.titlebar.height > fonth)
|
||||
if(conf.titlebar.height + 1 > fonth)
|
||||
{
|
||||
/* Set the text alignement */
|
||||
switch(conf.titlebar.text_align)
|
||||
|
||||
@ -184,7 +184,7 @@ init(void)
|
||||
grabkeys();
|
||||
|
||||
/* MISC WARNING */
|
||||
if(conf.titlebar.height - 1 < fonth)
|
||||
if(conf.titlebar.height < fonth)
|
||||
fprintf(stderr, "WMFS Warning: Font too big, can't draw any text in the titlebar.\n");
|
||||
|
||||
return;
|
||||
|
||||
@ -117,7 +117,6 @@ void mouseaction(Client *c, int x, int y, int type);
|
||||
void uicb_mousemove(uicb_t cmd);
|
||||
void uicb_resizemouse(uicb_t cmd);
|
||||
void propertynotify(XEvent ev);
|
||||
void unmapnotify(XEvent ev);
|
||||
void getevent(void);
|
||||
|
||||
/* util.c */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user