Fix urgent flag of tag when hint appears on current tag & try a new way to handle unmap event
This commit is contained in:
parent
35ccda32a4
commit
d6afd65f6f
@ -316,9 +316,9 @@ event_unmapnotify(XEvent *e)
|
|||||||
struct client *c;
|
struct client *c;
|
||||||
struct _systray *s;
|
struct _systray *s;
|
||||||
|
|
||||||
if((c = client_gb_win(ev->window))
|
if((c = client_gb_win(ev->window)))
|
||||||
&& ev->send_event
|
{
|
||||||
&& ev->event == W->root)
|
if(!ev->send_event)
|
||||||
{
|
{
|
||||||
int d;
|
int d;
|
||||||
unsigned char *ret = NULL;
|
unsigned char *ret = NULL;
|
||||||
@ -329,6 +329,9 @@ event_unmapnotify(XEvent *e)
|
|||||||
if(*ret == NormalState)
|
if(*ret == NormalState)
|
||||||
client_remove(c);
|
client_remove(c);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
client_unmap(c);
|
||||||
|
}
|
||||||
else if((s = systray_find(ev->window)))
|
else if((s = systray_find(ev->window)))
|
||||||
{
|
{
|
||||||
systray_del(s);
|
systray_del(s);
|
||||||
|
|||||||
@ -60,8 +60,7 @@ tag_screen(struct screen *s, struct tag *t)
|
|||||||
if(!SLIST_EMPTY(&t->clients) && !(W->flags & WMFS_SCAN))
|
if(!SLIST_EMPTY(&t->clients) && !(W->flags & WMFS_SCAN))
|
||||||
client_focus( client_tab_next(t->sel));
|
client_focus( client_tab_next(t->sel));
|
||||||
|
|
||||||
if(t->flags & TAG_URGENT)
|
t->flags &= ~TAG_URGENT;
|
||||||
t->flags ^= TAG_URGENT;
|
|
||||||
|
|
||||||
infobar_elem_screen_update(s, ElemTag);
|
infobar_elem_screen_update(s, ElemTag);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user