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
bc602c30
Commit
bc602c30
authored
Feb 11, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Return the window paint flags in the get_visible_region request.
parent
ca5746ad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
3 deletions
+9
-3
server_protocol.h
include/wine/server_protocol.h
+3
-1
protocol.def
server/protocol.def
+1
-0
request.h
server/request.h
+3
-2
trace.c
server/trace.c
+1
-0
window.c
server/window.c
+1
-0
No files found.
include/wine/server_protocol.h
View file @
bc602c30
...
...
@@ -3415,8 +3415,10 @@ struct get_visible_region_reply
user_handle_t
top_win
;
rectangle_t
top_rect
;
rectangle_t
win_rect
;
unsigned
int
paint_flags
;
data_size_t
total_size
;
/* VARARG(region,rectangles); */
char
__pad_52
[
4
];
};
...
...
@@ -5715,6 +5717,6 @@ union generic_reply
struct
set_suspend_context_reply
set_suspend_context_reply
;
};
#define SERVER_PROTOCOL_VERSION 43
8
#define SERVER_PROTOCOL_VERSION 43
9
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
bc602c30
...
...
@@ -2460,6 +2460,7 @@ enum coords_relative
user_handle_t top_win; /* top window to clip against */
rectangle_t top_rect; /* top window visible rect with screen coords */
rectangle_t win_rect; /* window rect in screen coords */
unsigned int paint_flags; /* paint flags (from SET_WINPOS_* flags) */
data_size_t total_size; /* total size of the resulting region */
VARARG(region,rectangles); /* list of rectangles for the region (in screen coords) */
@END
...
...
server/request.h
View file @
bc602c30
...
...
@@ -1626,8 +1626,9 @@ C_ASSERT( sizeof(struct get_visible_region_request) == 24 );
C_ASSERT
(
FIELD_OFFSET
(
struct
get_visible_region_reply
,
top_win
)
==
8
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_visible_region_reply
,
top_rect
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_visible_region_reply
,
win_rect
)
==
28
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_visible_region_reply
,
total_size
)
==
44
);
C_ASSERT
(
sizeof
(
struct
get_visible_region_reply
)
==
48
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_visible_region_reply
,
paint_flags
)
==
44
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_visible_region_reply
,
total_size
)
==
48
);
C_ASSERT
(
sizeof
(
struct
get_visible_region_reply
)
==
56
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_surface_region_request
,
window
)
==
12
);
C_ASSERT
(
sizeof
(
struct
get_surface_region_request
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_surface_region_reply
,
visible_rect
)
==
8
);
...
...
server/trace.c
View file @
bc602c30
...
...
@@ -2926,6 +2926,7 @@ static void dump_get_visible_region_reply( const struct get_visible_region_reply
fprintf
(
stderr
,
" top_win=%08x"
,
req
->
top_win
);
dump_rectangle
(
", top_rect="
,
&
req
->
top_rect
);
dump_rectangle
(
", win_rect="
,
&
req
->
win_rect
);
fprintf
(
stderr
,
", paint_flags=%08x"
,
req
->
paint_flags
);
fprintf
(
stderr
,
", total_size=%u"
,
req
->
total_size
);
dump_varargs_rectangles
(
", region="
,
cur_size
);
}
...
...
server/window.c
View file @
bc602c30
...
...
@@ -2434,6 +2434,7 @@ DECL_HANDLER(get_visible_region)
reply
->
win_rect
.
right
=
win
->
client_rect
.
right
-
win
->
client_rect
.
left
;
reply
->
win_rect
.
bottom
=
win
->
client_rect
.
bottom
-
win
->
client_rect
.
top
;
}
reply
->
paint_flags
=
win
->
paint_flags
&
PAINT_CLIENT_FLAGS
;
}
...
...
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