From 6475b0725028c10e56aea9e8e674b841c5560d32 Mon Sep 17 00:00:00 2001 From: Adam Fedor Date: Tue, 16 Apr 2002 03:47:03 +0000 Subject: [PATCH] XIM fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13472 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 11 +++++++++++ Source/x11/XGServerWindow.m | 4 ++-- Source/x11/XIMInputServer.m | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f4a86ca..7cfd69e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2002-04-15 Adam Fedor + + * Source/x11/XGServerWindow.m ([XGServer + -_addExposedRectangle::]): Use current server class + ([XGServer -flushwindowrect::]): Idem. + (Suggestion by alexander@malmberg.org) + + * Source/x11/XIMInputServer.m (-initWithDelegate:display:name:): + Use defaultCStringEncoding if UTF8 doesn't work. + (Patch from stoyan@on.com.ua). + 2002-04-14 Adam Fedor * Headers/x11/XGServerWindow.h: Add graphics driver protocol diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index 13737d0..2ab92c5 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -1983,7 +1983,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number, /* Temporary protocol until we standardize the backing buffer */ NSRect rect = NSMakeRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height); - [NSGraphicsContext handleExposeRect: rect + [[GSCurrentServer() class] handleExposeRect: rect forDriver: window->gdriver]; } else @@ -2056,7 +2056,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number, if ((window->gdriverProtocol & GDriverHandlesBacking)) { /* Temporary protocol until we standardize the backing buffer */ - [NSGraphicsContext handleExposeRect: rect + [[GSCurrentServer() class] handleExposeRect: rect forDriver: window->gdriver]; } else diff --git a/Source/x11/XIMInputServer.m b/Source/x11/XIMInputServer.m index ecde8cf..e36587c 100644 --- a/Source/x11/XIMInputServer.m +++ b/Source/x11/XIMInputServer.m @@ -92,7 +92,7 @@ #endif else { - encoding = NSISOLatin1StringEncoding; + encoding = [NSString defaultCStringEncoding]; } #if USE_XIM