Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[wayland] Destroy screen using QPlatformScreen::destroyScreen(). Cont…
…ributes to JB#35409.
  • Loading branch information
sletta authored and martinjones committed Oct 8, 2016
1 parent 79cc77e commit ee80d16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/qwaylanddisplay.cpp
Expand Up @@ -156,7 +156,12 @@ QWaylandDisplay::QWaylandDisplay(QWaylandIntegration *waylandIntegration)

QWaylandDisplay::~QWaylandDisplay(void)
{
#if QT_VERSION >= 0x050500
foreach (QWaylandScreen *s, mScreens)
mWaylandIntegration->destroyScreen(s);
#else
qDeleteAll(mScreens);
#endif
mScreens.clear();
delete mDndSelectionHandler.take();
wl_display_disconnect(mDisplay);
Expand Down

0 comments on commit ee80d16

Please sign in to comment.