Re: Where to implement motion compression



Owen Taylor wrote:
> 
> Robert Minsk <egbert@centropolisfx.com> writes:
> 
> >
> > I currently have implemented it in gtk_main_do_event and have added a
> > GtkWidgetFlag called GTK_COMPRESS_MOTION.  This seems like the correct
> > place to add it because it is a property of the widget.
> >
> > It could be implemented more efficiently in gdk_event_translate and make it
> > a property of the window.  I would add GDK_POINTER_MOTION_COMPRESS_MASK to
> > GdkEventMask but that does not make since because it is not an event.
> > There's the problem.
> 
> I like this better. Yes, it is not an event, but it closely
> parallels GDK_MOTION_HINT_MASK as a property of how events
> are handled for a particular window. (Also, this would give
> a natural way of handling compression for pointer grabs
> if we wanted to add this later.)
> 
> The user doesn't need to know that GDK_MOTION_HINT_MASK is
> handled on the server and GDK_MOTION_COMPRESS_MASK is
> handled in the client.
> 

Another question then.  Why was the enter/leave compression implemented
in gtk_main_do_event and not in gdk?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]