diff --git a/src/bar.cpp b/src/bar.cpp index 5500875..4f28a36 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -201,7 +201,7 @@ void Bar::renderTags() tag.state & TagState::Active ? colorActive : colorInactive, tag.state & TagState::Urgent); renderComponent(tag.component); - auto indicators = std::min(tag.numClients, _bufs->height/2); + auto indicators = std::min(tag.numClients, static_cast(_bufs->height/2)); for (auto ind = 0; ind < indicators; ind++) { auto w = ind == tag.focusedClient ? 7 : 1; cairo_move_to(_painter, tag.component.x, ind*2+0.5); diff --git a/src/shm_buffer.hpp b/src/shm_buffer.hpp index 217d2b6..4b41644 100644 --- a/src/shm_buffer.hpp +++ b/src/shm_buffer.hpp @@ -36,7 +36,7 @@ class ShmBuffer { int _current {0}; MemoryMapping _mapping; public: - int width, height, stride; + uint32_t width, height, stride; explicit ShmBuffer(int width, int height, wl_shm_format format); uint8_t* data();