Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eskil Abrahamsen-Blomfeldt
VNC Server
Commits
c9366753
Commit
c9366753
authored
Mar 04, 2022
by
Paul Tvete
Browse files
Fix crash on exit
parent
b5525a5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/quickvnc/qvncitem.cpp
View file @
c9366753
...
...
@@ -101,9 +101,10 @@ void QVncItem::geometryChange(const QRectF &newGeometry, const QRectF &oldGeomet
bool
QVncItem
::
eventFilter
(
QObject
*
,
QEvent
*
event
)
{
if
(
event
->
type
()
==
QEvent
::
CursorChange
)
{
qDebug
()
<<
"Cursor change!"
<<
window
()
->
cursor
();
if
(
m_vncServer
)
{
auto
newCursor
=
window
()
->
cursor
();
QWindow
*
w
=
window
();
if
(
w
&&
m_vncServer
)
{
//qDebug() << "Cursor change!" << w->cursor();
auto
newCursor
=
w
->
cursor
();
m_vncServer
->
setCursor
(
&
newCursor
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment