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_Widget.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Fl_Widget.cxx') diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index 185e99b58..2289dcf0b 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -1,7 +1,7 @@ // // Base widget class for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2017 by Bill Spitzak and others. +// Copyright 1998-2022 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -131,10 +131,6 @@ Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) { parent_ = 0; if (Fl_Group::current()) Fl_Group::current()->add(this); - if (!fl_graphics_driver) { - // Make sure fl_graphics_driver is initialized. Important if we are called by a static initializer. - Fl_Display_Device::display_device(); - } } void Fl_Widget::resize(int X, int Y, int W, int H) { -- cgit v1.2.3