swayfx/include
Drew DeVault 57954a2b24 Implement move [left|right|up|down]
The exact semantics of this command are complicated. I'll describe each
test scenario as s-expressions. Everything assumes L_HORIZ if not
specified, but if you rotate everything 90 degrees the same test cases
hold.

```
(container (view a) (view b focus) (view c))
-> move left
(container (view b focus) (view a) (view c))

(container (view a) (view b focus) (view c))
-> move right
(container (view a) (view c) (view b focus))

(container L_VERT (view a))
(container L_HORIZ
  (view b) (view c focus))
-> move up
(container L_VERT
  (view a) (view c focus))
(container L_HORIZ (view b))

(workspace
  (view a) (view b focus) (view c))
-> move up
(workspace [split direction flipped]
  (view b focus)
  (container (view a) (view c)))

(workspace
  (view a) (view b focus) (view c))
-> move down
(workspace [split direction flipped]
  (container (view a) (view c))
  (view b focus)))

Note: outputs use wlr_output_layout instead of assuming that i+/-1 is
the next output in the move direction.

(root
  (output X11-1
    (workspace 1))
  (output X11-2
    (workspace 1 (view a focus) (view b)))))
-> move left
(root
  (output X11-1
    (workspace 1 (view a focus)))
  (output X11-2
    (workspace 1 (view b)))))

(root
  (output X11-1
    (workspace 1
      (container (view a) (view b)))
  (output X11-2
    (workspace 1 (view c focus)))))
-> move left
(root
  (output X11-1
    (workspace 1
      (container (view a) (view b))
      (view c focus)))
  (output X11-2
    (workspace 1)))
```
2018-04-06 09:43:52 -04:00
..
sway Implement move [left|right|up|down] 2018-04-06 09:43:52 -04:00
swaybar Handle output removal on swaybar 2018-04-05 16:04:30 -04:00
swaygrab implement "focused container" feature for swaygrab 2016-09-18 16:41:08 -05:00
swaylock Add hidpi support to swaylock 2018-04-04 18:47:48 -04:00
background-image.h Initial swaylock port 2018-04-04 18:47:48 -04:00
cairo.h Address review comments 2018-03-28 14:43:23 -04:00
ipc-client.h swaybar: move core functionality to state.c 2016-01-24 14:22:19 +01:00
ipc.h Remove IPC_GET_PIXELS 2017-11-22 21:47:22 -05:00
list.h Added "layout promote" command. 2016-12-29 20:31:30 +01:00
log.h update log.h for latest wlr 2018-02-24 12:49:42 -05:00
meson.build Address review comments 2018-03-28 14:43:23 -04:00
pango.h Start port of swaybar to layer shell 2018-03-29 22:11:08 -04:00
pool-buffer.h Handle output removal on swaybar 2018-04-05 16:04:30 -04:00
readline.h Print /proc/<pid>/maps on segfault 2016-01-28 07:57:07 -05:00
stringop.h Add quotes to multiword arguments. 2016-01-25 00:14:13 +01:00
unicode.h Add password buffer, refactor rendering/surfaces 2018-04-04 18:47:48 -04:00
util.h Rework get_clipboard implementation 2017-07-07 21:51:34 +02:00