i3 - improved tiling WM


Philippe Virouleau introduced a bug about the scratchpad behaviour on the i3-discuss mailing list. I was able to reproduce it. This patch solves that problem.

Patch status: superseded

Patch by Marcos Moyano

To apply this patch, use:
curl http://cr.i3wm.org/patch/113/raw.patch | git am

b/src/commands.c

15
@@ -1812,7 +1812,10 @@ void cmd_scratchpad_show(I3_CMD) {
16
     } else {
17
         TAILQ_FOREACH(current, &owindows, owindows) {
18
             DLOG("matching: %p / %s\n", current->con, current->con->name);
19
-            scratchpad_show(current->con);
20
+            /*The matched window should at least be floating.*/
21
+            if (current->con->floating >= FLOATING_AUTO_ON) {
22
+              scratchpad_show(current->con);
23
+            }
24
         }
25
     }
26