From 0aabe419f68f18ac51ed162bc06f3079cd464fa3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 27 Oct 2018 16:39:11 +0200 Subject: Draw nodes behind login box --- include/Window.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/Window.hpp b/include/Window.hpp index 236affa..4c67a68 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -4,6 +4,7 @@ #include "LoginWindow.hpp" #include #include +#include #include #include #include @@ -19,8 +20,15 @@ namespace dchat private: bool drawBackground(const Cairo::RefPtr &cairo); private: + class OverlayDrawable : public Gtk::Overlay + { + public: + void draw(const Cairo::RefPtr &cairo) { Gtk::Overlay::draw(cairo); } + }; + std::unique_ptr database; std::mutex databaseCallbackMutex; + OverlayDrawable overlay; Gtk::Stack stack; LoginWindow loginWindow; ChatWindow chatWindow; -- cgit v1.2.3