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
220f1af0
Commit
220f1af0
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 GravityNotify event handler.
parent
89a60562
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
event.c
dlls/winex11.drv/event.c
+12
-4
No files found.
dlls/winex11.drv/event.c
View file @
220f1af0
...
...
@@ -1100,10 +1100,16 @@ done:
static
void
X11DRV_GravityNotify
(
HWND
hwnd
,
XEvent
*
xev
)
{
XGravityEvent
*
event
=
&
xev
->
xgravity
;
struct
x11drv_win_data
*
data
=
X11DRV_
get_win_data
(
hwnd
);
RECT
rect
;
struct
x11drv_win_data
*
data
=
get_win_data
(
hwnd
);
RECT
rect
,
window_rect
;
if
(
!
data
||
data
->
whole_window
)
return
;
/* only handle this for foreign windows */
if
(
!
data
)
return
;
if
(
data
->
whole_window
)
/* only handle this for foreign windows */
{
release_win_data
(
data
);
return
;
}
rect
.
left
=
event
->
x
;
rect
.
top
=
event
->
y
;
...
...
@@ -1115,8 +1121,10 @@ static void X11DRV_GravityNotify( HWND hwnd, XEvent *xev )
event
->
x
,
event
->
y
);
X11DRV_X_to_window_rect
(
data
,
&
rect
);
window_rect
=
data
->
window_rect
;
release_win_data
(
data
);
if
(
data
->
window_rect
.
left
!=
rect
.
left
||
data
->
window_rect
.
top
!=
rect
.
top
)
if
(
window_rect
.
left
!=
rect
.
left
||
window_rect
.
top
!=
rect
.
top
)
SetWindowPos
(
hwnd
,
0
,
rect
.
left
,
rect
.
top
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOCOPYBITS
);
}
...
...
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