Do not resize/reposition floating containers when moving them to scratchpad
Patch status: needinfo
Patch by jj
To apply this patch, use:
curl http://cr.i3wm.org/patch/240/raw.patch | git am
b/src/scratchpad.c
14 |
@@ -66,7 +66,13 @@ void scratchpad_move(Con *con) { |
15 |
* adjusted in size according to what the user specifies. */ |
16 |
if (con->scratchpad_state == SCRATCHPAD_NONE) { |
17 |
DLOG("This window was never used as a scratchpad before.\n"); |
18 |
- con->scratchpad_state = SCRATCHPAD_FRESH; |
19 |
+ if (con == maybe_floating_con) { |
20 |
+ DLOG("It was in floating mode before, set scratchpad state to changed.\n"); |
21 |
+ con->scratchpad_state = SCRATCHPAD_CHANGED; |
22 |
+ } else { |
23 |
+ DLOG("It was in tiling mode before, set scratchpad state to fresh.\n"); |
24 |
+ con->scratchpad_state = SCRATCHPAD_FRESH; |
25 |
+ } |
26 |
} |
27 |
} |
28 |
|