fullscreen window positioning oddity

Brian J. Tarricone bjt23 at cornell.edu
Mon Nov 27 01:05:32 CET 2006


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

Hey Olivier,

I'm messing around with xfmedia's fullscreen, and something's a bit
weird.  Metacity has the same behavior as xfwm4, so I guess it's
correct, but it just doesn't make sense to me.

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?

(I can use event->x_root and event->y_root instead, as they give the
values I expect, but I'm just curious as to what's going on.)

	-brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFaivL6XyW6VEeAnsRAhCCAJ9iq82wM2HZcnNJeuBk7X2c2Eo6OACghl+f
zinM4o/MtsKJppMKgRpjCmo=
=tjaN
-----END PGP SIGNATURE-----



More information about the Xfce4-dev mailing list