Browse Source

Fixed freeze that sometimes happened at least on OS X

merge-requests/365/head
eidheim 10 years ago
parent
commit
94ddcf56b6
  1. 4
      src/notebook.cc

4
src/notebook.cc

@ -384,8 +384,8 @@ void Notebook::toggle_split() {
show_all(); show_all();
//Make sure the position is correct //Make sure the position is correct
//TODO: report bug to gtk if it is not fixed in gtk3.22 //TODO: report bug to gtk if it is not fixed in gtk3.22
while(g_main_context_pending(NULL)) //while(g_main_context_pending(NULL)) //Caused freeze on OS X sometimes
g_main_context_iteration(NULL, false); //g_main_context_iteration(NULL, false);
set_position(get_width()/2); set_position(get_width()/2);
} }
else { else {

Loading…
Cancel
Save