From 67e4dc28ec8853c9973cb5d430e2a99fda12e700 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 25 Nov 2018 13:31:37 +0100 Subject: Temporary workaround for crash --- src/Window.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Window.cpp b/src/Window.cpp index 6aa50ee..4c4aab6 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -169,7 +169,7 @@ namespace dchat } } prevTimeMillis = std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count() - 5000; - drawBackgroundConnection = signal_draw().connect(sigc::mem_fun(*this, &Window::drawBackground)); + //drawBackgroundConnection = signal_draw().connect(sigc::mem_fun(*this, &Window::drawBackground)); //set_size_request(640, 480); //set_app_paintable(true); } @@ -270,10 +270,7 @@ namespace dchat //cairo->paint(); */ - Gtk::Allocation alloc = overlay.get_allocation(); - // For some reason gtk sometimes needs time to allocate the overlay, and it freezes the application if you do not wait for it - if(!alloc.has_zero_area()) - overlay.draw(cairo); + overlay.draw(cairo); queue_draw(); return true; } -- cgit v1.2.3