diff --git a/src/SFML/Window/Unix/CursorImpl.cpp b/src/SFML/Window/Unix/CursorImpl.cpp index 1cfcbf29c..8606c15c8 100644 --- a/src/SFML/Window/Unix/CursorImpl.cpp +++ b/src/SFML/Window/Unix/CursorImpl.cpp @@ -204,7 +204,7 @@ bool CursorImpl::loadFromSystem(Cursor::Type type) //////////////////////////////////////////////////////////// -bool CursorImpl::isColorCursorSupported() +bool CursorImpl::isColorCursorSupported() const { return XcursorSupportsARGB(m_display.get()); } diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index 05c587c21..576c59c58 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -2080,7 +2080,7 @@ bool WindowImplX11::processEvent(XEvent& windowEvent) //////////////////////////////////////////////////////////// -bool WindowImplX11::checkXRandR() +bool WindowImplX11::checkXRandR() const { // Check if the XRandR extension is present int version = 0; @@ -2095,7 +2095,7 @@ bool WindowImplX11::checkXRandR() //////////////////////////////////////////////////////////// -RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResources* res) +RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResources* res) const { const RROutput output = XRRGetOutputPrimary(m_display.get(), rootWindow); @@ -2108,7 +2108,7 @@ RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResource //////////////////////////////////////////////////////////// -Vector2i WindowImplX11::getPrimaryMonitorPosition() +Vector2i WindowImplX11::getPrimaryMonitorPosition() const { Vector2i monitorPosition;