summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-12-08 20:38:38 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-12-08 20:38:38 +0100
commit942f4fc9d515e6bfd001a73da143e8e08d781244 (patch)
treecdbb81cb2e42fdfe02a90d82f70f9d4f01eb0120
parent6af9977ec9da65061c48b0279a2a07e32fac9ec0 (diff)
make sure window is resizable with fltk-1.3.3
A change introduced in fltk-1.3.3 makes it necessary to set the resizable of the window before any focus change is triggered. Otherwise the Dillo window cannot be resized in certain situations.
-rw-r--r--src/uicmd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 4f737255..e09bbf60 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -551,10 +551,10 @@ BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh,
win->box(FL_NO_BOX);
CustTabs *DilloTabs = new CustTabs(ww, wh, 16);
win->end();
+ win->resizable(DilloTabs->wizard());
int focus = 1;
new_bw = UIcmd_tab_new(DilloTabs, old_ui, focus);
- win->resizable(DilloTabs->wizard());
win->show();
if (old_bw == NULL && prefs.xpos >= 0 && prefs.ypos >= 0) {