[PATCH 0/2] RandR functionality for wayland protocol

Bill Spitzak spitzak at gmail.com
Mon May 2 12:37:13 PDT 2011


Probably not a big deal, but I have found that making the third flag a 
flip about the x==y 45 degree line is more useful than making it a 90 
degree rotation. This makes all settings with an odd number of bits 
produce a mirror image, and it makes it just slightly easier to get the 
bits from a transformation matrix.

May want to consider this just because you are designing the whole api 
and can get everything as right as possible. But certainly not very 
important.

Casey Dahlin wrote:
> The second R is a bit of a misnomer right now since there's not actually
> modesetting, but this patch set extends the wayland protocol to allow rotating
> and flipping outputs, and moving their position.
> 
> It adds a single method to the "output" interface to set x, y, and some flags
> to perform transformation: one to flip horizontal, one to flip vertical, and
> one to rotate 90 degrees clockwise (you'll note that setting both flips will
> have the effect of a 180 degree rotation, and setting all 3 flags will rotate
> 270 degrees, so further transforms aren't necessary for the basic stuff).
> 
> The geometry event is ammended to report the transformation flags along with
> the other info.
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list