mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
xdg-shell{,-v6}: fix compare_xdg_surface_toplevel_state
This commit is contained in:
parent
cc89906ddf
commit
a59774f364
2 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ bool compare_xdg_surface_toplevel_state(struct wlr_xdg_toplevel *state) {
|
||||||
// last configure is actually the current state, just use it
|
// last configure is actually the current state, just use it
|
||||||
configured.state = state->current;
|
configured.state = state->current;
|
||||||
configured.width = state->base->surface->current->width;
|
configured.width = state->base->surface->current->width;
|
||||||
configured.height = state->base->surface->current->width;
|
configured.height = state->base->surface->current->height;
|
||||||
} else {
|
} else {
|
||||||
struct wlr_xdg_surface_configure *configure =
|
struct wlr_xdg_surface_configure *configure =
|
||||||
wl_container_of(state->base->configure_list.prev, configure, link);
|
wl_container_of(state->base->configure_list.prev, configure, link);
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,7 @@ bool compare_xdg_surface_v6_toplevel_state(struct wlr_xdg_toplevel_v6 *state) {
|
||||||
// last configure is actually the current state, just use it
|
// last configure is actually the current state, just use it
|
||||||
configured.state = state->current;
|
configured.state = state->current;
|
||||||
configured.width = state->base->surface->current->width;
|
configured.width = state->base->surface->current->width;
|
||||||
configured.height = state->base->surface->current->width;
|
configured.height = state->base->surface->current->height;
|
||||||
} else {
|
} else {
|
||||||
struct wlr_xdg_surface_v6_configure *configure =
|
struct wlr_xdg_surface_v6_configure *configure =
|
||||||
wl_container_of(state->base->configure_list.prev, configure, link);
|
wl_container_of(state->base->configure_list.prev, configure, link);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue