From 924289a40c2f112772e0b44325ba2297b2e07a35 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 10 Feb 2020 13:38:26 +0100 Subject: X11: Fix X Input Methods (XIM) (STR 3502, 3192) Revert commit 958d912ffcdb using 'XSetLocaleModifiers("@im=");' which was incorrect (STR 3192). Apply fix for STR 3502, using 'XSetLocaleModifiers("");' which appears to be the correct solution for using X Input Methods (XIM). This has also been backported to FLTK 1.3.6 in branch-1.3, see commit 219ae5e455e7943ffb35fdd5edbe13dcc6955423. --- src/Fl_x.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 54aa36283..9a8c813e5 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -3,17 +3,17 @@ // // X specific code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2018 by Bill Spitzak and others. +// Copyright 1998-2020 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 // file is missing or damaged, see the license at: // -// http://www.fltk.org/COPYING.php +// https://www.fltk.org/COPYING.php // // Please report all bugs and problems on the following page: // -// http://www.fltk.org/str.php +// https://www.fltk.org/str.php // #if !defined(FL_DOXYGEN) @@ -608,7 +608,7 @@ void Fl_X11_Screen_Driver::open_display_platform() { if (fl_display) return; setlocale(LC_CTYPE, ""); - XSetLocaleModifiers("@im="); + XSetLocaleModifiers(""); XSetIOErrorHandler(io_error_handler); XSetErrorHandler(xerror_handler); @@ -1374,7 +1374,7 @@ int fl_handle(const XEvent& thisevent) xim_im = XOpenIM(fl_display, NULL, NULL, NULL); if (!xim_im) { /* XIM server has crashed */ - XSetLocaleModifiers("@im="); + XSetLocaleModifiers(""); fl_xim_im = NULL; fl_init_xim(); } else { -- cgit v1.2.3