From 8545a166931617af0d2a9ca8175fd8b11c67e246 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Tue, 9 Sep 2014 01:59:07 -0700 Subject: vmware/vmwgfx: Fix cursor problem with multimon In a multimon environment, the cursor would sometimes disappear on the newly enabled screen. Fix this. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- vmwgfx/vmwgfx_crtc.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'vmwgfx') diff --git a/vmwgfx/vmwgfx_crtc.c b/vmwgfx/vmwgfx_crtc.c index 4f9cdda..dad8815 100644 --- a/vmwgfx/vmwgfx_crtc.c +++ b/vmwgfx/vmwgfx_crtc.c @@ -213,6 +213,15 @@ crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode, crtc->active = TRUE; #endif + /* + * Strictly, this needs to be done only once per configuration change, + * not once per crtc, but there's no better place to put this. Since + * Intel wrote the crtc code, let's do what the xf86-video-intel driver + * does. + */ + if (pScreen) + xf86_reload_cursors(pScreen); + return TRUE; } -- cgit v1.2.3