clients/window: Add viewport destination support
authorHarish Krupo <harish.krupo.kps@intel.com>
Tue, 11 Dec 2018 08:15:43 +0000 (13:45 +0530)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 25 Nov 2019 21:54:40 +0000 (21:54 +0000)
commit7bcbab1f2fd53987809a98d212b90fc6b99d71cc
tree7dd36232f1b6eebe5b1cd0d95fea747d8714e13f
parent7e0f20311f60e3d0f117f4d5b227d873047fea78
clients/window: Add viewport destination support

Add support for setting the widget's destination wp viewport.
Setting it in the widget instead of being set directly by the client
ensure that the widget can be identified in widget_find_widget.

v2: Return -1 on error (Pekka)
    Scale allocated x and y when viewport is set (Pekka)
    Allow user to set -1 for viewport width and height (Pekka)

v3: Use NULL instead of 0 (Daniel)
    return 0 if width and height are -1 (Daniel)

Signed-off-by: Harish Krupo <harish.krupo.kps@intel.com>
clients/meson.build
clients/window.c
clients/window.h