mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
x11 backend: add wlr_output_is_x11
This commit is contained in:
parent
3e228b0b2a
commit
f83b16bc17
3 changed files with 6 additions and 1 deletions
|
@ -401,3 +401,7 @@ static struct wlr_output_impl output_impl = {
|
||||||
.make_current = output_make_current,
|
.make_current = output_make_current,
|
||||||
.swap_buffers = output_swap_buffers,
|
.swap_buffers = output_swap_buffers,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bool wlr_output_is_x11(struct wlr_output *wlr_output) {
|
||||||
|
return wlr_output->impl == &output_impl;
|
||||||
|
}
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include <X11/Xlib-xcb.h>
|
#include <X11/Xlib-xcb.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/render/egl.h>
|
#include <wlr/render/egl.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
|
||||||
#include <wlr/types/wlr_input_device.h>
|
#include <wlr/types/wlr_input_device.h>
|
||||||
|
|
||||||
struct wlr_x11_backend;
|
struct wlr_x11_backend;
|
||||||
|
|
|
@ -4,10 +4,12 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/backend.h>
|
#include <wlr/backend.h>
|
||||||
|
#include <wlr/types/wlr_output.h>
|
||||||
|
|
||||||
struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
||||||
const char *x11_display);
|
const char *x11_display);
|
||||||
|
|
||||||
bool wlr_backend_is_x11(struct wlr_backend *backend);
|
bool wlr_backend_is_x11(struct wlr_backend *backend);
|
||||||
|
bool wlr_output_is_x11(struct wlr_output *output);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue