Base implement

This commit is contained in:
dmitry 2020-08-02 04:24:24 +03:00
parent 5845c6e3c0
commit f897995759
7 changed files with 47 additions and 0 deletions

View file

@ -5,6 +5,7 @@
#include <wayland-server-core.h>
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_workspace_v1.h>
#include "config.h"
#include "sway/tree/node.h"
#include "sway/tree/view.h"
@ -57,6 +58,8 @@ struct sway_output {
uint32_t refresh_nsec;
int max_render_time; // In milliseconds
struct wl_event_source *repaint_timer;
struct wlr_workspace_group_handle_v1 *workspace_group;
};
struct sway_output *output_create(struct wlr_output *wlr_output);

View file

@ -9,6 +9,7 @@
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_input_method_v2.h>
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
#include <wlr/types/wlr_workspace_v1.h>
#include <wlr/types/wlr_layer_shell_v1.h>
#include <wlr/types/wlr_output_management_v1.h>
#include <wlr/types/wlr_output_power_management_v1.h>
@ -84,6 +85,7 @@ struct sway_server {
struct wlr_input_method_manager_v2 *input_method;
struct wlr_text_input_manager_v3 *text_input;
struct wlr_foreign_toplevel_manager_v1 *foreign_toplevel_manager;
struct wlr_workspace_manager_v1 *workspace_manager;
size_t txn_timeout_ms;
list_t *transactions;

View file

@ -43,6 +43,9 @@ struct sway_workspace {
bool urgent;
struct sway_workspace_state current;
struct wlr_workspace_handle_v1 *workspace_handle;
struct wl_listener *workspace_activate_request;
};
struct workspace_config *workspace_find_config(const char *ws_name);