ref: 99a6924ce4253c02ff0fffc67146da36efdde912
parent: 737ffa63cece7382369c4b8eaaa2906ba3bae259
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Sep 8 19:06:21 EDT 2022
update current desktop for windows and don't "move" them to the current desktop (makes no sense)
--- a/riow.c
+++ b/riow.c
@@ -104,8 +104,10 @@
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 @@
}
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;