mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
rootston: fix crash with fullscreen surfaces
Fixes fullscreen mode in e.g. RetroArch and ioquake3.
This commit is contained in:
parent
bcf48931db
commit
57edfacba4
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ static void surface_for_each_surface(struct wlr_surface *surface,
|
||||||
static void view_for_each_surface(struct roots_view *view,
|
static void view_for_each_surface(struct roots_view *view,
|
||||||
struct layout_data *layout_data, wlr_surface_iterator_func_t iterator,
|
struct layout_data *layout_data, wlr_surface_iterator_func_t iterator,
|
||||||
void *user_data) {
|
void *user_data) {
|
||||||
|
if (!view->wlr_surface) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
layout_data->x = view->box.x;
|
layout_data->x = view->box.x;
|
||||||
layout_data->y = view->box.y;
|
layout_data->y = view->box.y;
|
||||||
layout_data->width = view->wlr_surface->current.width;
|
layout_data->width = view->wlr_surface->current.width;
|
||||||
|
|
Loading…
Reference in a new issue