From 0406b7c1c30b9fa66feaebe03c5138255e789477 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 14 Jun 2016 14:05:50 +0200 Subject: [PATCH] Workaround for split window positioning --- src/notebook.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/notebook.cc b/src/notebook.cc index 850c6e4..0ab9407 100644 --- a/src/notebook.cc +++ b/src/notebook.cc @@ -384,9 +384,10 @@ void Notebook::toggle_split() { show_all(); //Make sure the position is correct //TODO: report bug to gtk if it is not fixed in gtk3.22 - //while(g_main_context_pending(NULL)) //Caused freeze on OS X sometimes - //g_main_context_iteration(NULL, false); - set_position(get_width()/2); + Glib::signal_timeout().connect([this] { + set_position(get_width()/2); + return false; + }, 50); } else { for(size_t c=size()-1;c!=static_cast(-1);--c) {