Skip to content

Commit

Permalink
2007-05-14 Matthew Allum <[email protected]>
Browse files Browse the repository at this point in the history
        * gtk-im/im-protocol.c: (protocol_send_event):
        * src/matchbox-keyboard-ui.c: (mb_kbd_ui_resources_create):
        Hopefully fix XEvent IPC between remote and gtk-im.

git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1538 b067294f-1dea-0310-9683-c47a78595994
  • Loading branch information
mallum committed May 14, 2007
1 parent be4426b commit 5f10197
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2007-05-14 Matthew Allum <[email protected]>

* gtk-im/im-protocol.c: (protocol_send_event):
* src/matchbox-keyboard-ui.c: (mb_kbd_ui_resources_create):
Hopefully fix XEvent IPC between remote and gtk-im.

2007-05-14 Ross Burton <[email protected]>

* gtk-im/im-context.[ch]:
Expand Down
8 changes: 7 additions & 1 deletion gtk-im/im-protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ protocol_send_event (InvokerEvent e)
memset (&event, 0, sizeof (XEvent));

event.xclient.type = ClientMessage;
event.xclient.window = gdk_x11_get_default_root_xwindow ();
event.xclient.message_type = gdk_x11_get_xatom_by_name ("_MB_IM_INVOKER_COMMAND");
event.xclient.format = 32;
event.xclient.data.l[0] = e;

gdk_error_trap_push ();

XSendEvent (GDK_DISPLAY (), gdk_x11_get_default_root_xwindow (), False, 0, &event);
XSendEvent (GDK_DISPLAY (),
gdk_x11_get_default_root_xwindow (),
False,
NoEventMask,
&event);

XSync (GDK_DISPLAY(), False);

if ((xerror = gdk_error_trap_pop ())) {
Expand Down
1 change: 1 addition & 0 deletions src/matchbox-keyboard-ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ mb_kbd_ui_resources_create(MBKeyboardUI *ui)
CWOverrideRedirect|CWEventMask,
&win_attr);

XSelectInput (ui->xdpy, ui->xwin_root, PropertyChangeMask);

wm_hints = XAllocWMHints();

Expand Down

0 comments on commit 5f10197

Please sign in to comment.