aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-27 16:39:11 +0200
committerdec05eba <dec05eba@protonmail.com>2018-10-27 16:40:19 +0200
commit0aabe419f68f18ac51ed162bc06f3079cd464fa3 (patch)
treef9ebd17ce22ccf12efef1adf89aa1e355bd9aea3 /include
parent0293ec09e3485beb37490eb8a78297befbf9e1a2 (diff)
Draw nodes behind login box
Diffstat (limited to 'include')
-rw-r--r--include/Window.hpp8
1 files changed, 8 insertions, 0 deletions
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 <gtkmm/window.h>
#include <gtkmm/stack.h>
+#include <gtkmm/overlay.h>
#include <odhtdb/Database.hpp>
#include <mutex>
#include <random>
@@ -19,8 +20,15 @@ namespace dchat
private:
bool drawBackground(const Cairo::RefPtr<Cairo::Context> &cairo);
private:
+ class OverlayDrawable : public Gtk::Overlay
+ {
+ public:
+ void draw(const Cairo::RefPtr<Cairo::Context> &cairo) { Gtk::Overlay::draw(cairo); }
+ };
+
std::unique_ptr<odhtdb::Database> database;
std::mutex databaseCallbackMutex;
+ OverlayDrawable overlay;
Gtk::Stack stack;
LoginWindow loginWindow;
ChatWindow chatWindow;