mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Merge remote-tracking branch 'upstream/master' into atomic
This commit is contained in:
commit
a2fbb20a61
16 changed files with 193 additions and 74 deletions
|
|
@ -32,6 +32,10 @@ struct sway_output {
|
|||
struct wl_list link;
|
||||
|
||||
pid_t bg_pid;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
};
|
||||
|
||||
void output_damage_whole(struct sway_output *output);
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
#include <wlr/types/wlr_xdg_shell.h>
|
||||
#include <wlr/render/wlr_renderer.h>
|
||||
// TODO WLR: make Xwayland optional
|
||||
#include <wlr/xwayland.h>
|
||||
#include "list.h"
|
||||
#include "sway/xwayland.h"
|
||||
|
||||
struct sway_server {
|
||||
struct wl_display *wl_display;
|
||||
|
|
@ -38,12 +38,9 @@ struct sway_server {
|
|||
struct wlr_xdg_shell *xdg_shell;
|
||||
struct wl_listener xdg_shell_surface;
|
||||
|
||||
struct wlr_xwayland *xwayland;
|
||||
struct wlr_xcursor_manager *xcursor_manager;
|
||||
struct sway_xwayland xwayland;
|
||||
struct wl_listener xwayland_surface;
|
||||
|
||||
struct wlr_wl_shell *wl_shell;
|
||||
struct wl_listener wl_shell_surface;
|
||||
struct wl_listener xwayland_ready;
|
||||
|
||||
bool debug_txn_timings;
|
||||
|
||||
|
|
|
|||
25
include/sway/xwayland.h
Normal file
25
include/sway/xwayland.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef SWAY_XWAYLAND_H
|
||||
#define SWAY_XWAYLAND_H
|
||||
|
||||
#include <wlr/xwayland.h>
|
||||
#include <xcb/xproto.h>
|
||||
|
||||
enum atom_name {
|
||||
NET_WM_WINDOW_TYPE_DIALOG,
|
||||
NET_WM_WINDOW_TYPE_UTILITY,
|
||||
NET_WM_WINDOW_TYPE_TOOLBAR,
|
||||
NET_WM_WINDOW_TYPE_SPLASH,
|
||||
NET_WM_STATE_MODAL,
|
||||
ATOM_LAST,
|
||||
};
|
||||
|
||||
struct sway_xwayland {
|
||||
struct wlr_xwayland *wlr_xwayland;
|
||||
struct wlr_xcursor_manager *xcursor_manager;
|
||||
|
||||
xcb_atom_t atoms[ATOM_LAST];
|
||||
};
|
||||
|
||||
void handle_xwayland_ready(struct wl_listener *listener, void *data);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue