diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2014-09-09 01:59:07 -0700 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-09-09 04:25:29 -0700 |
commit | 8545a166931617af0d2a9ca8175fd8b11c67e246 (patch) | |
tree | c838220a0d2f50c48ad8af399700908109be9d78 /vmwgfx | |
parent | 32562129750077a23f26f2e69adc8403eb24bf3f (diff) |
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>
Diffstat (limited to 'vmwgfx')
-rw-r--r-- | vmwgfx/vmwgfx_crtc.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |