diff options
author | corvid <corvid@lavabit.com> | 2011-02-15 19:02:54 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-02-15 19:02:54 +0000 |
commit | fd4669bd343070fa3ecebb5c0bc6a2f965a68346 (patch) | |
tree | 3db16960e821157c9f1cc1578eab4fe817c2650a | |
parent | ea3111c826c7892fd6fa3c2c15999e7500d381b2 (diff) |
make_current()
Here are the gory fl_text_extents()-related details:
http://www.fltk.org/str.php?L2550
-rw-r--r-- | src/dillo.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dillo.cc b/src/dillo.cc index 86f0a57b..3811d1d2 100644 --- a/src/dillo.cc +++ b/src/dillo.cc @@ -355,6 +355,12 @@ PORT1.3 // Create a new UI/bw pair BrowserWindow *bw = a_UIcmd_browser_window_new(0, 0, xid, NULL); + /* We need this so that fl_text_extents() in dw/fltkplatform.cc can + * work when FLTK is configured without XFT and Dillo is opening + * immediately-available URLs from the cmdline (e.g. about:splash). + */ + ((Fl_Widget *)bw->ui)->window()->make_current(); + /* Proxy authentication */ if (prefs.http_proxyuser && !a_Http_proxy_auth()) { const char *passwd = a_UIcmd_get_passwd(prefs.http_proxyuser); |