From 1dbd445027e115e850391ca4897bb9bfca7e483b Mon Sep 17 00:00:00 2001 From: alexei-zebra Date: Fri, 9 Oct 2026 01:21:24 +0300 Subject: [PATCH] give Window::getTitle a default implementation Keeps the interface non-breaking for other window backends: the decoration height and hovered button already have defaults, and now so does the title. --- src/window/Window.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/window/Window.hpp b/src/window/Window.hpp index a41c53535..0109faf7b 100644 --- a/src/window/Window.hpp +++ b/src/window/Window.hpp @@ -44,7 +44,10 @@ public: virtual void setTitle(const std::string& title) = 0; - virtual const std::string& getTitle() const = 0; + virtual const std::string& getTitle() const { + static const std::string empty; + return empty; + } virtual int getDecorationHeight() const { return 0;