summaryrefslogtreecommitdiffstats
path: root/include/sway
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-11-18 11:22:02 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-11-18 11:22:02 -0500
commit733993a651c71f7e2198d505960d6bbd31e0e107 (patch)
treee51732c5872b624e73355f9e5b3f762101f3cd0d /include/sway
parentInitial (awful) pass on xdg shell support (diff)
downloadsway-733993a651c71f7e2198d505960d6bbd31e0e107.tar.gz
sway-733993a651c71f7e2198d505960d6bbd31e0e107.tar.zst
sway-733993a651c71f7e2198d505960d6bbd31e0e107.zip
Move everything to sway/old/
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/handlers.h11
-rw-r--r--include/sway/old/border.h (renamed from include/sway/border.h)0
-rw-r--r--include/sway/old/commands.h (renamed from include/sway/commands.h)0
-rw-r--r--include/sway/old/config.h (renamed from include/sway/config.h)0
-rw-r--r--include/sway/old/container.h (renamed from include/sway/container.h)0
-rw-r--r--include/sway/old/criteria.h (renamed from include/sway/criteria.h)0
-rw-r--r--include/sway/old/focus.h (renamed from include/sway/focus.h)0
-rw-r--r--include/sway/old/input.h (renamed from include/sway/input.h)0
-rw-r--r--include/sway/old/input_state.h (renamed from include/sway/input_state.h)0
-rw-r--r--include/sway/old/ipc-json.h (renamed from include/sway/ipc-json.h)0
-rw-r--r--include/sway/old/ipc-server.h (renamed from include/sway/ipc-server.h)8
-rw-r--r--include/sway/old/layout.h (renamed from include/sway/layout.h)0
-rw-r--r--include/sway/old/output.h36
-rw-r--r--include/sway/old/workspace.h (renamed from include/sway/workspace.h)0
-rw-r--r--include/sway/output.h22
15 files changed, 37 insertions, 40 deletions
diff --git a/include/sway/handlers.h b/include/sway/handlers.h
deleted file mode 100644
index 956b98f4..00000000
--- a/include/sway/handlers.h
+++ /dev/null
@@ -1,11 +0,0 @@
1#ifndef _SWAY_HANDLERS_H
2#define _SWAY_HANDLERS_H
3#include "container.h"
4#include <stdbool.h>
5#include <wlc/wlc.h>
6
7void register_wlc_handlers();
8
9extern uint32_t keys_pressed[32];
10
11#endif
diff --git a/include/sway/border.h b/include/sway/old/border.h
index c30c9da3..c30c9da3 100644
--- a/include/sway/border.h
+++ b/include/sway/old/border.h
diff --git a/include/sway/commands.h b/include/sway/old/commands.h
index 660da2c2..660da2c2 100644
--- a/include/sway/commands.h
+++ b/include/sway/old/commands.h
diff --git a/include/sway/config.h b/include/sway/old/config.h
index a05d5ede..a05d5ede 100644
--- a/include/sway/config.h
+++ b/include/sway/old/config.h
diff --git a/include/sway/container.h b/include/sway/old/container.h
index d46ffa63..d46ffa63 100644
--- a/include/sway/container.h
+++ b/include/sway/old/container.h
diff --git a/include/sway/criteria.h b/include/sway/old/criteria.h
index c5ed9857..c5ed9857 100644
--- a/include/sway/criteria.h
+++ b/include/sway/old/criteria.h
diff --git a/include/sway/focus.h b/include/sway/old/focus.h
index 652cdccc..652cdccc 100644
--- a/include/sway/focus.h
+++ b/include/sway/old/focus.h
diff --git a/include/sway/input.h b/include/sway/old/input.h
index eb92e470..eb92e470 100644
--- a/include/sway/input.h
+++ b/include/sway/old/input.h
diff --git a/include/sway/input_state.h b/include/sway/old/input_state.h
index fd5a3a25..fd5a3a25 100644
--- a/include/sway/input_state.h
+++ b/include/sway/old/input_state.h
diff --git a/include/sway/ipc-json.h b/include/sway/old/ipc-json.h
index 3a5af0f5..3a5af0f5 100644
--- a/include/sway/ipc-json.h
+++ b/include/sway/old/ipc-json.h
diff --git a/include/sway/ipc-server.h b/include/sway/old/ipc-server.h
index 1d199134..0cc26d99 100644
--- a/include/sway/ipc-server.h
+++ b/include/sway/old/ipc-server.h
@@ -1,8 +1,5 @@
1#ifndef _SWAY_IPC_SERVER_H 1#ifndef _SWAY_IPC_SERVER_H
2#define _SWAY_IPC_SERVER_H 2#define _SWAY_IPC_SERVER_H
3
4#include <wlc/wlc.h>
5
6#include "container.h" 3#include "container.h"
7#include "config.h" 4#include "config.h"
8#include "ipc.h" 5#include "ipc.h"
@@ -33,9 +30,4 @@ void ipc_event_modifier(uint32_t modifier, const char *state);
33void ipc_event_binding_keyboard(struct sway_binding *sb); 30void ipc_event_binding_keyboard(struct sway_binding *sb);
34const char *swayc_type_string(enum swayc_types type); 31const char *swayc_type_string(enum swayc_types type);
35 32
36/**
37 * Send pixel data to registered clients.
38 */
39void ipc_get_pixels(wlc_handle output);
40
41#endif 33#endif
diff --git a/include/sway/layout.h b/include/sway/old/layout.h
index f0791588..f0791588 100644
--- a/include/sway/layout.h
+++ b/include/sway/old/layout.h
diff --git a/include/sway/old/output.h b/include/sway/old/output.h
new file mode 100644
index 00000000..2a222238
--- /dev/null
+++ b/include/sway/old/output.h
@@ -0,0 +1,36 @@
1#ifndef _SWAY_OUTPUT_H
2#define _SWAY_OUTPUT_H
3#include <time.h>
4#include <wayland-server.h>
5#include <wlr/types/wlr_output.h>
6#include "container.h"
7#include "focus.h"
8
9struct sway_server;
10
11struct sway_output {
12 struct wlr_output *wlr_output;
13 struct wl_listener frame;
14 struct sway_server *server;
15 struct timespec last_frame;
16};
17
18// Position is absolute coordinates on the edge where the adjacent output
19// should be searched for.
20swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos);
21swayc_t *swayc_opposite_output(enum movement_direction dir, const struct wlc_point *abs_pos);
22swayc_t *swayc_adjacent_output(swayc_t *output, enum movement_direction dir, const struct wlc_point *abs_pos, bool pick_closest);
23
24// Place absolute coordinates for given container into given wlc_point.
25void get_absolute_position(swayc_t *container, struct wlc_point *point);
26
27// Place absolute coordinates for the center point of given container into
28// given wlc_point.
29void get_absolute_center_position(swayc_t *container, struct wlc_point *point);
30
31// stable sort workspaces on this output
32void sort_workspaces(swayc_t *output);
33
34void output_get_scaled_size(wlc_handle handle, struct wlc_size *size);
35
36#endif
diff --git a/include/sway/workspace.h b/include/sway/old/workspace.h
index c268fafa..c268fafa 100644
--- a/include/sway/workspace.h
+++ b/include/sway/old/workspace.h
diff --git a/include/sway/output.h b/include/sway/output.h
index 2a222238..ffc6708d 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -3,34 +3,14 @@
3#include <time.h> 3#include <time.h>
4#include <wayland-server.h> 4#include <wayland-server.h>
5#include <wlr/types/wlr_output.h> 5#include <wlr/types/wlr_output.h>
6#include "container.h"
7#include "focus.h"
8 6
9struct sway_server; 7struct sway_server;
10 8
11struct sway_output { 9struct sway_output {
12 struct wlr_output *wlr_output; 10 struct wlr_output *wlr_output;
13 struct wl_listener frame;
14 struct sway_server *server; 11 struct sway_server *server;
15 struct timespec last_frame; 12 struct timespec last_frame;
13 struct wl_listener frame;
16}; 14};
17 15
18// Position is absolute coordinates on the edge where the adjacent output
19// should be searched for.
20swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos);
21swayc_t *swayc_opposite_output(enum movement_direction dir, const struct wlc_point *abs_pos);
22swayc_t *swayc_adjacent_output(swayc_t *output, enum movement_direction dir, const struct wlc_point *abs_pos, bool pick_closest);
23
24// Place absolute coordinates for given container into given wlc_point.
25void get_absolute_position(swayc_t *container, struct wlc_point *point);
26
27// Place absolute coordinates for the center point of given container into
28// given wlc_point.
29void get_absolute_center_position(swayc_t *container, struct wlc_point *point);
30
31// stable sort workspaces on this output
32void sort_workspaces(swayc_t *output);
33
34void output_get_scaled_size(wlc_handle handle, struct wlc_size *size);
35
36#endif 16#endif