This commit is contained in:
Anakael 2022-05-31 23:13:11 +02:00 committed by GitHub
commit 7f19e10713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 73 additions and 0 deletions

View file

@ -4,9 +4,11 @@
#include <unistd.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_ext_workspace_v1.h>
#include "config.h"
#include "sway/tree/node.h"
#include "sway/tree/view.h"
#include <sway/tree/workspace.h>
struct sway_server;
struct sway_container;
@ -55,6 +57,8 @@ struct sway_output {
uint32_t refresh_nsec;
int max_render_time; // In milliseconds
struct wl_event_source *repaint_timer;
struct wlr_ext_workspace_group_handle_v1 *workspace_group;
};
struct sway_output *output_create(struct wlr_output *wlr_output);

View file

@ -10,6 +10,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_ext_workspace_v1.h>
#include <wlr/types/wlr_drm_lease_v1.h>
#include <wlr/types/wlr_layer_shell_v1.h>
#include <wlr/types/wlr_output_management_v1.h>
@ -108,6 +109,8 @@ 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_ext_workspace_manager_v1 *workspace_manager;
struct wl_listener workspace_manager_commit_request;
struct wlr_xdg_activation_v1 *xdg_activation_v1;
struct wl_listener xdg_activation_v1_request_activate;

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);