| 1 |
diff -up scim-bridge-0.4.15/client-gtk/scim-bridge-client-imcontext-gtk.c.fix-gdm scim-bridge-0.4.15/client-gtk/scim-bridge-client-imcontext-gtk.c
|
| 2 |
--- scim-bridge-0.4.15/client-gtk/scim-bridge-client-imcontext-gtk.c.fix-gdm 2007-06-23 20:58:40.000000000 +0800
|
| 3 |
+++ scim-bridge-0.4.15/client-gtk/scim-bridge-client-imcontext-gtk.c 2008-03-04 13:00:49.000000000 +0800
|
| 4 |
@@ -37,6 +37,8 @@
|
| 5 |
#include "scim-bridge-output.h"
|
| 6 |
#include "scim-bridge-string.h"
|
| 7 |
|
| 8 |
+#define SEND_EVENT_MASK 0x02
|
| 9 |
+
|
| 10 |
/* Typedef */
|
| 11 |
struct _ScimBridgeClientIMContext
|
| 12 |
{
|
| 13 |
@@ -202,7 +204,7 @@ static gboolean key_snooper (GtkWidget *
|
| 14 |
{
|
| 15 |
scim_bridge_pdebugln (7, "key_snooper ()");
|
| 16 |
|
| 17 |
- if (!event->send_event && scim_bridge_client_is_messenger_opened () && focused_imcontext != NULL) {
|
| 18 |
+ if (!(event->send_event & SEND_EVENT_MASK) && scim_bridge_client_is_messenger_opened () && focused_imcontext != NULL) {
|
| 19 |
if (focused_imcontext->client_window != NULL) {
|
| 20 |
int new_window_x;
|
| 21 |
int new_window_y;
|
| 22 |
@@ -558,7 +560,7 @@ void scim_bridge_client_imcontext_forwar
|
| 23 |
{
|
| 24 |
GdkEventKey gdk_event;
|
| 25 |
scim_bridge_key_event_bridge_to_gdk (&gdk_event, imcontext->client_window, key_event);
|
| 26 |
- gdk_event.send_event = TRUE;
|
| 27 |
+ gdk_event.send_event |= SEND_EVENT_MASK;
|
| 28 |
if (imcontext == focused_imcontext && focused_widget != NULL) {
|
| 29 |
const char *signal_name = NULL;
|
| 30 |
if (scim_bridge_key_event_is_pressed (key_event)) {
|
| 31 |
@@ -764,7 +766,7 @@ gboolean scim_bridge_client_imcontext_fi
|
| 32 |
|
| 33 |
ScimBridgeClientIMContext *imcontext = SCIM_BRIDGE_CLIENT_IMCONTEXT (context);
|
| 34 |
|
| 35 |
- if (!event->send_event && scim_bridge_client_is_messenger_opened () && imcontext != NULL && !key_snooper_used) {
|
| 36 |
+ if (!(event->send_event & SEND_EVENT_MASK) && scim_bridge_client_is_messenger_opened () && imcontext != NULL && !key_snooper_used) {
|
| 37 |
|
| 38 |
if (imcontext->client_window != NULL) {
|
| 39 |
int new_window_x;
|