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, 
    195195    return FALSE;
    196196
    197197  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];
    203199  GTK_NOTE (MISC, g_print ("client_window: %p, win: %p, nsview: %p\n",
    204200                           qc->client_window, win, nsview));
    205201
    discard_preedit (GtkIMContext *context) 
    251247  if (!nsview)
    252248    return;
    253249
    254   if (GDK_IS_WINDOW (nsview))
    255     return;
    256 
    257250  /* reset any partial input for this NSView */
    258251  [(GdkQuartzView *)nsview unmarkText];
    259252  NSInputManager *currentInputManager = [NSInputManager currentInputManager];
    quartz_set_cursor_location (GtkIMContext *context, GdkRectangle *area) 
    334327  qc->cursor_rect->y = area->y + y;
    335328
    336329  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;
    340330
    341331  win = (GdkWindow *)[ (GdkQuartzView*)nsview gdkWindow];
    342332  g_object_set_data (G_OBJECT (win), GIC_CURSOR_RECT, qc->cursor_rect);