sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dwm-ipc-v1.5.2-to-v1.5.3.diff (854B)


      1 From c76d3cc2f68961b05c6c1a509c24e71ab7473c47 Mon Sep 17 00:00:00 2001
      2 From: mihirlad55 <mihirlad55@gmail.com>
      3 Date: Sun, 26 Jul 2020 03:51:16 +0000
      4 Subject: [PATCH] Update from v1.5.2 to v1.5.3
      5 
      6 - Fix a major bug where events would not be raised for any monitors after the
      7   first monitor if the first monitor did not have a selected client (i.e. was
      8   viewing an unoccupied tag)
      9 ---
     10  ipc.c | 2 +-
     11  1 file changed, 1 insertion(+), 1 deletion(-)
     12 
     13 diff --git a/ipc.c b/ipc.c
     14 index 1d435dc..e527e23 100644
     15 --- a/ipc.c
     16 +++ b/ipc.c
     17 @@ -1124,7 +1124,7 @@ ipc_send_events(Monitor *mons, Monitor **lastselmon, Monitor *selmon)
     18      }
     19  
     20      Client *sel = m->sel;
     21 -    if (!sel) return;
     22 +    if (!sel) continue;
     23      ClientState *o = &m->sel->prevstate;
     24      ClientState n = {.oldstate = sel->oldstate,
     25                       .isfixed = sel->isfixed,
     26 -- 
     27 2.27.0
     28