commit fdba2f33e3269e71a6060a442da718a33eb7ed5b
parent b3a5bda7e1d370938780613edf305a04c51c1f00
Author: shrub <maybeshrub@gmail.com>
Date: Fri, 6 Mar 2026 20:09:16 +0000
move to standalone repo
Diffstat:
5 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,26 @@
+*.o
+*.lo
+.*.sw*
+
+protocol/server-decoration-protocol.c
+protocol/server-decoration-server-protocol.h
+protocol/swc-protocol.c
+protocol/swc-server-protocol.h
+protocol/wayland-drm-protocol.c
+protocol/wayland-drm-server-protocol.h
+protocol/xdg-decoration-unstable-v1-protocol.c
+protocol/xdg-decoration-unstable-v1-server-protocol.h
+protocol/xdg-shell-protocol.c
+protocol/xdg-shell-server-protocol.h
+protocol/linux-dmabuf-unstable-v1-protocol.c
+protocol/linux-dmabuf-unstable-v1-server-protocol.h
+
+/.deps/
+/swc.pc
+/libswc/libswc.a
+/libswc/libswc.so*
+/launch/swc-launch
+/cursor/convert_font
+/cursor/cursor_data.h
+/example/wm
+
diff --git a/libswc/compositor.c b/libswc/compositor.c
@@ -1149,6 +1149,7 @@ compositor_view_set_border_color(struct compositor_view *view, uint32_t outcolor
update(&view->base);
}
+
/* }}} */
static void
diff --git a/libswc/pointer.c b/libswc/pointer.c
@@ -427,6 +427,7 @@ pointer_initialize(struct pointer *pointer)
{
struct screen *screen = wl_container_of(swc.screens.next, screen, link);
struct swc_rectangle *geom = &screen->base.geometry;
+
/* Center cursor in the geometry of the first screen. */
screen = wl_container_of(swc.screens.next, screen, link);
pointer->x = wl_fixed_from_int(geom->x + geom->width / 2);
diff --git a/libswc/subcompositor.c b/libswc/subcompositor.c
@@ -48,7 +48,6 @@ get_subsurface(struct wl_client *client, struct wl_resource *resource,
wl_resource_post_no_memory(resource);
return;
}
-
surface->subsurface = subsurface;
}
diff --git a/libswc/window.c b/libswc/window.c
@@ -194,6 +194,7 @@ EXPORT void
swc_window_set_fullscreen(struct swc_window *base, struct swc_screen *screen)
{
struct window *window = INTERNAL(base);
+
struct swc_rectangle geom;
swc_window_get_geometry(base, &geom);