mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 12:35:41 +02:00
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;
|
||||
}
|
||||
|
||||
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);
|
||||
if (backend->surface == NULL) {
|
||||
LOG_ERR("failed to create panel surface");
|
||||
|
|
Loading…
Add table
Reference in a new issue