summaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-29 23:34:14 -0400
committerLibravatar GitHub <noreply@github.com>2018-03-29 23:34:14 -0400
commit472e81f35d689d67cda241acafda91c688d61046 (patch)
treeb8b52173a9791e3b13a0316ab9d316a80a6adc20 /sway/tree/view.c
parentMerge pull request #1647 from acrisci/refactor-tree (diff)
parentRevert "Refactor tree" (diff)
downloadsway-472e81f35d689d67cda241acafda91c688d61046.tar.gz
sway-472e81f35d689d67cda241acafda91c688d61046.tar.zst
sway-472e81f35d689d67cda241acafda91c688d61046.zip
Merge pull request #1653 from swaywm/revert-1647-refactor-tree
Revert "Refactor tree"
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index d5325c31..9499adca 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -1,8 +1,8 @@
1#include <wayland-server.h> 1#include <wayland-server.h>
2#include <wlr/types/wlr_output_layout.h> 2#include <wlr/types/wlr_output_layout.h>
3#include "sway/tree/container.h" 3#include "sway/container.h"
4#include "sway/tree/layout.h" 4#include "sway/layout.h"
5#include "sway/tree/view.h" 5#include "sway/view.h"
6 6
7const char *view_get_title(struct sway_view *view) { 7const char *view_get_title(struct sway_view *view) {
8 if (view->iface.get_prop) { 8 if (view->iface.get_prop) {
@@ -45,7 +45,6 @@ void view_set_size(struct sway_view *view, int width, int height) {
45 } 45 }
46} 46}
47 47
48// TODO make view coordinates in layout coordinates
49void view_set_position(struct sway_view *view, double ox, double oy) { 48void view_set_position(struct sway_view *view, double ox, double oy) {
50 if (view->iface.set_position) { 49 if (view->iface.set_position) {
51 struct wlr_box box = { 50 struct wlr_box box = {