Commit 8f004789 authored by hybrid's avatar hybrid

Avoid cursor changes under Linux if visibility doesn't change.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2095 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 601d907b
......@@ -147,6 +147,8 @@ namespace irr
//! Changes the visible state of the mouse cursor.
virtual void setVisible(bool visible)
{
if (visible==IsVisible)
return;
IsVisible = visible;
#ifdef _IRR_COMPILE_WITH_X11_
if (!Null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment