diff --git a/src/Window.cpp b/src/Window.cpp index 0518a0d..00896e7 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -154,6 +154,10 @@ void Window::run(bool block) { m_rect.set_height(e.xconfigure.height); // if we have a main widget, we are going to have to resize it as well if (m_main_widget) { + m_main_widget->rect().set_max_height(m_rect.height()); + m_main_widget->rect().set_max_width(m_rect.width()); + m_main_widget->rect().set_min_height(m_rect.height()); + m_main_widget->rect().set_min_width(m_rect.width()); m_main_widget->rect().set_width(m_rect.width()); m_main_widget->rect().set_height(m_rect.height()); }