mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-22 22:50:33 +01:00
Set window cursor attribute properly.
This commit is contained in:
parent
aa029fad6b
commit
63a2f0cbfd
1 changed files with 6 additions and 6 deletions
|
|
@ -638,16 +638,16 @@ static void dmxDoChangeWindowAttributes(WindowPtr pWindow,
|
|||
{
|
||||
ScreenPtr pScreen = pWindow->drawable.pScreen;
|
||||
|
||||
if (wUseDefault (pWindow, cursor, 0))
|
||||
if (pWindow->cursorIsNone)
|
||||
{
|
||||
dmxCursorPrivPtr pCursorPriv =
|
||||
DMX_GET_CURSOR_PRIV (pWindow->optional->cursor, pScreen);
|
||||
|
||||
attribs->cursor = pCursorPriv->cursor;
|
||||
attribs->cursor = None;
|
||||
}
|
||||
else
|
||||
{
|
||||
*mask &= ~CWCursor;
|
||||
dmxCursorPrivPtr pCursorPriv =
|
||||
DMX_GET_CURSOR_PRIV (wCursor (pWindow), pScreen);
|
||||
|
||||
attribs->cursor = pCursorPriv->cursor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue