Time event_curtime = CurrentTime;
Time event_last_user_time = CurrentTime;
Time client_swoon = CurrentTime;
-/*! The serial of the current X event */
+extern int button;
+
+/*! The serial of the current X event */
static gulong event_curserial;
static gboolean focus_left_screen = FALSE;
/*! A list of ObSerialRanges which are to be ignored for mouse enter events */
{
event_handle_user_input(client, e);
}
+ /* If we have grabbed the mouse actively, I think this is how
+ to check it? */
+ else if (button)
+ event_handle_user_input(NULL, e);
}
}
else if (e->type == KeyPress || e->type == KeyRelease ||
to send it to other applications */
static gboolean replay_pointer_needed;
+guint button;
+
ObFrameContext mouse_button_frame_context(ObFrameContext context,
guint button,
guint state)
void mouse_event(ObClient *client, XEvent *e)
{
static Time ltime;
- static guint button = 0, state = 0, lbutton = 0;
+ static guint state = 0, lbutton = 0;
static Window lwindow = None;
static gint px, py, pwx = -1, pwy = -1;