Bug 78372 - create multiple windows with offset
Summary: create multiple windows with offset
Status: RESOLVED NOTABUG
Alias: None
Product: Wayland
Classification: Unclassified
Component: wayland (show other bugs)
Version: 1.4.0
Hardware: All All
: highest enhancement
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-07 07:11 UTC by Rohit Nandan
Modified: 2014-05-07 10:16 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Rohit Nandan 2014-05-07 07:11:25 UTC
I am amazed to know there is no straight forward way to create wayland window with some offset on screen.So I can view only one app at a time.

If there is any way to create a window with offset?

If not then how this wl_flower is created at random position on screen. Some magic hidden code?



Rohit Nandan
Comment 1 Emilio Pozuelo Monfort 2014-05-07 08:34:53 UTC
The random positioning for new surfaces is done by the weston compositor, not by the clients, and affects every client, not just weston-flower.

I'm not sure what you mean by creating windows with an offset.
Comment 2 Pekka Paalanen 2014-05-07 08:59:19 UTC
Rohit, it sounds like you asking for a way for a client to specify the exact location of its window on screen. This is deliberately not supported in Wayland. Clients are not aware of the exact location of their top-level windows. The compositor chooses the window placement based on the shell protocol.

Please, ask questions on the mailing list, not in bugzilla.
Comment 3 Rohit Nandan 2014-05-07 09:50:41 UTC
Suppose a situation of 3 hardware overlays, with current wayland model if I want to run data visualization app which uses these three overlays. And application has parent window with first overlay, second and third overlays are "not" child windows.Then how can I make my app structured correctly graphically.

And is there any significance of not letting client choose their window position on screen.

Is there any way to move window just after creating it?

Do shell protocol have such functionality?
Comment 4 Pekka Paalanen 2014-05-07 10:16:50 UTC
(In reply to comment #3)
> Suppose a situation of 3 hardware overlays, with current wayland model if I
> want to run data visualization app which uses these three overlays. And
> application has parent window with first overlay, second and third overlays
> are "not" child windows.Then how can I make my app structured correctly
> graphically.

It is up to the compositor to assign wl_surfaces into hw overlays any way it sees fit. It is not driven from clients.

All a client is expected to do is to use a separate wl_surface for each thing that might be suitable for a hw overlay. If you need to glue several wl_surfaces together to form a single window to do this, use sub-surfaces (wl_subcompositor).

> And is there any significance of not letting client choose their window
> position on screen.

Yes. A client cannot know what is on screen, so there is no way it could reasonably decide where to put its own windows. It is also much easier for the protocol by avoiding a lot traffic and interfaces, and it allows compositors to use arbitrary input/output redirection.

> Is there any way to move window just after creating it?

Not from a client. Moving a window is an interactive user action, or a window manager decision.

> Do shell protocol have such functionality?

No.

We are assuming wl_shell or xdg_shell here, and not some other shell, right?


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.