cage/xwayland.h
Devin J. Pohly 2f4801aea0 Fix initial position of X11 override-redirects
Presumably this fixes #228.  The position of the scene node for XWayland
override-redirect windows was never being set.
2023-10-16 15:57:14 -05:00

23 lines
591 B
C

#ifndef CG_XWAYLAND_H
#define CG_XWAYLAND_H
#include <wayland-server-core.h>
#include <wlr/xwayland.h>
#include "view.h"
struct cg_xwayland_view {
struct cg_view view;
struct wlr_xwayland_surface *xwayland_surface;
struct wl_listener destroy;
struct wl_listener unmap;
struct wl_listener map;
struct wl_listener request_fullscreen;
struct wl_listener set_geometry;
};
struct cg_xwayland_view *xwayland_view_from_view(struct cg_view *view);
bool xwayland_view_should_manage(struct cg_view *view);
void handle_xwayland_surface_new(struct wl_listener *listener, void *data);
#endif