aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-20 19:52:47 +0100
committeremersion <contact@emersion.fr>2017-11-20 19:52:47 +0100
commitbc68f269605ddd681b3ab968bdf80a72f3618982 (patch)
treedca8d7096f84835d7f0962147a0ae03281c2fe54 /xwayland
parenta7a221698ebbb351a0e4d258be3e8c08c50b96a4 (diff)
Fix evince fullscreen under xwayland
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 36722591..cd0a98f5 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -1345,18 +1345,16 @@ struct wlr_xwm *xwm_create(struct wlr_xwayland *wlr_xwayland) {
}
void wlr_xwayland_surface_set_maximized(struct wlr_xwayland *wlr_xwayland,
- struct wlr_xwayland_surface *surface, bool maximized) {
- if (xsurface_is_maximized(surface) != maximized) {
- surface->maximized_horz = maximized;
- surface->maximized_vert = maximized;
- xsurface_set_net_wm_state(surface);
- }
+ struct wlr_xwayland_surface *surface, bool maximized) {
+ surface->maximized_horz = maximized;
+ surface->maximized_vert = maximized;
+ xsurface_set_net_wm_state(surface);
+ xcb_flush(surface->xwm->xcb_conn);
}
void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland *wlr_xwayland,
- struct wlr_xwayland_surface *surface, bool fullscreen) {
- if (surface->fullscreen != fullscreen) {
- surface->fullscreen = fullscreen;
- xsurface_set_net_wm_state(surface);
- }
+ struct wlr_xwayland_surface *surface, bool fullscreen) {
+ surface->fullscreen = fullscreen;
+ xsurface_set_net_wm_state(surface);
+ xcb_flush(surface->xwm->xcb_conn);
}