aboutsummaryrefslogtreecommitdiff
path: root/include/Window.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Window.hpp')
-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;