Originally posted by Lemonzest
View Post
Announcement
Collapse
No announcement yet.
Intel Works On RandR Implementation For Wayland's Weston
Collapse
X
-
Originally posted by TheOne View PostWell since wayland is just a protocol you could said that Weston is the project which proves that wayland does works, without weston wayland would be pure vaporware.
Comment
-
Originally posted by DrYak View PostOn the other hand, you'll want to have applications like "KScreen" which help you handle plugging -in and -out screen, selecting different resolution for displays that supports several, etc.
The problems you mention should be handled by granting capabilities and similar.
BTW, Is there any permissions granting mechanism in wayland??
Originally posted by DrYak View PostA regular application shouldn't be able to directly call into RandR APIs (or at least, nothing beyond getting a few basic info about currently plugged in monitors. That wouldn't be disruptive, and might be handy for some specific software: presentation software like LibreOffice Impress might need to know if there's a projector plugged in, so they know on which screen to ask for a fullscreen window (for the actual presentation) and on which screen to keep the user interface (for the presenter's notes).
Originally posted by erendorn View PostThis looks like the correct approach to me.
I cannot think of any use case where a client would need to set the display to a specific value that would not be covered by wl_shell_surface.set_fullscreen.
Comment
-
Originally posted by newwen View PostWell, each compositor can have it's own private dBus protocol and ship with its own XRandR-like app.
BTW, Is there any permissions granting mechanism in wayland??All opinions are my own not those of my employer if you know who they are.
Comment
-
Originally posted by erendorn View PostThis looks like the correct approach to me.
I cannot think of any use case where a client would need to set the display to a specific value that would not be covered by wl_shell_surface.set_fullscreen.
Edit: After reading some docs, yes it is. wl_shell_surface::fullscreen_method as an argument set to driver should actually resize the screen (possibly adding black borders). http://wayland.freedesktop.org/docs/...l_surface.htmlLast edited by nanonyme; 27 February 2014, 03:14 PM.
Comment
-
I think these are pretty good arguments against this approach:
Originally posted by Pekka PaalanenLet's say I want to change a mode and move an output to another side.
How would I do that atomically? I mean, without the compositor e.g.
first showing me the output on the other side in original mode, and
then switches the mode to what I asked for.
How do I do many operations, perhaps on multiple outputs, in a single
shot without flickering or glitches?Originally posted by Pekka PaalanenIf I change the mode on two different outputs, how do I know which
action_done corresponds to which request?
What if move succeeds but mode change fails? Wouldn't that leave the
output in an unwanted state which is neither the original nor the
wanted setting?
The solution to this would tie in with the solution to take changes
atomic. For instance, to prepare for a configuration change, one might
create a change object in the protocol, store all changes in that
object, and then commit that set of changes atomically. Then have one
return value: the whole set either succeeds or fails.
I guess you could look for inspiration in the DRM atomic mode setting
API. I don't know how the RandR X11 protocol works, if that would be a
good example also.Originally posted by Jason EkstrandSecond, it doesn't appear that you have any security mechanism for this? I
don't think we want arbitrary clients to be allowed to rotate, change mode,
and change output layout. While I agree that it would be great to have a
tool (possibly even a command-line one) to do these things dynamically, we
shouldn't make it a public interface that just anyone can bind to. I'm not
saying that some sort of randr interface isn't needed. I'm simply that it
should be privileged and we need a well-defined mechanism for keeping rogue
applications from messing up the compositor for everyone else. For
standard applications, I believe the intention is that any modesetting they
do will be done in a very controlled manner through the shell.
Comment
Comment