mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 17:41:41 +01:00
greatly improved WM / DE detection
This commit is contained in:
@@ -26,9 +26,9 @@ static inline void* detectGTK4ThreadMain(void* instance)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void* detectWMThreadMain(void* instance)
|
||||
static inline void* detectWMDEThreadMain(void* instance)
|
||||
{
|
||||
ffDetectWM((FFinstance*)instance);
|
||||
ffDetectWMDE((FFinstance*)instance);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -40,9 +40,9 @@ static inline void* detectTerminalThreadMain(void* instance)
|
||||
|
||||
static inline void* startThreadsThreadMain(void* instance)
|
||||
{
|
||||
pthread_t wmThread;
|
||||
pthread_create(&wmThread, NULL, detectWMThreadMain, instance);
|
||||
pthread_detach(wmThread);
|
||||
pthread_t wmdeThread;
|
||||
pthread_create(&wmdeThread, NULL, detectWMDEThreadMain, instance);
|
||||
pthread_detach(wmdeThread);
|
||||
|
||||
pthread_t gtk2Thread;
|
||||
pthread_create(>k2Thread, NULL, detectGTK2ThreadMain, instance);
|
||||
|
||||
Reference in New Issue
Block a user