summaryrefslogtreecommitdiff
path: root/xddm/display/pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'xddm/display/pointer.c')
-rw-r--r--xddm/display/pointer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xddm/display/pointer.c b/xddm/display/pointer.c
index d38a207..17fa3c5 100644
--- a/xddm/display/pointer.c
+++ b/xddm/display/pointer.c
@@ -43,6 +43,8 @@ ULONG APIENTRY DrvSetPointerShape(SURFOBJ *surf, SURFOBJ *mask, SURFOBJ *color_p
return SPS_ERROR;
}
+ PUNT_IF_DISABLED(pdev);
+
DEBUG_PRINT((pdev, 3, "%s\n", __FUNCTION__));
if (flags & SPS_CHANGE) {
@@ -129,6 +131,12 @@ VOID APIENTRY DrvMovePointer(SURFOBJ *surf, LONG pos_x, LONG pos_y, RECTL *area)
return;
}
+ if (!pdev->enabled) {
+ DEBUG_PRINT((pdev, 3, "%s: ignoring when device is disabled\n",
+ __FUNCTION__));
+ return;
+ }
+
cursor_cmd = CursorCmd(pdev);
if (pos_x < 0) {
cursor_cmd->type = QXL_CURSOR_HIDE;