diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp index d5c2a3f22f..2c4ae20e3a 100644 --- a/Games/Minesweeper/main.cpp +++ b/Games/Minesweeper/main.cpp @@ -13,6 +13,7 @@ int main(int argc, char** argv) GApplication app(argc, argv); auto* window = new GWindow; + window->set_resizable(false); window->set_title("Minesweeper"); window->set_rect(100, 100, 139, 175); diff --git a/LibGUI/GWindow.h b/LibGUI/GWindow.h index e276ea6dbb..984f99a4bc 100644 --- a/LibGUI/GWindow.h +++ b/LibGUI/GWindow.h @@ -28,6 +28,9 @@ public: bool is_modal() const { return m_modal; } void set_modal(bool); + bool is_resizable() const { return m_resizable; } + void set_resizable(bool resizable) { m_resizable = resizable; } + void set_double_buffering_enabled(bool); void set_has_alpha_channel(bool); void set_opacity(float);