[weston PATCH v6 1/2] add implementation for set_maximised

Pekka Paalanen ppaalanen at gmail.com
Mon Feb 6 23:14:04 PST 2012


On Tue, 07 Feb 2012 09:06:39 +0800
Juan Zhao <juan.j.zhao at linux.intel.com> wrote:

> The unmaximized location is determined by "set_toplevel" now. Maybe we 
> can adds some parameter in "set_toplevel" to define the top-left coordinate?

No, we cannot protocol-wise, as that would expose the global coordinate
system to the clients, and likely be misused to implement an absolute
"XMoveWindow".

For the "remember layout" functionality, we need to come up with
something else. Maybe ask the server to generate a per-surface "cookie"
from the current server-private state (transformations, absolute
position...), that when restoring a layout, could be sent back to the
server between surface creation and initial attach (mapping).

The client itself would save everything it already knows: surface size,
state like maximised, etc.

What that cookie is, just a handle for server stored data or somehow
opaquely encoding the state, is an implementation detail.

I haven't discussed with anyone about this, it's just my first guess on
how it might work.


Thanks,
pq


More information about the wayland-devel mailing list