aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwm.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-30 03:25:05 -0500
committerGitHub <noreply@github.com>2017-11-30 03:25:05 -0500
commit5d7eb438d9dde68ce185daf977a0c27a1398bbc9 (patch)
treec0fc4c18bbc930e80e162ccd217e751380c1372f /xwayland/xwm.c
parentbc113c16aab5fed2a937ddb8b2b560eaef28620d (diff)
parentcc2468923b134cdf6d980b2930cd80f0d15e96e3 (diff)
Merge pull request #437 from emersion/fullscreen
Fullscreen support
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r--xwayland/xwm.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index fa0522d6..d36822b5 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -1344,18 +1344,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);
}