From 8f461b2d8942ee9a096835b25eb475a8d9d57b71 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 14 Jul 2023 10:06:49 +0200 Subject: [PATCH] Fix correct background in Fl_Input_Choice Work around a bug in Fl_Input_Choice where it forgets to set the proper "input background" on some parts. --- vncviewer/ServerDialog.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vncviewer/ServerDialog.cxx b/vncviewer/ServerDialog.cxx index 144f31a7..6a766295 100644 --- a/vncviewer/ServerDialog.cxx +++ b/vncviewer/ServerDialog.cxx @@ -66,6 +66,8 @@ ServerDialog::ServerDialog() serverName = new Fl_Input_Choice(LBLLEFT(x, y, w() - OUTER_MARGIN*2, INPUT_HEIGHT, _("VNC server:"))); + // Bug fix for wrong background + serverName->color(FL_BACKGROUND2_COLOR); y += INPUT_HEIGHT + INNER_MARGIN; x2 = x; -- 2.39.5