Re: [hackers] [dwm][PATCH] Invert urgent border for window hint

From: Abdullah <abdullah_AT_abdullah.today>
Date: Mon, 2 Sep 2019 16:57:22 +0500

will check it once I'm free.

On 02/09, Ivan Tham wrote:
>Feature parity for tags with urgent client. Tags are inversed but not
>window border.
>
>Window border now uses SchemeNorm ColFg, same as tags but for window.
>
>Prior art: https://dwm.suckless.org/patches/focusurgent/
>---
> dwm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/dwm.c b/dwm.c
>index 4465af1..c07d7b2 100644
>--- a/dwm.c
>+++ b/dwm.c
>_AT_@ -2022,8 +2022,8 @@ updatewmhints(Client *c)
> if (c == selmon->sel && wmh->flags & XUrgencyHint) {
> wmh->flags &= ~XUrgencyHint;
> XSetWMHints(dpy, c->win, wmh);
>- } else
>- c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0;
>+ } else if ((c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0))
>+ XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColFg].pixel);
> if (wmh->flags & InputHint)
> c->neverfocus = !wmh->input;
> else
>--
>2.23.0
>
>


Abdullah

https://abdullah.today

C20F 2707 3025 2569 BAC5
534B 7820 6670 C19D 1580

Received on Mon Sep 02 2019 - 13:57:22 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 02 2019 - 14:36:24 CEST