Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wayland
weston
Commits
4e07236e
Commit
4e07236e
authored
Sep 29, 2012
by
Scott Moreau
Committed by
Kristian Høgsberg
Oct 10, 2012
Browse files
toytoolkit: Take into account transform when sending output allocation.
parent
b36f7ef9
Changes
1
Show whitespace changes
Inline
Side-by-side
clients/window.c
View file @
4e07236e
...
...
@@ -238,6 +238,7 @@ struct output {
struct
wl_output
*
output
;
struct
rectangle
allocation
;
struct
wl_list
link
;
int
transform
;
display_output_handler_t
destroy_handler
;
void
*
user_data
;
...
...
@@ -3454,6 +3455,7 @@ display_handle_geometry(void *data,
output
->
allocation
.
x
=
x
;
output
->
allocation
.
y
=
y
;
output
->
transform
=
transform
;
}
static
void
...
...
@@ -3546,9 +3548,22 @@ output_set_destroy_handler(struct output *output,
}
void
output_get_allocation
(
struct
output
*
output
,
struct
rectangle
*
allocation
)
{
*
allocation
=
output
->
allocation
;
output_get_allocation
(
struct
output
*
output
,
struct
rectangle
*
base
)
{
struct
rectangle
allocation
=
output
->
allocation
;
switch
(
output
->
transform
)
{
case
WL_OUTPUT_TRANSFORM_90
:
case
WL_OUTPUT_TRANSFORM_270
:
case
WL_OUTPUT_TRANSFORM_FLIPPED_90
:
case
WL_OUTPUT_TRANSFORM_FLIPPED_270
:
/* Swap width and height */
allocation
.
width
=
output
->
allocation
.
height
;
allocation
.
height
=
output
->
allocation
.
width
;
break
;
}
*
base
=
allocation
;
}
struct
wl_output
*
...
...
Bugzilla Migration User
@bugzilla-migration
mentioned in issue
#28
·
Jun 08, 2018
mentioned in issue
#28
mentioned in issue #28
Toggle commit list
Write
Preview
Supports
Markdown
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