xserver-multidpi/hw
Martin Peres bd0f53725b modesetting: check the kms state on EnterVT
Normally, we would receive a uevent coming from Linux's DRM subsystem,
which would trigger the check for disappearing/appearing resources.
However, this event is not received when X is not master (another VT
is selected), and so the userspace / desktop environment would not be
notified about the changes that happened while X wasn't master.

To fix the issue, this patch forces a refresh on EnterVT by splitting
the kms-checking code from the uevent handling into its own (exported)
function called drmmode_update_kms_state. This function is then called
from both the uevent-handling function, and on EnterVT right before
restoring the modes.

Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Kishore Kadiyala <kishore.kadiyala@intel.com>
Tested-by: Kishore Kadiyala <kishore.kadiyala@intel.com>
(cherry picked from commit 293cf660c9)
2020-12-01 11:10:34 +01:00
..
dmx Update URL's in man pages 2020-08-18 04:12:08 +00:00
kdrive Add ddxInputThread call from os layer into ddx layer 2020-01-13 22:25:39 +00:00
vfb Add ddxInputThread call from os layer into ddx layer 2020-01-13 22:25:39 +00:00
xfree86 modesetting: check the kms state on EnterVT 2020-12-01 11:10:34 +01:00
xnest Add ddxInputThread call from os layer into ddx layer 2020-01-13 22:25:39 +00:00
xquartz Update URL's in man pages 2020-08-18 04:12:08 +00:00
xwayland xwayland: Create an xwl_window for toplevel only 2020-11-09 11:35:30 +01:00
xwin Add ddxInputThread call from os layer into ddx layer 2020-01-13 22:25:39 +00:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build meson: Move Xvfb build under an option. 2017-09-20 13:19:21 -04:00