Skip to content
This repository has been archived by the owner on Nov 18, 2018. It is now read-only.

Commit

Permalink
Do not draw the cursor
Browse files Browse the repository at this point in the history
A compositor will take care of rendering the Wayland cursor surface
thus it won't need the window system cursor.
  • Loading branch information
plfiorini committed Oct 25, 2016
1 parent fae8de7 commit eb46c0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ plugin:
integration plugin file name without path and extension (for example
"kms" for the DRM/KMS integration, "brcm" for Broadcom etc...).

* **GREENISLAND_QPA_SHOW_CURSOR:** By default the mouse cursor is not
drawed because a compositor is expected to render the Wayland cursor
surface, set this variable to 1 if you want to draw the Green Island
cursor.

## Logging categories

Qt 5.2 introduced logging categories and Hawaii takes advantage of
Expand Down
2 changes: 1 addition & 1 deletion plugins/egldeviceintegration/kms/eglfskmsdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ void EglFSKmsDevice::createScreens()
Q_FOREACH (QPlatformScreen *screen, siblings)
static_cast<EglFSKmsScreen *>(screen)->setVirtualSiblings(siblings);

if (primaryScreen)
if (primaryScreen && qEnvironmentVariableIsSet("GREENISLAND_QPA_SHOW_CURSOR"))
m_globalCursor = new EglFSKmsCursor(primaryScreen);
}
}
Expand Down

0 comments on commit eb46c0e

Please sign in to comment.