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
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
event.c
dlls/winex11.drv/event.c
+8
-5
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 )
...
@@ -829,21 +829,24 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
rect
.
right
=
event
->
x
+
event
->
width
;
rect
.
right
=
event
->
x
+
event
->
width
;
rect
.
bottom
=
event
->
y
+
event
->
height
;
rect
.
bottom
=
event
->
y
+
event
->
height
;
if
(
event
->
window
!=
data
->
client_window
)
{
if
(
data
->
surface
)
if
(
data
->
surface
)
{
{
surface_region
=
expose_surface
(
data
->
surface
,
&
rect
);
surface_region
=
expose_surface
(
data
->
surface
,
&
rect
);
if
(
!
surface_region
)
flags
=
0
;
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
(
data
->
vis
.
visualid
!=
default_visual
.
visualid
)
if
(
data
->
vis
.
visualid
!=
default_visual
.
visualid
)
data
->
surface
->
funcs
->
flush
(
data
->
surface
);
data
->
surface
->
funcs
->
flush
(
data
->
surface
);
}
}
if
(
event
->
window
!=
root_window
)
{
OffsetRect
(
&
rect
,
data
->
whole_rect
.
left
-
data
->
client_rect
.
left
,
OffsetRect
(
&
rect
,
data
->
whole_rect
.
left
-
data
->
client_rect
.
left
,
data
->
whole_rect
.
top
-
data
->
client_rect
.
top
);
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
)
if
(
GetWindowLongW
(
data
->
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_LAYOUTRTL
)
mirror_rect
(
&
data
->
client_rect
,
&
rect
);
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
...
@@ -1383,11 +1383,12 @@ Window create_client_window( struct x11drv_win_data *data, const XVisualInfo *vi
attr
.
bit_gravity
=
NorthWestGravity
;
attr
.
bit_gravity
=
NorthWestGravity
;
attr
.
win_gravity
=
NorthWestGravity
;
attr
.
win_gravity
=
NorthWestGravity
;
attr
.
backing_store
=
NotUseful
;
attr
.
backing_store
=
NotUseful
;
attr
.
event_mask
=
ExposureMask
;
data
->
client_window
=
XCreateWindow
(
data
->
display
,
data
->
whole_window
,
x
,
y
,
cx
,
cy
,
data
->
client_window
=
XCreateWindow
(
data
->
display
,
data
->
whole_window
,
x
,
y
,
cx
,
cy
,
0
,
default_visual
.
depth
,
InputOutput
,
visual
->
visual
,
0
,
default_visual
.
depth
,
InputOutput
,
visual
->
visual
,
CWBitGravity
|
CWWinGravity
|
CWBackingStore
|
CWColormap
,
CWBitGravity
|
CWWinGravity
|
CWBackingStore
|
&
attr
);
CWColormap
|
CWEventMask
,
&
attr
);
if
(
!
data
->
client_window
)
return
0
;
if
(
!
data
->
client_window
)
return
0
;
XSaveContext
(
data
->
display
,
data
->
client_window
,
winContext
,
(
char
*
)
data
->
hwnd
);
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