forked from external/yambar
bar/wayland: fail when we can't find the specified monitor
This commit is contained in:
parent
5d6df44a79
commit
18e9d67d77
1 changed files with 6 additions and 0 deletions
|
@ -595,6 +595,12 @@ setup(struct bar *_bar)
|
||||||
backend->monitor = mon;
|
backend->monitor = mon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (backend->monitor == NULL) {
|
||||||
|
LOG_ERR("failed to find the specified monitor: %s",
|
||||||
|
bar->monitor != NULL ? bar->monitor : "default");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
backend->surface = wl_compositor_create_surface(backend->compositor);
|
backend->surface = wl_compositor_create_surface(backend->compositor);
|
||||||
if (backend->surface == NULL) {
|
if (backend->surface == NULL) {
|
||||||
LOG_ERR("failed to create panel surface");
|
LOG_ERR("failed to create panel surface");
|
||||||
|
|
Loading…
Add table
Reference in a new issue