mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland.c,xdg-deco.c: fix style
This commit is contained in:
parent
5747ede20d
commit
ff75b4cd26
2 changed files with 4 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ xdg_deco_request_mode(struct wl_listener *listener, void *data)
|
||||||
struct xdg_deco *xdg_deco = wl_container_of(listener, xdg_deco, request_mode);
|
struct xdg_deco *xdg_deco = wl_container_of(listener, xdg_deco, request_mode);
|
||||||
enum wlr_xdg_toplevel_decoration_v1_mode client_mode =
|
enum wlr_xdg_toplevel_decoration_v1_mode client_mode =
|
||||||
xdg_deco->wlr_decoration->requested_mode;
|
xdg_deco->wlr_decoration->requested_mode;
|
||||||
|
|
||||||
if (client_mode == WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_NONE) {
|
if (client_mode == WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_NONE) {
|
||||||
client_mode = rc.xdg_shell_server_side_deco
|
client_mode = rc.xdg_shell_server_side_deco
|
||||||
? WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE
|
? WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE
|
||||||
|
|
|
||||||
|
|
@ -103,9 +103,7 @@ handle_request_configure(struct wl_listener *listener, void *data)
|
||||||
view_min_size(view, &min_width, &min_height);
|
view_min_size(view, &min_width, &min_height);
|
||||||
|
|
||||||
wlr_xwayland_surface_configure(view->xwayland_surface,
|
wlr_xwayland_surface_configure(view->xwayland_surface,
|
||||||
event->x,
|
event->x, event->y, max(event->width, min_width),
|
||||||
event->y,
|
|
||||||
max(event->width, min_width),
|
|
||||||
max(event->height, min_height));
|
max(event->height, min_height));
|
||||||
damage_all_outputs(view->server);
|
damage_all_outputs(view->server);
|
||||||
}
|
}
|
||||||
|
|
@ -210,7 +208,8 @@ want_deco(struct view *view)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
handle_set_decorations(struct wl_listener *listener, void *data) {
|
handle_set_decorations(struct wl_listener *listener, void *data)
|
||||||
|
{
|
||||||
struct view *view = wl_container_of(listener, view, set_decorations);
|
struct view *view = wl_container_of(listener, view, set_decorations);
|
||||||
view_set_decorations(view, want_deco(view));
|
view_set_decorations(view, want_deco(view));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue