mutter/src
Jonas Ådahl d092e913d6 gpu-kms: Don't add outputs without modes
There seems to be a kernel race when one disconnects an external
monitor connected to a DisplayPort via a USB-C adapter. The race
results in a connector being reported as connected, but without any
modes supported.

This had the side effect that we tried to set a preferred mode to
the first listed mode, but as no modes were available, we instead tried
to dereference the first element of a NULL array, causing a
segmentation fault.

Mitigate this by skipping adding output if no supported modes are
advertised and the output doesn't support scaling, while moving the
fallback path for calculating a preferred output mode to after possibly
adding the common modes, to avoid the unvolentary NULL dereference.

https://bugzilla.gnome.org/show_bug.cgi?id=789501
2018-02-05 10:38:54 +08:00
..
backends gpu-kms: Don't add outputs without modes 2018-02-05 10:38:54 +08:00
compositor build: Fix non-wayland builds 2017-12-24 17:55:14 +08:00
core wayland: update location prior to maximize 2018-01-11 11:03:04 +01:00
meta window: rename get_flatpack_id into get_sandboxed_app_id 2017-10-21 13:36:16 -05:00
tests monitor-unit-tests: Add non upright panel test 2017-12-25 17:01:45 +08:00
ui window: Allow resizing of tiled windows 2017-10-03 19:38:31 -03:00
wayland wayland: No need to check for keyboard 2018-01-31 16:04:20 +01:00
x11 x11/window: Mark restored workspace as “set” 2018-01-30 10:08:58 +01:00
.cvsignore Install desktop files in both .../share/applications and 2008-09-12 04:05:17 +00:00
libmutter.pc.in Make libmutter and friends parallel installable 2017-02-14 11:16:45 +08:00
Makefile-tests.am src/Makefile-tests.am: Remove reference to non-existing file 2017-09-02 11:09:28 +08:00
Makefile.am wayland: Implement text input protocol 2018-01-18 16:20:45 +01:00
meta-enum-types.c.in Install enum types 2015-07-05 22:01:59 -07:00
meta-enum-types.h.in Install enum types 2015-07-05 22:01:59 -07:00
org.freedesktop.login1.xml MetaLauncher: Don't g_error() on failure 2015-11-06 17:03:59 -05:00
org.gnome.Mutter.DisplayConfig.xml DisplayConfig: Add 'legacy-ui-scaling-factor' property 2017-10-12 17:42:52 +08:00
org.gnome.Mutter.IdleMonitor.xml Rename the DBus interface files 2014-03-31 23:44:46 -04:00
org.gnome.Mutter.RemoteDesktop.xml Add remote desktop and screen cast functionality 2017-08-29 14:39:04 +08:00
org.gnome.Mutter.ScreenCast.xml screen-cast-stream: Add stream parameters 2017-09-20 18:27:57 +08:00