From d28bb6f8eeb05fbe563bac3e001f9d07cc65af77 Mon Sep 17 00:00:00 2001 From: Slendi Date: Tue, 30 Sep 2025 23:29:15 +0300 Subject: [PATCH] format Signed-off-by: Slendi --- launch_settings.cap | 34 ++++++++++++++++++++++++++++++++++ src/LunarWM_wayland.c | 8 ++++---- 2 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 launch_settings.cap diff --git a/launch_settings.cap b/launch_settings.cap new file mode 100644 index 0000000..fa0051c --- /dev/null +++ b/launch_settings.cap @@ -0,0 +1,34 @@ +{ + "rdocCaptureSettings": 1, + "settings": { + "autoStart": false, + "commandLine": "", + "environment": [ + { + "separator": "Platform style", + "type": "Set", + "value": "1", + "variable": "LWM_NO_XR" + } + ], + "executable": "/home/lain/Documents/projs/lunarwm/build/LunarWM", + "inject": false, + "numQueuedFrames": 0, + "options": { + "allowFullscreen": true, + "allowVSync": true, + "apiValidation": false, + "captureAllCmdLists": false, + "captureCallstacks": false, + "captureCallstacksOnlyDraws": false, + "debugOutputMute": true, + "delayForDebugger": 0, + "hookIntoChildren": false, + "refAllResources": false, + "softMemoryLimit": 0, + "verifyBufferAccess": false + }, + "queuedFrameCap": 0, + "workingDir": "/home/lain/Documents/projs/lunarwm" + } +} diff --git a/src/LunarWM_wayland.c b/src/LunarWM_wayland.c index 47eae1a..9fe7a33 100644 --- a/src/LunarWM_wayland.c +++ b/src/LunarWM_wayland.c @@ -43,7 +43,8 @@ struct SurfaceDamageListener { struct wl_listener destroy; }; -static void surface_damage_client_commit(struct wl_listener *listener, void *data) +static void surface_damage_client_commit( + struct wl_listener *listener, void *data) { (void)listener; struct wlr_surface *surface = data; @@ -59,9 +60,9 @@ static void surface_damage_client_commit(struct wl_listener *listener, void *dat } int surface_width = surface->pending.width > 0 ? surface->pending.width - : surface->current.width; + : surface->current.width; int surface_height = surface->pending.height > 0 ? surface->pending.height - : surface->current.height; + : surface->current.height; int buffer_width = surface->pending.buffer_width > 0 ? surface->pending.buffer_width : surface->current.buffer_width; @@ -1864,7 +1865,6 @@ bool LunarWM_wayland_init(LunarWM *this) wl_signal_add(&this->wayland.compositor->events.new_surface, &this->wayland.new_surface_listener); - this->wayland.subcompositor = wlr_subcompositor_create(this->wayland.display); if (!this->wayland.subcompositor) {