mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
rootston: damage whole output when entering/leaving fullscreen
This commit is contained in:
parent
2a855e6282
commit
a7cba7d83f
3 changed files with 4 additions and 1 deletions
|
@ -39,6 +39,7 @@ void output_remove_notify(struct wl_listener *listener, void *data);
|
||||||
struct roots_view;
|
struct roots_view;
|
||||||
struct roots_drag_icon;
|
struct roots_drag_icon;
|
||||||
|
|
||||||
|
void output_damage_whole(struct roots_output *output);
|
||||||
void output_damage_whole_view(struct roots_output *output,
|
void output_damage_whole_view(struct roots_output *output,
|
||||||
struct roots_view *view);
|
struct roots_view *view);
|
||||||
void output_damage_from_view(struct roots_output *output,
|
void output_damage_from_view(struct roots_output *output,
|
||||||
|
|
|
@ -243,6 +243,7 @@ void view_set_fullscreen(struct roots_view *view, bool fullscreen,
|
||||||
|
|
||||||
roots_output->fullscreen_view = view;
|
roots_output->fullscreen_view = view;
|
||||||
view->fullscreen_output = roots_output;
|
view->fullscreen_output = roots_output;
|
||||||
|
output_damage_whole(roots_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (was_fullscreen && !fullscreen) {
|
if (was_fullscreen && !fullscreen) {
|
||||||
|
@ -250,6 +251,7 @@ void view_set_fullscreen(struct roots_view *view, bool fullscreen,
|
||||||
view->saved.height);
|
view->saved.height);
|
||||||
view_rotate(view, view->saved.rotation);
|
view_rotate(view, view->saved.rotation);
|
||||||
|
|
||||||
|
output_damage_whole(view->fullscreen_output);
|
||||||
view->fullscreen_output->fullscreen_view = NULL;
|
view->fullscreen_output->fullscreen_view = NULL;
|
||||||
view->fullscreen_output = NULL;
|
view->fullscreen_output = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -493,7 +493,7 @@ static void output_handle_frame(struct wl_listener *listener, void *data) {
|
||||||
render_output(output);
|
render_output(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void output_damage_whole(struct roots_output *output) {
|
void output_damage_whole(struct roots_output *output) {
|
||||||
int width, height;
|
int width, height;
|
||||||
wlr_output_transformed_resolution(output->wlr_output, &width, &height);
|
wlr_output_transformed_resolution(output->wlr_output, &width, &height);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue