Bugfix: Don’t use ->old_parent for floating cons (Thanks eelvex)

Instead, we attach them to their workspace when toggling back to tiling. This
makes more sense; afterall, floating clients are always directly below a
CT_WORKSPACE container.
This commit is contained in:
Michael Stapelberg
2011-01-08 00:44:03 +01:00
parent 0ea15ed962
commit 83f6e445a0
3 changed files with 1 additions and 30 deletions

View File

@ -275,8 +275,6 @@ struct Con {
enum { CT_ROOT = 0, CT_OUTPUT = 1, CT_CON = 2, CT_FLOATING_CON = 3, CT_WORKSPACE = 4 } type;
orientation_t orientation;
struct Con *parent;
/* parent before setting it to floating */
struct Con *old_parent;
struct Rect rect;
struct Rect window_rect;