mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
Remove unused SWAY_VIEW_TYPES
This commit is contained in:
parent
679c51e421
commit
8eff00f723
7 changed files with 34 additions and 40 deletions
|
|
@ -42,7 +42,7 @@ static void create_unmanaged(struct wlr_xwayland_surface *xsurface) {
|
|||
|
||||
|
||||
static bool assert_xwayland(struct sway_view *view) {
|
||||
return sway_assert(view->type == SWAY_XWAYLAND_VIEW,
|
||||
return sway_assert(view->type == SWAY_VIEW_XWAYLAND,
|
||||
"Expected xwayland view!");
|
||||
}
|
||||
|
||||
|
|
@ -185,7 +185,7 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
|
|||
return;
|
||||
}
|
||||
|
||||
struct sway_view *view = view_create(SWAY_XWAYLAND_VIEW, &view_impl);
|
||||
struct sway_view *view = view_create(SWAY_VIEW_XWAYLAND, &view_impl);
|
||||
if (!sway_assert(view, "Failed to allocate view")) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue