mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
surface: make pending and current embedded structs
This commit is contained in:
parent
64836ddfe7
commit
3c0d672ebd
11 changed files with 127 additions and 134 deletions
|
|
@ -158,8 +158,8 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
|
|||
|
||||
view_apply_damage(view);
|
||||
|
||||
int width = wlr_surface->current->width;
|
||||
int height = wlr_surface->current->height;
|
||||
int width = wlr_surface->current.width;
|
||||
int height = wlr_surface->current.height;
|
||||
view_update_size(view, width, height);
|
||||
|
||||
double x = view->x;
|
||||
|
|
@ -236,8 +236,8 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
|
|||
return;
|
||||
}
|
||||
view->type = ROOTS_WL_SHELL_VIEW;
|
||||
view->width = surface->surface->current->width;
|
||||
view->height = surface->surface->current->height;
|
||||
view->width = surface->surface->current.width;
|
||||
view->height = surface->surface->current.height;
|
||||
|
||||
view->wl_shell_surface = surface;
|
||||
view->roots_wl_shell_surface = roots_surface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue