mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
Fix messed up outputs after fullscreen
This commit is contained in:
parent
dcb168914e
commit
5a664e1e46
1 changed files with 2 additions and 1 deletions
|
@ -379,7 +379,7 @@ static void output_fullscreen_surface_reset(struct wlr_output *output) {
|
||||||
static void output_fullscreen_surface_handle_commit(
|
static void output_fullscreen_surface_handle_commit(
|
||||||
struct wl_listener *listener, void *data) {
|
struct wl_listener *listener, void *data) {
|
||||||
struct wlr_output *output = wl_container_of(listener, output,
|
struct wlr_output *output = wl_container_of(listener, output,
|
||||||
fullscreen_surface_destroy);
|
fullscreen_surface_commit);
|
||||||
output->needs_swap = true;
|
output->needs_swap = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,6 +393,7 @@ static void output_fullscreen_surface_handle_destroy(
|
||||||
void wlr_output_set_fullscreen_surface(struct wlr_output *output,
|
void wlr_output_set_fullscreen_surface(struct wlr_output *output,
|
||||||
struct wlr_surface *surface) {
|
struct wlr_surface *surface) {
|
||||||
// TODO: hardware fullscreen
|
// TODO: hardware fullscreen
|
||||||
|
|
||||||
if (output->fullscreen_surface == surface) {
|
if (output->fullscreen_surface == surface) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue