Re: binary compatibility considerations wrt multihead support



Havoc Pennington <hp redhat com> writes :
>
>
[...]
>> any breakage if someone explicitly uses these struct size ?
>> 
>> AFAIK all the others objects I've modified are either fully internal
>> to gdk or deprecated.
>
>I would suggest, say you have:
> struct _GtkWindow {
>   GdkDisplay *display;
> };
>
>Let's go ahead and add:
>
> struct _GtkWindow {
>   gpointer display;
> };
>
>Then you have a slot "reserved" and we know its intended eventual
>purpose.

Ok, I'll post a patch to this list tomorrow.

>
>> On the API compatibility side I wondering how to handle/modify
>> GdkPointerHooks to support multihead.
>> 
>> At the moment we have GdkPointerHooks defining get_window_at_pointer
>> function like this :
>> GdkWindow* (*window_at_pointer) (gint            *win_x,
>>                                  gint            *win_y);
>> To make it work for multihead, I'll need sometime like this :
>> GdkWindow* (*window_at_pointer) (GdkScreen       *screen,
>> 				 gint            *win_x,
>>                                  gint            *win_y);                                 
>Yes, that looks necessary.

So should I only add a dummy gpointer here ?

Erwann




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