From 99a6924ce4253c02ff0fffc67146da36efdde912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Thu, 8 Sep 2022 23:06:21 +0000 Subject: [PATCH] update current desktop for windows and don't "move" them to the current desktop (makes no sense) --- riow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/riow.c b/riow.c index ad7444a..0174633 100644 --- a/riow.c +++ b/riow.c @@ -104,8 +104,10 @@ wsupdate(void) if(strcmp(t[k], "current") == 0){ w->flags |= Fcurrent; wcur = w; + w->vd = vd; }else if(strcmp(t[k], "visible") == 0){ w->flags |= Fvisible; + w->vd = vd; } } @@ -210,7 +212,7 @@ vdaction(int nvd) } vd = nvd; fprint(3, "%d\n", vd); - }else if(mod == (Mmod4 | Mshift) && wcur != nil){ + }else if(mod == (Mmod4 | Mshift) && wcur != nil && wcur->vd != nvd){ if((f = wwctl(wcur->id, OWRITE)) >= 0){ fprint(f, "hide"); wcur->vd = nvd; -- 2.45.2