motion-notify with DrawingArea response problem.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nick Belshaw

    motion-notify with DrawingArea response problem.

    I am using Pygtk and have a DrawingArea and use the motion-notify-event to do some stuff. The code is intended for Linux and Windows and works as intended.
    However, if I move the mouse a lot over the DrawingArea when running Linux the event callbacks block....I am presuming too many events in too short a time. The application freezes while events catch up. This happens before anything reaches my code.
    On the same PC running Windows XP this does not occur and there is no freezing of the application which then appears to work much better using MS than Linux.
    The problem in Linux seems to occur at a low level and I can not do anything in my code to make things operate nicely. Is this a limitation or is there something else I can do to improve the situation?

    any pointers or info would be helpful

    nick
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    This would have to do with how often the "notify" signal is sent/received which is OS specific and distro specific on Linux. I don't think that gtk has any way to modify this. Finally, you would hope that this problem doesn't happen for everyone who uses motion-notify-event on Linux, so there may be some tweaking that can eliminate the problem.

    Comment

    • nick belshaw
      New Member
      • Dec 2010
      • 2

      #3
      ..replying myself!!

      found there is a "motion-notify-hint-event" which intends to avoid this issue...

      I have not been able to test it yet though

      Comment

      Working...