fullscreen window positioning oddity

Olivier Fourdan fourdan at xfce.org
Mon Nov 27 21:39:36 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brian J. Tarricone wrote:

> When I use gtk_window_fullscreen() to set a window fullscreen, according
> to widget->allocation, it's placed at (0, 0), and its size is indeed the
> screen resolution (in my case, 1600x1200).  However, the event values
> inside the motion-notify-event callback are weird.  With the mouse in
> the top left corner, both event->x and event->y are -1.  With the mouse
> in the bottom right corner, event->x is 1598 and event->y is 1198.
> 
> I would expect x and y to be both 0 for top-left, and for bottom-right,
> 1599 and 1199, respectively.  Can you shed any light on this?

Rough guess, couldn't it be the window border width, ie the
"border_width" field of the XWindowAttributes structure?

HTH
Cheers,
Olivier.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFa00IFHBtvh5LRUARAhe6AKD1Q+WlBiT6fWAjd/9NlKEwU7jZWgCg3BdF
+fEEC1I6lv1PCQkf0182AW4=
=ve1p
-----END PGP SIGNATURE-----



More information about the Xfce4-dev mailing list