mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
Fix evince fullscreen under xwayland
This commit is contained in:
parent
a7a221698e
commit
bc68f26960
1 changed files with 9 additions and 11 deletions
|
@ -1346,17 +1346,15 @@ struct wlr_xwm *xwm_create(struct wlr_xwayland *wlr_xwayland) {
|
||||||
|
|
||||||
void wlr_xwayland_surface_set_maximized(struct wlr_xwayland *wlr_xwayland,
|
void wlr_xwayland_surface_set_maximized(struct wlr_xwayland *wlr_xwayland,
|
||||||
struct wlr_xwayland_surface *surface, bool maximized) {
|
struct wlr_xwayland_surface *surface, bool maximized) {
|
||||||
if (xsurface_is_maximized(surface) != maximized) {
|
|
||||||
surface->maximized_horz = maximized;
|
surface->maximized_horz = maximized;
|
||||||
surface->maximized_vert = maximized;
|
surface->maximized_vert = maximized;
|
||||||
xsurface_set_net_wm_state(surface);
|
xsurface_set_net_wm_state(surface);
|
||||||
}
|
xcb_flush(surface->xwm->xcb_conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland *wlr_xwayland,
|
void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland *wlr_xwayland,
|
||||||
struct wlr_xwayland_surface *surface, bool fullscreen) {
|
struct wlr_xwayland_surface *surface, bool fullscreen) {
|
||||||
if (surface->fullscreen != fullscreen) {
|
|
||||||
surface->fullscreen = fullscreen;
|
surface->fullscreen = fullscreen;
|
||||||
xsurface_set_net_wm_state(surface);
|
xsurface_set_net_wm_state(surface);
|
||||||
}
|
xcb_flush(surface->xwm->xcb_conn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue