Comment 42 for bug 285323

Revision history for this message
Ted Gould (ted) wrote : Re: [Bug 285323] Re: Losing keyboard and mouse control when changing screen brightness with fn + arrow under intrepid

On Mon, 2008-10-27 at 22:00 +0000, Bryce Harrington wrote:
> In any case, I think we need g-p-m folks to analyze this more
> thoroughly. Ted?

The only thing that I can figure is that in this case GPM is swallowing
the keypress, while in others it's letting GDK take care of it
completely. I'm unsure why that would make a difference, I've sorted
through the GDK-X11 source code and it all looks straight forward. I
don't see any focus locks or anything of the such.

The only thing that I could see is changing it so that GPM never
swallows the keypress. In theory this shouldn't change anything as
nobody else should be looking for it.

Could someone who can recreate this try changing this code in
src/gpm-button.c:

    egg_debug ("Key %i mapped to HAL key %s", keycode, key);
    g_signal_emit (button, signals [BUTTON_PRESSED], 0, key);

    return GDK_FILTER_REMOVE;
}

So that it it returns GDK_FILTER_CONTINUE instead of
GDK_FILTER_CONTINUE.

Thanks!