Re: implementation for gdk_window_get_geometry() in gdk-quartz.



-----Original Message-----
>From: Richard Hult <richard imendio com>
>Taybin Rutkin skrev:
>> This is an implementation I came up with for gdk_window_get_geometry() in gdkwindow-quartz.c:
>
>Hi, and thanks :)
>
>This looks like a good start. I wonder if we perhaps should try to mimic 
>the X11 backend more closely and get the geometry from the NSWindow 
>instead of using get_position/get_size that use the latest cached value? 
>  I think that you also need to check for a destroyed window (and 
>perhaps special-case the root window).

Well, according to the docs in http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGdk_1_1Window.html#6833d29726c3d995c39b74310d21326e the x11 behavior isn't desireable.  I changed our code (ardour) to use Drawable::get_size() as suggested, so this issue is kinda moot for me now.

>You could create a bug in bugzilla and attach the patch there, it's 
>easier to track it that way.

http://bugzilla.gnome.org/show_bug.cgi?id=405868

Taybin



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