mirror of
https://github.com/wizbright/waybox.git
synced 2026-02-11 04:28:12 -05:00
Use stable wlroots, making things easier on everybody
This commit is contained in:
parent
f233ac4cc6
commit
fcb38fe44f
9 changed files with 71 additions and 24 deletions
|
|
@ -26,6 +26,9 @@ struct wb_view {
|
|||
struct wl_list link;
|
||||
struct wb_server *server;
|
||||
struct wlr_xdg_toplevel *xdg_toplevel;
|
||||
#if !WLR_CHECK_VERSION(0, 16, 0)
|
||||
struct wlr_xdg_surface *xdg_surface;
|
||||
#endif
|
||||
|
||||
struct wlr_xdg_toplevel_decoration_v1 *decoration;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <wlr/version.h>
|
||||
#define WLR_CHECK_VERSION(major, minor, micro) (WLR_VERSION_NUM >= ((major << 16) | (minor << 8) | (micro)))
|
||||
|
||||
#include <wlr/backend.h>
|
||||
#include <wlr/render/allocator.h>
|
||||
#include <wlr/render/wlr_renderer.h>
|
||||
|
|
@ -14,7 +17,9 @@
|
|||
#include <wlr/types/wlr_matrix.h>
|
||||
#include <wlr/types/wlr_gamma_control_v1.h>
|
||||
#include <wlr/types/wlr_output_layout.h>
|
||||
#if WLR_CHECK_VERSION(0, 16, 0)
|
||||
#include <wlr/types/wlr_subcompositor.h>
|
||||
#endif
|
||||
#include <wlr/types/wlr_xdg_shell.h>
|
||||
#include <wlr/util/log.h>
|
||||
|
||||
|
|
@ -42,7 +47,9 @@ struct wb_server {
|
|||
struct wlr_output_layout *output_layout;
|
||||
struct wlr_xdg_output_manager_v1 *output_manager;
|
||||
struct wlr_renderer *renderer;
|
||||
#if WLR_CHECK_VERSION(0, 16, 0)
|
||||
struct wlr_subcompositor *subcompositor;
|
||||
#endif
|
||||
|
||||
struct wb_config *config;
|
||||
char *config_file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue