From ec0ac46aa869143be91b194e400bf700be9fc558 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 20 Jun 2018 15:52:58 +0000 Subject: Move platform specific shortcut code to platform drivers. Tested on Windows and Linux (not tested on MacOS/Android). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12951 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/X11/Fl_X11_System_Driver.H | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/drivers/X11/Fl_X11_System_Driver.H') diff --git a/src/drivers/X11/Fl_X11_System_Driver.H b/src/drivers/X11/Fl_X11_System_Driver.H index 1f24ff511..b7d6e9ff7 100644 --- a/src/drivers/X11/Fl_X11_System_Driver.H +++ b/src/drivers/X11/Fl_X11_System_Driver.H @@ -4,7 +4,7 @@ // Definition of Posix system driver // for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2016 by Bill Spitzak and others. +// Copyright 2010-2018 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 @@ -24,7 +24,11 @@ class Fl_X11_System_Driver : public Fl_Posix_System_Driver { public: - Fl_X11_System_Driver() : Fl_Posix_System_Driver() {} + Fl_X11_System_Driver() : Fl_Posix_System_Driver() { + // X11 system driver does not use a key table + key_table = NULL; + key_table_size = 0; + } virtual void display_arg(const char *arg); virtual int XParseGeometry(const char*, int*, int*, unsigned int*, unsigned int*); virtual int clocale_printf(FILE *output, const char *format, va_list args); -- cgit v1.2.3