diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-18 11:22:02 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-18 11:22:02 -0500 |
commit | 733993a651c71f7e2198d505960d6bbd31e0e107 (patch) | |
tree | e51732c5872b624e73355f9e5b3f762101f3cd0d /include | |
parent | 0c8491f7d0c735299a25f0ab929f5d1e0866b929 (diff) | |
download | sway-733993a651c71f7e2198d505960d6bbd31e0e107.tar.xz |
Move everything to sway/old/
Diffstat (limited to 'include')
-rw-r--r-- | include/sway.h | 6 | ||||
-rw-r--r-- | include/sway/handlers.h | 11 | ||||
-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.h | 36 | ||||
-rw-r--r-- | include/sway/old/workspace.h (renamed from include/sway/workspace.h) | 0 | ||||
-rw-r--r-- | include/sway/output.h | 22 |
16 files changed, 37 insertions, 46 deletions
diff --git a/include/sway.h b/include/sway.h deleted file mode 100644 index b5cfb668..00000000 --- a/include/sway.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef _SWAY_SWAY_H -#define _SWAY_SWAY_H - -void sway_terminate(int exit_code); - -#endif 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 @@ -#ifndef _SWAY_HANDLERS_H -#define _SWAY_HANDLERS_H -#include "container.h" -#include <stdbool.h> -#include <wlc/wlc.h> - -void register_wlc_handlers(); - -extern uint32_t keys_pressed[32]; - -#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 @@ #ifndef _SWAY_IPC_SERVER_H #define _SWAY_IPC_SERVER_H - -#include <wlc/wlc.h> - #include "container.h" #include "config.h" #include "ipc.h" @@ -33,9 +30,4 @@ void ipc_event_modifier(uint32_t modifier, const char *state); void ipc_event_binding_keyboard(struct sway_binding *sb); const char *swayc_type_string(enum swayc_types type); -/** - * Send pixel data to registered clients. - */ -void ipc_get_pixels(wlc_handle output); - #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 @@ +#ifndef _SWAY_OUTPUT_H +#define _SWAY_OUTPUT_H +#include <time.h> +#include <wayland-server.h> +#include <wlr/types/wlr_output.h> +#include "container.h" +#include "focus.h" + +struct sway_server; + +struct sway_output { + struct wlr_output *wlr_output; + struct wl_listener frame; + struct sway_server *server; + struct timespec last_frame; +}; + +// Position is absolute coordinates on the edge where the adjacent output +// should be searched for. +swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos); +swayc_t *swayc_opposite_output(enum movement_direction dir, const struct wlc_point *abs_pos); +swayc_t *swayc_adjacent_output(swayc_t *output, enum movement_direction dir, const struct wlc_point *abs_pos, bool pick_closest); + +// Place absolute coordinates for given container into given wlc_point. +void get_absolute_position(swayc_t *container, struct wlc_point *point); + +// Place absolute coordinates for the center point of given container into +// given wlc_point. +void get_absolute_center_position(swayc_t *container, struct wlc_point *point); + +// stable sort workspaces on this output +void sort_workspaces(swayc_t *output); + +void output_get_scaled_size(wlc_handle handle, struct wlc_size *size); + +#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 @@ #include <time.h> #include <wayland-server.h> #include <wlr/types/wlr_output.h> -#include "container.h" -#include "focus.h" struct sway_server; struct sway_output { struct wlr_output *wlr_output; - struct wl_listener frame; struct sway_server *server; struct timespec last_frame; + struct wl_listener frame; }; -// Position is absolute coordinates on the edge where the adjacent output -// should be searched for. -swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos); -swayc_t *swayc_opposite_output(enum movement_direction dir, const struct wlc_point *abs_pos); -swayc_t *swayc_adjacent_output(swayc_t *output, enum movement_direction dir, const struct wlc_point *abs_pos, bool pick_closest); - -// Place absolute coordinates for given container into given wlc_point. -void get_absolute_position(swayc_t *container, struct wlc_point *point); - -// Place absolute coordinates for the center point of given container into -// given wlc_point. -void get_absolute_center_position(swayc_t *container, struct wlc_point *point); - -// stable sort workspaces on this output -void sort_workspaces(swayc_t *output); - -void output_get_scaled_size(wlc_handle handle, struct wlc_size *size); - #endif |