Comment 6 for bug 633104

Revision history for this message
schmendrick (felix-schmutz) wrote :

okay, the good news is, NOW i can reproduce and looked into the debugger:

i have the same problem with my other ubuntu installation currently on Ubuntu 10.04 LTS ( Lucid Lynx)

i am using the latest git sources.

i tracked the problem down: it is due to the fact that Gdk.KeyEvent.State in
 PintaCanvas.cs=>PintaCanvas_KeyPressEvent

is having a value of Mod2Mask instead of the expected none.

When digging through the GTK documentation on
http://docs.go-mono.com/index.aspx
i found that this represents:
Mod2Mask=>The fifth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier).

which means GTK thinks that this modifier key is pressed (which it is not).

i have ABSOLUTELY NO CLUE why this is/can be the case (but i am not proficient in GTK).
but i guess this is not a bug of pinta, but a bug in the underlying library!

we/i can implement a WORKAROUND by just ignoring if one of those special mask modifiers is reported.

but maybe somebody with GTK experience has an idea how this can be better solved or who we we can report this to?