Hi, Disabling GDK_POINTER_MOTION_HINT_MASK (using motion masks instead) fixed my problem, though now there's another issue which i'm trying to get a handle on. After moving the drawingarea widget around (toggle fullscreen, move the hpaned, that kind of thing) the "first event" has wrong coordinates.
like this: ---snip--- motionnotify on (190, 120) motionnotify on (190, 120) (i lift the stylus up, toggle fullscreen, hit the drawingarea with the stylus again) motionnotify on (-7, 241) buttonpress on (-7, 241) motionnotify on (80, 300) motionnotify on (79, 300) ---snip--- obviously -7, 241 is the wrong coordinate pair. the buttonpress+motionnotify then leads to a line being drawn. they're not always negative / out of bounds so there's no sane way to check them. maybe one could hook widget-repositions and then set a flag to ignore the next two xevents, but that's not a good solution. On 2/9/07, Tommi Komulainen <[EMAIL PROTECTED]> wrote:
On Fri, 2007-02-09 at 14:46 +0200, ext Kemal Hadimli wrote: > Hello, > > I was playing around with ExtensionEvents (for the pressure data) when > I noticed something weird, sometimes my window (erm, widget) receives > some buttonpressevents where it shouldn't. There is something strange happening in some cases when extension events are enabled, there's one bug[1] open in (maemo) bugzilla about that. Unfortunately we only have a description of the bug without useful test case. I'm fairly certain this is upstream bug but I haven't yet reported it to upstream because of the lack of decent test case. 1. https://maemo.org/bugzilla/show_bug.cgi?id=908
-- Kemal _______________________________________________ maemo-developers mailing list [email protected] https://maemo.org/mailman/listinfo/maemo-developers
