Utility/Window: Fixes compilation for X11, again
This commit is contained in:
parent
eea8b8c7f0
commit
934e646b00
|
|
@ -251,7 +251,7 @@ namespace Nz
|
||||||
if (m_window && m_ownsWindow)
|
if (m_window && m_ownsWindow)
|
||||||
{
|
{
|
||||||
// Unhide the mouse cursor (in case it was hidden)
|
// Unhide the mouse cursor (in case it was hidden)
|
||||||
SetCursor(Nz::WindowCursor_Default);
|
SetCursor(SystemCursor_Default);
|
||||||
|
|
||||||
if (!X11::CheckCookie(
|
if (!X11::CheckCookie(
|
||||||
connection,
|
connection,
|
||||||
|
|
@ -417,7 +417,7 @@ namespace Nz
|
||||||
void WindowImpl::SetCursor(const Cursor& cursor)
|
void WindowImpl::SetCursor(const Cursor& cursor)
|
||||||
{
|
{
|
||||||
xcb_cursor_t cursorImpl = cursor.m_impl->GetCursor();
|
xcb_cursor_t cursorImpl = cursor.m_impl->GetCursor();
|
||||||
if (!X11::CheckCookie(connection, xcb_change_window_attributes(connection, m_window, XCB_CW_CURSOR, &cursor)))
|
if (!X11::CheckCookie(connection, xcb_change_window_attributes(connection, m_window, XCB_CW_CURSOR, &cursorImpl)))
|
||||||
NazaraError("Failed to change mouse cursor");
|
NazaraError("Failed to change mouse cursor");
|
||||||
|
|
||||||
xcb_flush(connection);
|
xcb_flush(connection);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue