mirror of
https://github.com/labwc/labwc.git
synced 2026-02-22 01:40:25 -05:00
Check the return value of wlr_output_layout_get() for NULL
wlr_output_layout_get() seems to return NULL for disabled outputs. Fixes: #174
This commit is contained in:
parent
46bd0d549f
commit
2ce961a0bd
2 changed files with 8 additions and 0 deletions
|
|
@ -526,6 +526,10 @@ render_osd(struct output *output, pixman_region32_t *damage,
|
|||
struct wlr_output_layout_output *ol_output;
|
||||
wl_list_for_each(o, &server->outputs, link) {
|
||||
ol_output = wlr_output_layout_get(layout, o->wlr_output);
|
||||
if (!ol_output) {
|
||||
continue;
|
||||
}
|
||||
|
||||
struct wlr_box box = {
|
||||
.x = ol_output->x + o->wlr_output->width
|
||||
/ o->wlr_output->scale / 2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue