Skip to content

Commit 6f20285

Browse files
committed
Upgrade wlroots to v0.19
1 parent 6efb3b5 commit 6f20285

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
branches: [ master ]
77

8+
env:
9+
WLROOTS_VERSION: 0.19
10+
811
jobs:
912
compile:
1013
runs-on: ubuntu-latest
@@ -32,7 +35,7 @@ jobs:
3235
pacman -Syu --noconfirm xcb-util-wm seatd git clang meson libinput libdrm mesa libxkbcommon wayland wayland-protocols xorg-server-xwayland scdoc
3336
3437
- name: Fetch wlroots as a subproject
35-
run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b 0.18
38+
run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b $WLROOTS_VERSION
3639

3740
- name: Compile Cage (XWayland=${{ matrix.xwayland }})
3841
run: |
@@ -52,7 +55,7 @@ jobs:
5255
pacman-key --init
5356
pacman -Syu --noconfirm xcb-util-wm seatd git clang meson libinput libdrm mesa libxkbcommon wayland wayland-protocols xorg-server-xwayland scdoc hwdata
5457
- name: Fetch wlroots as a subproject
55-
run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b 0.18
58+
run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b $WLROOTS_VERSION
5659
- name: Check for formatting changes
5760
run: |
5861
meson build-clang-format -Dwlroots:xwayland=enabled
@@ -71,7 +74,7 @@ jobs:
7174
pacman-key --init
7275
pacman -Syu --noconfirm xcb-util-wm seatd git clang meson libinput libdrm mesa libxkbcommon wayland wayland-protocols xorg-server-xwayland scdoc hwdata
7376
- name: Fetch wlroots as a subproject
74-
run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b 0.18
77+
run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b $WLROOTS_VERSION
7578
- name: Run scan-build
7679
run: |
7780
meson build-scan-build -Dwlroots:xwayland=enabled

cage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ main(int argc, char *argv[])
454454
goto end;
455455
}
456456

457-
struct wlr_presentation *presentation = wlr_presentation_create(server.wl_display, server.backend);
457+
struct wlr_presentation *presentation = wlr_presentation_create(server.wl_display, server.backend, 2);
458458
if (!presentation) {
459459
wlr_log(WLR_ERROR, "Unable to create the presentation interface");
460460
ret = 1;

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if is_freebsd
3535
)
3636
endif
3737

38-
wlroots = dependency('wlroots-0.18', fallback: ['wlroots', 'wlroots'])
38+
wlroots = dependency('wlroots-0.19', fallback: ['wlroots', 'wlroots'])
3939
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
4040
wayland_server = dependency('wayland-server')
4141
xkbcommon = dependency('xkbcommon')

seat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ seat_set_focus(struct cg_seat *seat, struct cg_view *view)
937937
#if CAGE_HAS_XWAYLAND
938938
if (view->type == CAGE_XWAYLAND_VIEW) {
939939
struct cg_xwayland_view *xwayland_view = xwayland_view_from_view(view);
940-
if (!wlr_xwayland_or_surface_wants_focus(xwayland_view->xwayland_surface)) {
940+
if (!wlr_xwayland_surface_override_redirect_wants_focus(xwayland_view->xwayland_surface)) {
941941
return;
942942
}
943943
}

xdg_shell.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,10 @@ static void
128128
get_geometry(struct cg_view *view, int *width_out, int *height_out)
129129
{
130130
struct cg_xdg_shell_view *xdg_shell_view = xdg_shell_view_from_view(view);
131-
struct wlr_box geom;
131+
struct wlr_xdg_surface *xdg_surface = xdg_shell_view->xdg_toplevel->base;
132132

133-
wlr_xdg_surface_get_geometry(xdg_shell_view->xdg_toplevel->base, &geom);
134-
*width_out = geom.width;
135-
*height_out = geom.height;
133+
*width_out = xdg_surface->geometry.width;
134+
*height_out = xdg_surface->geometry.height;
136135
}
137136

138137
static bool

xwayland.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ maximize(struct cg_view *view, int output_width, int output_height)
9292
struct cg_xwayland_view *xwayland_view = xwayland_view_from_view(view);
9393
wlr_xwayland_surface_configure(xwayland_view->xwayland_surface, view->lx, view->ly, output_width,
9494
output_height);
95-
wlr_xwayland_surface_set_maximized(xwayland_view->xwayland_surface, true);
95+
wlr_xwayland_surface_set_maximized(xwayland_view->xwayland_surface, true, true);
9696
}
9797

9898
static void

0 commit comments

Comments
 (0)