On a mouse action, make sure we get keyboard input.
I dropped this from gtk a while back because I couldn't see why it was
needed. I now see why.
The window managed might choose to move the focus elsewhere - e.g. when
a window appears. Use can get it back by leave/enter, but a simple
click should work too.
Signed-off-by: NeilBrown <neil@brown.name>
char mod[2+2+2+1];
char key[2+2+2+9+1+1];
+ xcb_set_input_focus(xd->conn, XCB_INPUT_FOCUS_POINTER_ROOT,
+ xd->win, XCB_CURRENT_TIME);
mod[0] = 0;
if (press) {
xd->motion_blocked = False;
#maybe GDK_2BUTTON_PRESS - don't want that.
return
edlib.time_start(edlib.TIME_KEY)
+ c.grab_focus()
self.unblock_motion()
x = int(event.x)
y = int(event.y)
def release(self, c, event):
edlib.time_start(edlib.TIME_KEY)
+ c.grab_focus()
x = int(event.x)
y = int(event.y)
s = ":Release-" + ("%d"%event.button)