vene fix notify window while its visible
This commit is contained in:
@@ -224,7 +224,7 @@ void updatestatus(void);
|
||||
static void updatetitle(Client *c);
|
||||
static void updatewindowtype(Client *c);
|
||||
static void updatewmhints(Client *c);
|
||||
void view(const Arg *arg);
|
||||
static void view(const Arg *arg);
|
||||
static Client *wintoclient(Window w);
|
||||
static Monitor *wintomon(Window w);
|
||||
static int xerror(Display *dpy, XErrorEvent *ee);
|
||||
@@ -527,8 +527,12 @@ clientmessage(XEvent *e)
|
||||
if (c != selmon->sel && !c->isurgent)
|
||||
seturgent(c, 1);
|
||||
|
||||
const Arg tag = {.ui = c->tags}; /* switch to show highlighted window*/
|
||||
view(&tag);
|
||||
if( !ISVISIBLE(c) )
|
||||
{
|
||||
const Arg tag = {.ui = c->tags}; /* switch to show highlighted window */
|
||||
view(&tag);
|
||||
// Todo: c->tags can be multiple tags
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user