X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;h=f63d2663bd2c35b0dcc0b305f7008f587d1b647b;hb=15802d87b18b8a7a741c2e8d80ab6e5f79ada13e;hp=6d532518d57e7f962161d356d9e422cf906694e7;hpb=38bef0a38bf907a54c193ab063b4830788398edc;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 6d532518..f63d2663 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -38,15 +38,9 @@ typedef struct { GSList *actions[OB_NUM_MOUSE_ACTIONS]; /* lists of Action pointers */ } ObMouseBinding; -#define FRAME_CONTEXT(co, cl) ((cl && cl->type != OB_CLIENT_TYPE_DESKTOP) ? \ - co == OB_FRAME_CONTEXT_FRAME : FALSE) -#define CLIENT_CONTEXT(co, cl) ((cl && cl->type == OB_CLIENT_TYPE_DESKTOP) ? \ - co == OB_FRAME_CONTEXT_DESKTOP : \ - co == OB_FRAME_CONTEXT_CLIENT) - /* Array of GSList*s of ObMouseBinding*s. */ static GSList *bound_contexts[OB_FRAME_NUM_CONTEXTS]; -/* TRUE when we have a grab on the pointer and need to reply the pointer event +/* TRUE when we have a grab on the pointer and need to replay the pointer event to send it to other applications */ static gboolean replay_pointer_needed; @@ -376,13 +370,13 @@ gboolean mouse_bind(const gchar *buttonstr, const gchar *contextstr, GSList *it; if (!translate_button(buttonstr, &state, &button)) { - g_message(_("Invalid button '%s' in mouse binding"), buttonstr); + g_message(_("Invalid button \"%s\" in mouse binding"), buttonstr); return FALSE; } context = frame_context_from_string(contextstr); if (!context) { - g_message(_("Invalid context '%s' in mouse binding"), contextstr); + g_message(_("Invalid context \"%s\" in mouse binding"), contextstr); return FALSE; }