Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
70ef99e5
Commit
70ef99e5
authored
Apr 10, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Make sure to flush painting operations before moving a window.
parent
185157cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
window.c
dlls/winex11.drv/window.c
+1
-8
winpos.c
dlls/winex11.drv/winpos.c
+8
-1
No files found.
dlls/winex11.drv/window.c
View file @
70ef99e5
...
...
@@ -549,6 +549,7 @@ static void sync_gl_drawable(Display *display, struct x11drv_win_data *data)
data
->
pixmap
=
pix
;
data
->
gl_drawable
=
glxp
;
XFlush
(
display
);
wine_tsx11_unlock
();
SetPropA
(
data
->
hwnd
,
gl_drawable_prop
,
(
HANDLE
)
data
->
gl_drawable
);
...
...
@@ -1020,14 +1021,6 @@ void X11DRV_sync_client_position( Display *display, struct x11drv_win_data *data
}
if
(
data
->
gl_drawable
&&
(
mask
&
(
CWWidth
|
CWHeight
)))
sync_gl_drawable
(
display
,
data
);
/* make sure the changes get to the server before we start painting */
if
(
data
->
client_window
||
data
->
gl_drawable
)
{
wine_tsx11_lock
();
XFlush
(
display
);
wine_tsx11_unlock
();
}
}
...
...
dlls/winex11.drv/winpos.c
View file @
70ef99e5
...
...
@@ -235,7 +235,6 @@ static void map_window( Display *display, struct x11drv_win_data *data, DWORD ne
X11DRV_sync_window_style
(
display
,
data
);
wine_tsx11_lock
();
XMapWindow
(
display
,
data
->
whole_window
);
XFlush
(
display
);
wine_tsx11_unlock
();
}
else
set_xembed_flags
(
display
,
data
,
XEMBED_MAPPED
);
...
...
@@ -471,6 +470,10 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
move_window_bits
(
data
,
&
valid_rects
[
1
],
&
valid_rects
[
0
],
&
old_client_rect
);
}
wine_tsx11_lock
();
XFlush
(
gdi_display
);
/* make sure painting is done before we move the window */
wine_tsx11_unlock
();
X11DRV_sync_client_position
(
display
,
data
,
swp_flags
,
&
old_client_rect
,
&
old_whole_rect
);
if
(
!
data
->
whole_window
)
return
;
...
...
@@ -519,6 +522,10 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
update_net_wm_states
(
display
,
data
);
}
}
wine_tsx11_lock
();
XFlush
(
display
);
/* make sure changes are done before we start painting again */
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