vene fix notify window while its visible

This commit is contained in:
vrd
2026-07-30 11:54:49 +03:00
committed by Venelin Dechkov
parent e81536b695
commit 491e29fefa
3 changed files with 14 additions and 10 deletions
+7 -3
View File
@@ -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
}
}
}