Hi.

> Thanks Tadej.  I looked at gdk_window_get_origin() but it seems to return x 
> and y co-ordinates relative to the parent window.  What I'm trying to find 
> out is which monitor contains (or mostly contains) a given window.  Therefore 
> I need the screen co-ordinates.  I'll try get_frame_extents() and see what 
> happens.  I just found its library description and it looks promising.

From API docs about gdk_window_get_origin():
---
Obtains the position of a window in root window coordinates. (Compare
with gdk_window_get_position() and gdk_window_get_geometry() which
return the position of a window relative to its parent window.)
---

Did you test it and it gave some strange results?

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to