mirror of
https://github.com/wizbright/waybox.git
synced 2025-11-01 22:58:42 -04:00
Updated for wlroots 0.15.0
This commit is contained in:
parent
309ccd2faf
commit
87c32d58ab
8 changed files with 36 additions and 13 deletions
|
|
@ -124,6 +124,10 @@ void new_output_notify(struct wl_listener *listener, void *data) {
|
|||
struct wlr_output *wlr_output = data;
|
||||
wlr_log(WLR_INFO, "%s: %s", _("New output device detected"), wlr_output->name);
|
||||
|
||||
/* Configures the output created by the backend to use our allocator
|
||||
* and our renderer */
|
||||
wlr_output_init_render(wlr_output, server->allocator, server->renderer);
|
||||
|
||||
if (!wl_list_empty(&wlr_output->modes)) {
|
||||
struct wlr_output_mode *mode = wlr_output_preferred_mode(wlr_output);
|
||||
wlr_output_set_mode(wlr_output, mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue