From a0671a8a69bda2d6d8fe053ef203787d4df84bd1 Mon Sep 17 00:00:00 2001 From: ross Date: Tue, 15 May 2007 09:32:12 +0000 Subject: [PATCH] 2007-05-15 Ross Burton * gtk-im/im-protocol.c: Send the event with a mask specified. I'm not entirely sure why, but everyone else does it. * src/matchbox-keyboard-ui.c: Listen for events with the same mask. Also redraw the keyboard when it is shown. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1539 b067294f-1dea-0310-9683-c47a78595994 --- ChangeLog | 10 ++++++++++ gtk-im/im-protocol.c | 4 ++-- src/matchbox-keyboard-ui.c | 3 ++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f0540f0..4dd7e0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-05-15 Ross Burton + + * gtk-im/im-protocol.c: + Send the event with a mask specified. I'm not entirely sure why, + but everyone else does it. + + * src/matchbox-keyboard-ui.c: + Listen for events with the same mask. Also redraw the keyboard + when it is shown. + 2007-05-14 Matthew Allum * gtk-im/im-protocol.c: (protocol_send_event): diff --git a/gtk-im/im-protocol.c b/gtk-im/im-protocol.c index 717d4fd..eb738bc 100644 --- a/gtk-im/im-protocol.c +++ b/gtk-im/im-protocol.c @@ -24,8 +24,8 @@ protocol_send_event (InvokerEvent e) XSendEvent (GDK_DISPLAY (), gdk_x11_get_default_root_xwindow (), - False, - NoEventMask, + False, + SubstructureRedirectMask | SubstructureNotifyMask, &event); XSync (GDK_DISPLAY(), False); diff --git a/src/matchbox-keyboard-ui.c b/src/matchbox-keyboard-ui.c index 8988d3b..077fa80 100644 --- a/src/matchbox-keyboard-ui.c +++ b/src/matchbox-keyboard-ui.c @@ -568,6 +568,7 @@ void mb_kbd_ui_show(MBKeyboardUI *ui) { XMapWindow(ui->xdpy, ui->xwin); + mb_kbd_ui_redraw (ui); } void @@ -669,7 +670,7 @@ mb_kbd_ui_resources_create(MBKeyboardUI *ui) CWOverrideRedirect|CWEventMask, &win_attr); - XSelectInput (ui->xdpy, ui->xwin_root, PropertyChangeMask); + XSelectInput (ui->xdpy, ui->xwin_root, SubstructureNotifyMask); wm_hints = XAllocWMHints();