We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe2396 commit ee8801bCopy full SHA for ee8801b
src/detection/displayserver/linux/wayland/wayland.c
@@ -39,7 +39,7 @@ static bool waylandDetectWM(int fd, FFDisplayServerResult* result)
39
filename = result->wmProcessName.chars;
40
41
if (ffStrEquals(filename, "wl-restart"))
42
- ffStrbufSubstrAfterFirstC(&result->wmProcessName, '\0');
+ ffStrbufSubstrAfterLastC(&result->wmProcessName, '\0');
43
44
ffStrbufSubstrBeforeFirstC(&result->wmProcessName, '\0'); //Trim the arguments
45
ffStrbufSubstrAfterLastC(&result->wmProcessName, '/'); //Trim the path
0 commit comments