struct watcher {
int active; /* 0 == inactive, else index into respective vector */
+ bool is_active () { return active; }
+
watcher () : active (0) { }
};
keyboard->register_done ();
#endif
-#ifdef HAVE_SCROLLBARS
- if (OPTION (Opt_scrollBar))
- scrollBar.setIdle (); /* set existence for size calculations */
-#endif
-
#if ENABLE_PERL
if (!rs[Rs_perl_ext_1])
rs[Rs_perl_ext_1] = "default";
}
#endif
+#ifdef HAVE_SCROLLBARS
+ if (OPTION (Opt_scrollBar))
+ scrollBar.setIdle (); /* set existence for size calculations */
+#endif
+
pty = rxvt_new_ptytty ();
create_windows (argc, argv);
else
THIS->options &= ~optval;
- switch (optval)
- {
- case Opt_skipBuiltinGlyphs:
- THIS->set_fonts ();
- THIS->scr_remap_chars ();
- THIS->scr_touch (true);
- THIS->want_refresh = 1;
- break;
+ if (THIS->check_ev.is_active ()) // avoid doing this before START
+ switch (optval)
+ {
+ case Opt_skipBuiltinGlyphs:
+ THIS->set_fonts ();
+ THIS->scr_remap_chars ();
+ THIS->scr_touch (true);
+ THIS->want_refresh = 1;
+ break;
- case Opt_cursorUnderline:
- THIS->want_refresh = 1;
- break;
+ case Opt_cursorUnderline:
+ THIS->want_refresh = 1;
+ break;
# case Opt_scrollBar_floating:
# case Opt_scrollBar_right:
# THIS->resize_all_windows (THIS->width, THIS->height, 1);
# break;
- }
+ }
}
}
OUTPUT: