static void mouse_button_callback( GtkWidget *widget,GdkEventButton *event, gpointer data) { int v; switch (event->button) { case 1: v = GPOINTER_TO_INT(data); #if 1 if (cb_sele_by_idx) cb_sele_by_idx(v); force_preedit_shift(); #else send_fake_key_eve(pho_selkey[v]); #endif break; } }
void fake_shift() { send_fake_key_eve(XK_Shift_L); }
void force_preedit_shift() { send_fake_key_eve(XK_Shift_L); force_preedit=1; }