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 <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
This commit is contained in:
Thomas Hellstrom
2014-09-09 01:59:07 -07:00
parent 3256212975
commit 8545a16693

View File

@@ -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;
}