From 4b945a3086011b6a59b5aef434cdbe8cda96c2de Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 8 Oct 2022 17:59:06 +0200 Subject: Wayland/X11 hybrid: use "bool fl_disable_wayland;" declaration. --- src/Fl_Text_Display.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Fl_Text_Display.cxx') diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index ed1214ae5..deaf46608 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -1,5 +1,5 @@ // -// Copyright 2001-2021 by Bill Spitzak and others. +// Copyright 2001-2022 by Bill Spitzak and others. // Original code Copyright Mark Edel. Permission to distribute under // the LGPL for the FLTK library granted by Mark Edel. // @@ -486,6 +486,8 @@ void Fl_Text_Display::resize(int X, int Y, int W, int H) { */ void Fl_Text_Display::recalc_display() { if (!buffer()) return; + // Make sure the display is opened. + Fl_Display_Device::display_device(); // did we have scrollbars initially? unsigned int hscrollbarvisible = mHScrollBar->visible(); unsigned int vscrollbarvisible = mVScrollBar->visible(); -- cgit v1.2.3