Skip to content

Commit

Permalink
Fixed new-output notifications in wlroots 0.6.0-0.8.1 with DRM backend
Browse files Browse the repository at this point in the history
  • Loading branch information
keithbowes committed Feb 26, 2020
1 parent 9b94ae7 commit 13826a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
project(
'waybox',
'c',
version: '0.0.2',
version: '0.0.2.1',
license: 'MIT',
meson_version: '>=0.43.0',
default_options: [
Expand Down
5 changes: 5 additions & 0 deletions waybox/output.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <wlr/version.h>

#include "waybox/output.h"

struct render_data {
Expand Down Expand Up @@ -126,9 +128,12 @@ void new_output_notify(struct wl_listener *listener, void *data) {
wlr_output_set_mode(wlr_output, mode);
wlr_output_enable(wlr_output, true);

#if WLR_VERSION_NUM > 2049
// wlroots 0.9.0+
if (!wlr_output_commit(wlr_output)) {
return;
}
#endif
}

struct wb_output *output = calloc(1, sizeof(struct wb_output));
Expand Down
1 change: 0 additions & 1 deletion waybox/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "waybox/xdg_shell.h"

bool init_wb(struct wb_server* server) {

// create display
server->wl_display = wl_display_create();
if (server->wl_display == NULL) {
Expand Down

0 comments on commit 13826a5

Please sign in to comment.