summaryrefslogtreecommitdiff
path: root/src/keybindings.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2003-05-21 03:45:58 +0000
committerHavoc Pennington <hp@src.gnome.org>2003-05-21 03:45:58 +0000
commit1620fd5408a72fe4c919314ef6800f744cb45fdf (patch)
tree1f167f79ba113112b4ea377c0a9b54b06bd8f094 /src/keybindings.c
parent1d692936e05b533f248a19747c2fe0b0890bba14 (diff)
downloadmetacity-1620fd5408a72fe4c919314ef6800f744cb45fdf.tar.gz
the mask display->ignored_modifier_mask wasn't being bound, due to "<"
2003-05-20 Havoc Pennington <hp@pobox.com> * src/keybindings.c (meta_change_keygrab): the mask display->ignored_modifier_mask wasn't being bound, due to "<" instead of "<=" (most people didn't notice as display->ignored_modifier_mask included Scroll_Lock). Red Hat bugzilla #91301 reported by Youssef Makki * src/display.c (meta_change_button_grab): make corresponding change for button grabs.
Diffstat (limited to 'src/keybindings.c')
-rw-r--r--src/keybindings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keybindings.c b/src/keybindings.c
index 56ee4116..395b30b8 100644
--- a/src/keybindings.c
+++ b/src/keybindings.c
@@ -925,7 +925,7 @@ meta_change_keygrab (MetaDisplay *display,
unsigned int keycode,
int modmask)
{
- int ignored_mask;
+ unsigned int ignored_mask;
/* Grab keycode/modmask, together with
* all combinations of ignored modifiers.
@@ -942,7 +942,7 @@ meta_change_keygrab (MetaDisplay *display,
meta_error_trap_push (display);
ignored_mask = 0;
- while (ignored_mask < (int) display->ignored_modifier_mask)
+ while (ignored_mask <= display->ignored_modifier_mask)
{
if (ignored_mask & ~(display->ignored_modifier_mask))
{