Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
91fa946e
Commit
91fa946e
authored
Nov 27, 2014
by
Martin Flöser
Browse files
Fix crash in PointerInterface after PointerInterface got destroyed
Connection to lambda was not bound to this.
parent
78486bb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/pointer_interface.cpp
View file @
91fa946e
...
...
@@ -65,7 +65,7 @@ const struct wl_pointer_interface PointerInterface::Private::s_interface = {
PointerInterface
::
PointerInterface
(
SeatInterface
*
parent
,
wl_resource
*
parentResource
)
:
Resource
(
new
Private
(
parent
,
parentResource
,
this
),
parent
)
{
connect
(
parent
,
&
SeatInterface
::
pointerPosChanged
,
[
this
]
{
connect
(
parent
,
&
SeatInterface
::
pointerPosChanged
,
this
,
[
this
]
{
Q_D
();
if
(
d
->
focusedSurface
)
{
const
QPointF
pos
=
d
->
seat
->
pointerPos
()
-
d
->
seat
->
focusedPointerSurfacePosition
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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