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
8373f8b6
Commit
8373f8b6
authored
Jan 23, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Handle Expose events on top-level client windows.
parent
951415b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
event.c
dlls/winex11.drv/event.c
+13
-10
window.c
dlls/winex11.drv/window.c
+3
-2
No files found.
dlls/winex11.drv/event.c
View file @
8373f8b6
...
...
@@ -829,21 +829,24 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
rect
.
right
=
event
->
x
+
event
->
width
;
rect
.
bottom
=
event
->
y
+
event
->
height
;
if
(
data
->
surface
)
if
(
event
->
window
!=
data
->
client_window
)
{
surface_region
=
expose_surface
(
data
->
surface
,
&
rect
);
if
(
!
surface_region
)
flags
=
0
;
if
(
data
->
vis
.
visualid
!=
default_visual
.
visualid
)
data
->
surface
->
funcs
->
flush
(
data
->
surface
);
}
if
(
data
->
surface
)
{
surface_region
=
expose_surface
(
data
->
surface
,
&
rect
);
if
(
!
surface_region
)
flags
=
0
;
else
OffsetRgn
(
surface_region
,
data
->
whole_rect
.
left
-
data
->
client_rect
.
left
,
data
->
whole_rect
.
top
-
data
->
client_rect
.
top
);
if
(
event
->
window
!=
root_window
)
{
if
(
data
->
vis
.
visualid
!=
default_visual
.
visualid
)
data
->
surface
->
funcs
->
flush
(
data
->
surface
);
}
OffsetRect
(
&
rect
,
data
->
whole_rect
.
left
-
data
->
client_rect
.
left
,
data
->
whole_rect
.
top
-
data
->
client_rect
.
top
);
if
(
surface_region
)
OffsetRgn
(
surface_region
,
data
->
whole_rect
.
left
-
data
->
client_rect
.
left
,
data
->
whole_rect
.
top
-
data
->
client_rect
.
top
);
}
if
(
event
->
window
!=
root_window
)
{
if
(
GetWindowLongW
(
data
->
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_LAYOUTRTL
)
mirror_rect
(
&
data
->
client_rect
,
&
rect
);
...
...
dlls/winex11.drv/window.c
View file @
8373f8b6
...
...
@@ -1383,11 +1383,12 @@ Window create_client_window( struct x11drv_win_data *data, const XVisualInfo *vi
attr
.
bit_gravity
=
NorthWestGravity
;
attr
.
win_gravity
=
NorthWestGravity
;
attr
.
backing_store
=
NotUseful
;
attr
.
event_mask
=
ExposureMask
;
data
->
client_window
=
XCreateWindow
(
data
->
display
,
data
->
whole_window
,
x
,
y
,
cx
,
cy
,
0
,
default_visual
.
depth
,
InputOutput
,
visual
->
visual
,
CWBitGravity
|
CWWinGravity
|
CWBackingStore
|
CWColormap
,
&
attr
);
CWBitGravity
|
CWWinGravity
|
CWBackingStore
|
CWColormap
|
CWEventMask
,
&
attr
);
if
(
!
data
->
client_window
)
return
0
;
XSaveContext
(
data
->
display
,
data
->
client_window
,
winContext
,
(
char
*
)
data
->
hwnd
);
...
...
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