py = e->xbutton.y;
pcon = frame_context(client, e->xbutton.window, px, py);
+ ob_debug("now the context is %d", pcon);
pcon = mouse_button_frame_context(pcon, e->xbutton.button,
e->xbutton.state);
}
case ButtonRelease:
+ ob_debug("hello i am a button %i %i", e->xbutton.button, pcon);
/* Wheel buttons don't draw because they are an instant click, so it
is a waste of resources to go drawing it.
if the user is doing an interactive thing, or has a menu open then
g_assert_not_reached();
/* keep the pointer bounded to the screen for move/resize */
- if (!grab_pointer(FALSE, TRUE, cur))
+ if (!grab_pointer(TRUE, TRUE, cur))
return;
if (!grab_keyboard()) {
ungrab_pointer();
ret = NULL;
for (i = 0; i < n; ++i)
- ret = append_string(ret, XGetAtomName(d, ((guint32*)val)[i]), FALSE);
+ ret = ((guint32*)val)[i] ? append_string(ret, XGetAtomName(d, ((guint32*)val)[i]), FALSE) : 0;
if (ret)
return g_string_free(ret, FALSE);
return NULL;