mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-31 22:25:28 -04:00
react to wlroots changes
This commit is contained in:
parent
8fa589a132
commit
4eb4536b28
5 changed files with 48 additions and 8 deletions
|
|
@ -116,5 +116,12 @@ void new_output_notify(struct wl_listener *listener, void *data) {
|
|||
* display, which Wayland clients can see to find out information about the
|
||||
* output (such as DPI, scale factor, manufacturer, etc).
|
||||
*/
|
||||
#if WLR_CHECK_VERSION(0, 17, 0)
|
||||
if (!wlr_output_layout_add_auto(server->output_layout, wlr_output)) {
|
||||
wlr_log(WLR_ERROR, "%s", _("Could not add an output layout."));
|
||||
return;
|
||||
}
|
||||
#else
|
||||
wlr_output_layout_add_auto(server->output_layout, wlr_output);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue