diff options
author | Sandro Mani <manisandro@gmail.com> | 2015-02-02 11:08:59 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-02-04 14:41:19 +0000 |
commit | 1f4b84f69f13edd10300d035321623291c5d073e (patch) | |
tree | 7ee164d88afba895366f8b5e580232ed8b32065b /src/tools | |
parent | cf1c4d810a043ca5fe60623569c131a2a7a417df (diff) |
QXcbClipboard: don't hold on to the screen pointer
Remove the QXcbClipboard::m_screen member variable and make it use
connection()->primaryScreen() instead. The clipboard is created in the
QXcbConnection constructor, and QXcbClipboard::m_screen was set to the primary
screen at the time of construction. If the primary screen later gets
disconnected, m_screen ends up pointing to a non-existing screen.
Change-Id: I2d23106673d0ba013056d4dbb7078acdf6f9bc7c
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions