aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-25 13:31:37 +0100
committerdec05eba <dec05eba@protonmail.com>2018-11-25 13:31:40 +0100
commit67e4dc28ec8853c9973cb5d430e2a99fda12e700 (patch)
treeb1267aea8d26e41b29a41882d2be14fa30894f3e
parenta446095f4507d641c0aaa2adb52be0d0a2a19867 (diff)
Temporary workaround for crash
-rwxr-xr-xrun.sh4
-rw-r--r--src/Window.cpp7
2 files changed, 3 insertions, 8 deletions
diff --git a/run.sh b/run.sh
index 39d61ff..b78f4e8 100755
--- a/run.sh
+++ b/run.sh
@@ -14,6 +14,4 @@ if [ ! -f ~/.local/share/fonts/Lato-Bold.ttf ]; then
fc-cache
fi
platform=`sibs platform`
-set GDK_SYNCHRONIZE
-export LD_PRELOAD=/lib/libSegFault.so
-env GTK_THEME="css/style.css" ./sibs-build/$platform/debug/dchat --g-fatal-warnings
+env GTK_THEME="css/style.css" ./sibs-build/$platform/debug/dchat
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::milliseconds>(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;
}