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
376c218a
Commit
376c218a
authored
May 24, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Removed unused visible rect from get_window_rectangles request.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fde11104
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
22 deletions
+5
-22
server_protocol.h
include/wine/server_protocol.h
+1
-2
protocol.def
server/protocol.def
+0
-1
request.h
server/request.h
+2
-3
trace.c
server/trace.c
+0
-1
window.c
server/window.c
+2
-15
No files found.
include/wine/server_protocol.h
View file @
376c218a
...
...
@@ -3682,7 +3682,6 @@ struct get_window_rectangles_reply
{
struct
reply_header
__header
;
rectangle_t
window
;
rectangle_t
visible
;
rectangle_t
client
;
};
enum
coords_relative
...
...
@@ -6511,6 +6510,6 @@ union generic_reply
struct
terminate_job_reply
terminate_job_reply
;
};
#define SERVER_PROTOCOL_VERSION 55
2
#define SERVER_PROTOCOL_VERSION 55
3
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
376c218a
...
...
@@ -2643,7 +2643,6 @@ enum message_type
int relative; /* coords relative to (see below) */
@REPLY
rectangle_t window; /* window rectangle */
rectangle_t visible; /* visible part of the window rectangle */
rectangle_t client; /* client rectangle */
@END
enum coords_relative
...
...
server/request.h
View file @
376c218a
...
...
@@ -1767,9 +1767,8 @@ C_ASSERT( FIELD_OFFSET(struct get_window_rectangles_request, handle) == 12 );
C_ASSERT
(
FIELD_OFFSET
(
struct
get_window_rectangles_request
,
relative
)
==
16
);
C_ASSERT
(
sizeof
(
struct
get_window_rectangles_request
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_window_rectangles_reply
,
window
)
==
8
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_window_rectangles_reply
,
visible
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_window_rectangles_reply
,
client
)
==
40
);
C_ASSERT
(
sizeof
(
struct
get_window_rectangles_reply
)
==
56
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_window_rectangles_reply
,
client
)
==
24
);
C_ASSERT
(
sizeof
(
struct
get_window_rectangles_reply
)
==
40
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_window_text_request
,
handle
)
==
12
);
C_ASSERT
(
sizeof
(
struct
get_window_text_request
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_window_text_reply
,
length
)
==
8
);
...
...
server/trace.c
View file @
376c218a
...
...
@@ -3222,7 +3222,6 @@ static void dump_get_window_rectangles_request( const struct get_window_rectangl
static
void
dump_get_window_rectangles_reply
(
const
struct
get_window_rectangles_reply
*
req
)
{
dump_rectangle
(
" window="
,
&
req
->
window
);
dump_rectangle
(
", visible="
,
&
req
->
visible
);
dump_rectangle
(
", client="
,
&
req
->
client
);
}
...
...
server/window.c
View file @
376c218a
...
...
@@ -2346,42 +2346,29 @@ DECL_HANDLER(get_window_rectangles)
if
(
!
win
)
return
;
reply
->
window
=
win
->
window_rect
;
reply
->
visible
=
win
->
visible_rect
;
reply
->
client
=
win
->
client_rect
;
switch
(
req
->
relative
)
{
case
COORDS_CLIENT
:
offset_rect
(
&
reply
->
window
,
-
win
->
client_rect
.
left
,
-
win
->
client_rect
.
top
);
offset_rect
(
&
reply
->
visible
,
-
win
->
client_rect
.
left
,
-
win
->
client_rect
.
top
);
offset_rect
(
&
reply
->
client
,
-
win
->
client_rect
.
left
,
-
win
->
client_rect
.
top
);
if
(
win
->
ex_style
&
WS_EX_LAYOUTRTL
)
{
mirror_rect
(
&
win
->
client_rect
,
&
reply
->
window
);
mirror_rect
(
&
win
->
client_rect
,
&
reply
->
visible
);
}
if
(
win
->
ex_style
&
WS_EX_LAYOUTRTL
)
mirror_rect
(
&
win
->
client_rect
,
&
reply
->
window
);
break
;
case
COORDS_WINDOW
:
offset_rect
(
&
reply
->
window
,
-
win
->
window_rect
.
left
,
-
win
->
window_rect
.
top
);
offset_rect
(
&
reply
->
visible
,
-
win
->
window_rect
.
left
,
-
win
->
window_rect
.
top
);
offset_rect
(
&
reply
->
client
,
-
win
->
window_rect
.
left
,
-
win
->
window_rect
.
top
);
if
(
win
->
ex_style
&
WS_EX_LAYOUTRTL
)
{
mirror_rect
(
&
win
->
window_rect
,
&
reply
->
visible
);
mirror_rect
(
&
win
->
window_rect
,
&
reply
->
client
);
}
if
(
win
->
ex_style
&
WS_EX_LAYOUTRTL
)
mirror_rect
(
&
win
->
window_rect
,
&
reply
->
client
);
break
;
case
COORDS_PARENT
:
if
(
win
->
parent
&&
win
->
parent
->
ex_style
&
WS_EX_LAYOUTRTL
)
{
mirror_rect
(
&
win
->
parent
->
client_rect
,
&
reply
->
window
);
mirror_rect
(
&
win
->
parent
->
client_rect
,
&
reply
->
visible
);
mirror_rect
(
&
win
->
parent
->
client_rect
,
&
reply
->
client
);
}
break
;
case
COORDS_SCREEN
:
client_to_screen_rect
(
win
->
parent
,
&
reply
->
window
);
client_to_screen_rect
(
win
->
parent
,
&
reply
->
visible
);
client_to_screen_rect
(
win
->
parent
,
&
reply
->
client
);
break
;
default
:
...
...
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