Ticket #49090: patch-imquartz.diff
File patch-imquartz.diff, 1.3 KB (added by stefan+macports@…, 9 years ago) |
---|
-
modules/input/imquartz.c
quartz_filter_keypress (GtkIMContext *context, 195 195 return FALSE; 196 196 197 197 nsview = gdk_quartz_window_get_nsview (qc->client_window); 198 if (GDK_IS_WINDOW (nsview)) 199 /* it gets GDK_WINDOW in some cases */ 200 return gtk_im_context_filter_keypress (qc->slave, event); 201 else 202 win = (GdkWindow *)[ (GdkQuartzView *)nsview gdkWindow]; 198 win = (GdkWindow *)[ (GdkQuartzView *)nsview gdkWindow]; 203 199 GTK_NOTE (MISC, g_print ("client_window: %p, win: %p, nsview: %p\n", 204 200 qc->client_window, win, nsview)); 205 201 … … discard_preedit (GtkIMContext *context) 251 247 if (!nsview) 252 248 return; 253 249 254 if (GDK_IS_WINDOW (nsview))255 return;256 257 250 /* reset any partial input for this NSView */ 258 251 [(GdkQuartzView *)nsview unmarkText]; 259 252 NSInputManager *currentInputManager = [NSInputManager currentInputManager]; … … quartz_set_cursor_location (GtkIMContext *context, GdkRectangle *area) 334 327 qc->cursor_rect->y = area->y + y; 335 328 336 329 nsview = gdk_quartz_window_get_nsview (qc->client_window); 337 if (GDK_IS_WINDOW (nsview))338 /* it returns GDK_WINDOW in some cases */339 return;340 330 341 331 win = (GdkWindow *)[ (GdkQuartzView*)nsview gdkWindow]; 342 332 g_object_set_data (G_OBJECT (win), GIC_CURSOR_RECT, qc->cursor_rect);