aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-07-14 10:06:49 +0200
committerPierre Ossman <ossman@cendio.se>2023-07-14 10:06:49 +0200
commit8f461b2d8942ee9a096835b25eb475a8d9d57b71 (patch)
tree4da3750cb3de12d30fcd0367d80a95ec077d75ab
parent6160457965973035a83292b4a3076f633cfb285e (diff)
downloadtigervnc-8f461b2d8942ee9a096835b25eb475a8d9d57b71.tar.gz
tigervnc-8f461b2d8942ee9a096835b25eb475a8d9d57b71.zip
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.
-rw-r--r--vncviewer/ServerDialog.cxx2
1 files changed, 2 insertions, 0 deletions
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;