Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6a4490d8
Commit
6a4490d8
authored
Sep 19, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add window data structure locking to the Expose event handler.
parent
d2633549
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
event.c
dlls/winex11.drv/event.c
+5
-2
No files found.
dlls/winex11.drv/event.c
View file @
6a4490d8
...
@@ -821,7 +821,7 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
...
@@ -821,7 +821,7 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
TRACE
(
"win %p (%lx) %d,%d %dx%d
\n
"
,
TRACE
(
"win %p (%lx) %d,%d %dx%d
\n
"
,
hwnd
,
event
->
window
,
event
->
x
,
event
->
y
,
event
->
width
,
event
->
height
);
hwnd
,
event
->
window
,
event
->
x
,
event
->
y
,
event
->
width
,
event
->
height
);
if
(
!
(
data
=
X11DRV_
get_win_data
(
hwnd
)))
return
;
if
(
!
(
data
=
get_win_data
(
hwnd
)))
return
;
rect
.
left
=
event
->
x
;
rect
.
left
=
event
->
x
;
rect
.
top
=
event
->
y
;
rect
.
top
=
event
->
y
;
...
@@ -858,7 +858,10 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
...
@@ -858,7 +858,10 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
}
}
else
OffsetRect
(
&
rect
,
virtual_screen_rect
.
left
,
virtual_screen_rect
.
top
);
else
OffsetRect
(
&
rect
,
virtual_screen_rect
.
left
,
virtual_screen_rect
.
top
);
if
(
!
data
->
surface
)
RedrawWindow
(
hwnd
,
&
rect
,
0
,
flags
);
if
(
data
->
surface
)
flags
=
0
;
release_win_data
(
data
);
if
(
flags
)
RedrawWindow
(
hwnd
,
&
rect
,
0
,
flags
);
}
}
...
...
Write
Preview
Markdown
is supported
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