Tiling: Fixed break out method
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Tue, 25 Nov 2014 12:32:43 +0000 (12:32 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 25 Nov 2014 12:32:43 +0000 (12:32 +0000)
commit8f85fe79df52c5e9c0de443f1306170125eaddd8
treec0f2be86aa3b629019dfa450440355c70abe87b0
parent077474adcbfac8207877fe18ca4401fd8cdcafc2
Tiling: Fixed break out method

Summary:
This fixes the case when par is NULL, this means we should insert a
parent node between the 2 nodes and root. (T1790)

Example:

Each Number is a Window,

12
Focus on 2

Press Win+Up should end up in this:

2
1

This patch also makes the bahavior for 2 windows more
consistent

12
Focus on 2

Pressing Win+Right,

21

It Will just swap the nodes,

This is the same behavior then in higher levels.

Reviewers: tasn

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1643
src/modules/tiling/window_tree.c