Skip to content

Commit

Permalink
Win32|Fixed: Mouse cursor visible during startup in fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed May 8, 2012
1 parent 025ae26 commit bbcb993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/engine/portable/src/canvas.cpp
Expand Up @@ -95,6 +95,8 @@ struct Canvas::Instance

void grabMouse()
{
if(!self->isVisible()) return;

LOG_DEBUG("grabbing mouse (already grabbed? %b)") << mouseGrabbed;

if(mouseGrabbed) return;
Expand Down Expand Up @@ -123,6 +125,8 @@ struct Canvas::Instance

void ungrabMouse()
{
if(!self->isVisible()) return;

LOG_DEBUG("ungrabbing mouse (presently grabbed? %b)") << mouseGrabbed;

if(!mouseGrabbed) return;
Expand Down

0 comments on commit bbcb993

Please sign in to comment.