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
8322fc6a
Commit
8322fc6a
authored
Aug 10, 2004
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Aug 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid holding x11drv lock while calling function that grabs gdi
lock. Prevents potential deadly embrace.
parent
84232099
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
winpos.c
dlls/x11drv/winpos.c
+5
-1
No files found.
dlls/x11drv/winpos.c
View file @
8322fc6a
...
...
@@ -959,7 +959,6 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
wine_tsx11_unlock
();
}
wine_tsx11_lock
();
if
(
bChangePos
)
X11DRV_sync_whole_window_position
(
display
,
wndPtr
,
!
(
winpos
->
flags
&
SWP_NOZORDER
)
);
else
...
...
@@ -973,7 +972,9 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
(
winpos
->
flags
&
SWP_FRAMECHANGED
))
{
/* if we moved the client area, repaint the whole non-client window */
wine_tsx11_lock
();
XClearArea
(
display
,
get_whole_window
(
wndPtr
),
0
,
0
,
0
,
0
,
True
);
wine_tsx11_unlock
();
winpos
->
flags
|=
SWP_FRAMECHANGED
;
}
if
(
winpos
->
flags
&
SWP_SHOWWINDOW
)
...
...
@@ -986,8 +987,11 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
{
/* resizing from zero size to non-zero -> map */
TRACE
(
"mapping non zero size or off-screen win %p
\n
"
,
winpos
->
hwnd
);
wine_tsx11_lock
();
XMapWindow
(
display
,
get_whole_window
(
wndPtr
)
);
wine_tsx11_unlock
();
}
wine_tsx11_lock
();
XFlush
(
display
);
/* FIXME: should not be necessary */
wine_tsx11_unlock
();
}
...
...
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