i3 - improved tiling WM


Set scratchpad_state to changed if floating.

Patch status: needinfo

Patch by Marcus Carlsson

Long description:

If the window is floating when moved to scratchpad, set the state to
changed so that it isn't resized and centered when it is shown.

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

b/src/scratchpad.c

15
@@ -49,6 +49,9 @@ void scratchpad_move(Con *con) {
16
         con = con->parent;
17
     } else {
18
         con = maybe_floating_con;
19
+        if (con->scratchpad_state == SCRATCHPAD_NONE) {
20
+            con->scratchpad_state = SCRATCHPAD_CHANGED;
21
+        }
22
     }
23
 
24
     /* 2: Send the window to the __i3_scratch workspace, mainting its