mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(Bar): add a warning about minimum height
This commit is contained in:
@ -110,7 +110,9 @@ void waybar::Bar::layerSurfaceHandleConfigure(void* data,
|
||||
|
||||
int dummy_width, min_height;
|
||||
o->window.get_size(dummy_width, min_height);
|
||||
if (o->height_ < min_height) {
|
||||
if (o->height_ < static_cast<uint32_t>(min_height)) {
|
||||
std::cout << fmt::format("Requested height: {} exceeds the minimum \
|
||||
height: {} required by the modules", o->height_, min_height) << std::endl;
|
||||
o->height_ = min_height;
|
||||
}
|
||||
std::cout << fmt::format(
|
||||
|
Reference in New Issue
Block a user