mirror of
https://github.com/wizbright/waybox.git
synced 2025-11-02 09:01:42 -05:00
Require wlroots 0.9.0+
This commit is contained in:
parent
99f50dd19a
commit
9435ebbfad
2 changed files with 1 additions and 6 deletions
|
|
@ -31,7 +31,7 @@ add_project_arguments('-DWL_HIDE_DEPRECATED', language: 'c')
|
||||||
inc_dir = include_directories('include')
|
inc_dir = include_directories('include')
|
||||||
|
|
||||||
pixman = dependency('pixman-1')
|
pixman = dependency('pixman-1')
|
||||||
wlroots = dependency('wlroots', version: '>=0.6.0')
|
wlroots = dependency('wlroots', version: '>=0.9.0')
|
||||||
wayland_server = dependency('wayland-server')
|
wayland_server = dependency('wayland-server')
|
||||||
wayland_client = dependency('wayland-client')
|
wayland_client = dependency('wayland-client')
|
||||||
wayland_protos = dependency('wayland-protocols', version: '>=1.12')
|
wayland_protos = dependency('wayland-protocols', version: '>=1.12')
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
#include <wlr/version.h>
|
|
||||||
|
|
||||||
#include "waybox/output.h"
|
#include "waybox/output.h"
|
||||||
|
|
||||||
struct render_data {
|
struct render_data {
|
||||||
|
|
@ -127,12 +125,9 @@ void new_output_notify(struct wl_listener *listener, void *data) {
|
||||||
wlr_output_set_mode(wlr_output, mode);
|
wlr_output_set_mode(wlr_output, mode);
|
||||||
wlr_output_enable(wlr_output, true);
|
wlr_output_enable(wlr_output, true);
|
||||||
|
|
||||||
#if WLR_VERSION_NUM > 2049
|
|
||||||
// wlroots 0.9.0+
|
|
||||||
if (!wlr_output_commit(wlr_output)) {
|
if (!wlr_output_commit(wlr_output)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wb_output *output = calloc(1, sizeof(struct wb_output));
|
struct wb_output *output = calloc(1, sizeof(struct wb_output));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue