[PATCH] xdg-shell: add draw states for xdg_surface

Benoit Gschwind gschwind at gnu-log.net
Tue Jun 7 08:47:13 UTC 2016

Hello Olivier

On 07/06/2016 10:30, Olivier Fourdan wrote:
> Hi Benoit,
> ----- Original Message -----
>> [...]
>> My primary complain is that draw states should be merged with the
>> previously defined window/surface states, because by definition a draw
>> state is a state for a window, just like the state activated for example.
> I disagree here, if anything we should keep the semantic states separate, we wouldn't want to have something like "no_shadow" or "no_border" as a semantic state like "maximized" or "fullscreen", do we?

fullscreen and maximized are shortcut for drawing states:

 * fullscreen = no_border+no_shadow
 * maximized = no_shadow+no_maximized_button+reduce_button

what about activated state, that basically mean draw it as activated ?

This is too difficult to draw a line between draw states and "behaviors"
states, they are linked.

I think we should think about window state once more :D

> Cheers,
> Olivier
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Best regards
Benoit Gschwind

More information about the wayland-devel mailing list