weston/clients
Pekka Paalanen 82dd54d943 desktop-shell: fix output removal for background/panel
When the compositor has multiple outputs (not clones) and one of them is
removed, the ones remaining to the right will be moved to close the gap.
Because reflowing the remaining outputs happens before removing the
wl_output global, we get the new output x,y before the removal. This
causes us to consider the remaining output immediately to the right of
the removed output to be a clone of the removed output whose x,y don't
get updated. That will then hit the two assertions this patch removes.

The reason the assertions were not actually hit is because of a
compositor bug which moved the remaining outputs in the wrong direction.
The next patch will fix the reflow, so we need this patch first to avoid
the asserts.

Remove the assertions and hand over the background and panel if the
"clone" does not already have them. If the clone already has them, we
destroy the unnecessary background and panel.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Marius Vlad <marius-cristian.vlad@nxp.com>
2018-07-05 10:38:25 +03:00
..
calibrator.c calibrator: Make mouse button optional 2017-09-18 12:16:49 +03:00
clickdot.c clients: consolidate timer code part 1 2018-03-12 10:17:18 +02:00
cliptest.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
confine.c clients: consolidate timer code part 2 2018-03-12 10:17:22 +02:00
desktop-shell.c desktop-shell: fix output removal for background/panel 2018-07-05 10:38:25 +03:00
dnd.c dnd: Abort with an error message if compositor doesn't support drag and drop 2017-12-04 19:03:29 +00:00
editor.c clients: Don't crash when compositor doesn't support drag and drop 2017-12-04 19:03:22 +00:00
eventdemo.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
flower.c client: fix spelling mistake 2016-04-05 16:00:21 -07:00
fullscreen.c clients: Use zalloc 2016-03-09 22:54:54 -08:00
gears.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
image.c cosmetic: Remove a few double semicolons 2015-10-07 11:22:03 -07:00
ivi-shell-user-interface.c shared: Update all users of DATADIR 2018-02-07 11:39:36 +02:00
keyboard.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
multi-resource.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
nested-client.c client: Fix segmentation fault in the case weston-nested 2018-06-07 18:07:08 +01:00
nested.c compositor: fix starvation of wl_buffer::release 2017-09-26 11:22:45 -05:00
presentation-shm.c shared: Add timespec_from_proto helper function 2017-12-18 11:27:43 +02:00
resizor.c weston-resizor: Don't add new frame callbacks every click 2017-12-04 19:21:11 +00:00
scaler.c clients: Fix weston-scaler source-only mode to use integer width and height 2016-11-16 14:46:22 +00:00
screenshot.c screenshot: save screenshot files in XDG_PICTURES_DIR 2018-02-09 15:16:07 +00:00
simple-damage.c clients/simple-damage: Port to xdg_shell unstable v6 2016-08-15 20:15:58 +08:00
simple-dmabuf-drm-data.h clients/simple-dmabuf-drm: import with dmabuf modifiers 2017-06-12 10:39:01 +01:00
simple-dmabuf-drm.c simple-dmabuf-drm: Fallback DRM_FORMAT_MOD_LINEAR definition 2018-06-07 08:55:39 +01:00
simple-dmabuf-v4l.c simple-dmabuf-v4l: Remove incorrect assert 2017-03-17 13:53:46 +02:00
simple-egl.c clients: simple-egl: Restore window size when un-maximized 2017-12-04 19:40:31 +00:00
simple-im.c simple-im: Rename source file to be consistent with other client tools 2016-10-12 14:03:11 -07:00
simple-shm.c clients/simple-shm: Port to xdg_shell unstable v6 2016-08-15 20:15:58 +08:00
simple-touch.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
smoke.c client: fix spelling mistake 2016-04-05 16:00:21 -07:00
stacking.c editor: Drop g_type_init() call 2017-01-16 16:22:13 +01:00
subsurfaces.c clients/subsurfaces: use weston_platform_destroy_egl_surface wrapper 2016-11-21 16:07:19 +00:00
terminal.c terminal: Fix unintended fallthrough to cursor restore 2018-04-05 10:31:20 -05:00
touch-calibrator.c clients: add a new touchscreen calibrator 2018-05-30 14:46:24 +03:00
transformed.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
weston-info.c weston-info: destroy wl_keyboard 2018-05-29 13:34:46 +03:00
window.c clients: add a new touchscreen calibrator 2018-05-30 14:46:24 +03:00
window.h clients: add a new touchscreen calibrator 2018-05-30 14:46:24 +03:00