[sawfish] EV_CODE_MOUSE_UP >> EV_CODE_MOUSE_OFF just a naming change. Event was Button?-Off, but enum was _UP
- From: Christopher Bratusek <chrisb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sawfish] EV_CODE_MOUSE_UP >> EV_CODE_MOUSE_OFF just a naming change. Event was Button?-Off, but enum was _UP
- Date: Sat, 2 Oct 2010 18:58:10 +0000 (UTC)
commit 60983e2fae18957fe55a85909c739a1ddae008f3
Author: Christopher Roy Bratusek <zanghar freenet de>
Date: Sat Oct 2 20:57:29 2010 +0200
EV_CODE_MOUSE_UP >> EV_CODE_MOUSE_OFF
just a naming change. Event was Button?-Off, but enum was _UP
src/keys.c | 15 ++++++++-------
src/keys.h | 6 +++---
2 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/keys.c b/src/keys.c
index 700da04..bcc6d3c 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -243,15 +243,15 @@ translate_event(unsigned long *code, unsigned long *mods, XEvent *xev)
switch (click_count)
{
case 2:
- *code = EV_CODE_MOUSE_UP2;
+ *code = EV_CODE_MOUSE_OFF2;
break;
case 3:
- *code = EV_CODE_MOUSE_UP3;
+ *code = EV_CODE_MOUSE_OFF3;
break;
default:
- *code = EV_CODE_MOUSE_UP1;
+ *code = EV_CODE_MOUSE_OFF1;
}
button:
@@ -701,12 +701,13 @@ static struct key_def default_codes[] = {
{ "Click1", EV_TYPE_MOUSE, EV_CODE_MOUSE_CLICK1 },
{ "Click2", EV_TYPE_MOUSE, EV_CODE_MOUSE_CLICK2 },
{ "Click3", EV_TYPE_MOUSE, EV_CODE_MOUSE_CLICK3 },
- { "Off", EV_TYPE_MOUSE, EV_CODE_MOUSE_UP1 },
- { "Off1", EV_TYPE_MOUSE, EV_CODE_MOUSE_UP1 },
- { "Off2", EV_TYPE_MOUSE, EV_CODE_MOUSE_UP2 },
- { "Off3", EV_TYPE_MOUSE, EV_CODE_MOUSE_UP3 },
+ { "Off", EV_TYPE_MOUSE, EV_CODE_MOUSE_OFF1 },
+ { "Off1", EV_TYPE_MOUSE, EV_CODE_MOUSE_OFF1 },
+ { "Off2", EV_TYPE_MOUSE, EV_CODE_MOUSE_OFF2 },
+ { "Off3", EV_TYPE_MOUSE, EV_CODE_MOUSE_OFF3 },
{ "Move", EV_TYPE_MOUSE, EV_CODE_MOUSE_MOVE },
+ /* XXX why SPC and Space? */
{ "SPC", EV_TYPE_KEY, XK_space },
{ "Space", EV_TYPE_KEY, XK_space },
{ "TAB", EV_TYPE_KEY, XK_Tab },
diff --git a/src/keys.h b/src/keys.h
index 97ea3c2..b291411 100644
--- a/src/keys.h
+++ b/src/keys.h
@@ -36,10 +36,10 @@ enum {
EV_CODE_MOUSE_CLICK1 = 1,
EV_CODE_MOUSE_CLICK2,
EV_CODE_MOUSE_MOVE,
- EV_CODE_MOUSE_UP1,
+ EV_CODE_MOUSE_OFF1,
EV_CODE_MOUSE_CLICK3,
- EV_CODE_MOUSE_UP2,
- EV_CODE_MOUSE_UP3
+ EV_CODE_MOUSE_OFF2,
+ EV_CODE_MOUSE_OFF3
};
/* The low 16 bits of the MODS is the standard X modifier mask. Bits
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]