mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
Merge c542c69170 into 81246fc6dc
This commit is contained in:
commit
c0217ea55d
9 changed files with 500 additions and 2 deletions
|
|
@ -130,6 +130,12 @@ struct sway_server {
|
|||
struct wlr_ext_workspace_manager_v1 *workspace_manager_v1;
|
||||
struct wl_listener workspace_manager_v1_commit;
|
||||
|
||||
struct {
|
||||
char *dir;
|
||||
FILE *urandom;
|
||||
struct wl_listener new_session;
|
||||
} xdg_session_manager_v1;
|
||||
|
||||
struct wl_list pending_launcher_ctxs; // launcher_ctx::link
|
||||
|
||||
// The timeout for transactions, after which a transaction is applied
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ struct sway_view_impl {
|
|||
struct sway_view *ancestor);
|
||||
void (*close)(struct sway_view *view);
|
||||
void (*close_popups)(struct sway_view *view);
|
||||
void (*notify_state_update)(struct sway_view *view);
|
||||
void (*destroy)(struct sway_view *view);
|
||||
};
|
||||
|
||||
|
|
@ -116,6 +117,12 @@ struct sway_view {
|
|||
#endif
|
||||
};
|
||||
|
||||
struct {
|
||||
bool pending;
|
||||
char *workspace;
|
||||
bool floating;
|
||||
} session_restore;
|
||||
|
||||
struct {
|
||||
struct wl_signal unmap;
|
||||
} events;
|
||||
|
|
@ -134,6 +141,12 @@ struct sway_xdg_shell_view {
|
|||
struct wlr_scene_tree *image_capture_tree;
|
||||
char *tag;
|
||||
|
||||
struct {
|
||||
struct sway_xdg_session_v1 *session;
|
||||
char *name;
|
||||
struct wl_list link; // sway_xdg_session_v1.toplevels
|
||||
} xdg_session_v1;
|
||||
|
||||
struct wl_listener commit;
|
||||
struct wl_listener request_move;
|
||||
struct wl_listener request_resize;
|
||||
|
|
@ -369,4 +382,6 @@ bool view_can_tear(struct sway_view *view);
|
|||
|
||||
void xdg_toplevel_tag_manager_v1_handle_set_tag(struct wl_listener *listener, void *data);
|
||||
|
||||
void view_notify_state_update(struct sway_view *view);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
12
include/sway/xdg_session_management_v1.h
Normal file
12
include/sway/xdg_session_management_v1.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#ifndef _SWAY_XDG_SESSION_MANAGEMENT_V1_H
|
||||
#define _SWAY_XDG_SESSION_MANAGEMENT_V1_H
|
||||
|
||||
struct sway_xdg_session_v1;
|
||||
|
||||
bool init_xdg_session_management_v1(struct sway_server *server);
|
||||
void finish_xdg_session_management_v1(struct sway_server *server);
|
||||
|
||||
void notify_xdg_session_management_v1_toplevel_initial_configure(struct sway_xdg_shell_view *view);
|
||||
void notify_xdg_session_management_v1_toplevel_update(struct sway_xdg_shell_view *view);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue