Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-30 23:29:15 +03:00
parent c6365c0cc1
commit d28bb6f8ee
2 changed files with 38 additions and 4 deletions

34
launch_settings.cap Normal file
View File

@@ -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"
}
}

View File

@@ -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) {