Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
wlroots
Commits
7f9d0411
Commit
7f9d0411
authored
Apr 27, 2018
by
Guido Gunther
Browse files
phosh-private: don't mess with the output_box
This fixes surface positioning after rotation, closes #1
parent
6a9c18be
Changes
1
Hide whitespace changes
Inline
Side-by-side
rootston/phosh.c
View file @
7f9d0411
...
...
@@ -44,22 +44,6 @@ static void phosh_rotate_display(struct wl_client *client,
}
wlr_output_set_transform
(
shell
->
panel
->
output
,
transform
);
const
struct
wlr_box
*
output_box
=
wlr_output_layout_get_box
(
shell
->
desktop
->
layout
,
shell
->
panel
->
output
);
/* Notify surfaces about their new size */
struct
roots_view
*
view
;
wl_list_for_each
(
view
,
&
shell
->
desktop
->
views
,
link
)
{
if
(
view
->
maximized
==
true
)
{
view_move_resize
(
view
,
output_box
->
x
,
output_box
->
y
,
output_box
->
width
,
output_box
->
height
);
}
}
}
...
...
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