aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorQuantum <quantum2048@gmail.com>2021-08-01 18:10:25 -0400
committerSimon Ser <contact@emersion.fr>2021-08-02 09:08:03 +0200
commit456c6e227972dd1be26fbedd77b0784bb1879a26 (patch)
tree06e321eb08d9c8c3f36661859e4aaa5dafa3e39c /docs
parentf5df956c18634e501d878531858ed75391fec644 (diff)
viewporter: remove crop and scale state upon destruction
According to the viewport protocol, upon wp_viewport::destroy(): > The associated wl_surface's crop and scale state is removed. > The change is applied on the next wl_surface.commit. Therefore, wp_viewport_destroy(viewport) should remove all viewport state. Currently, wlroots does not remove the crop and scale state. Instead, a client must do: wl_fixed_t clear = wl_fixed_from_int(-1); wp_viewport_set_source(viewport, clear, clear, clear, clear); wp_viewport_set_destination(viewport, -1, -1); wp_viewport_destroy(viewport); This commit adds the necessary logic into viewport_destroy and makes wlroots comply with the protocol.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions