Skip to content

Commit

Permalink
add function for judging the ukui desktop environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hantengc committed Sep 20, 2024
1 parent 16b4847 commit 1d8b813
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/fcitx/misc_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ static inline bool isKDE() {
return desktop == DesktopType::KDE4 || desktop == DesktopType::KDE5;
}

static inline bool isUKUI() {
static const DesktopType desktop = getDesktopType();
return desktop == DesktopType::UKUI;
}

static inline bool hasTwoKeyboardInCurrentGroup(Instance *instance) {
size_t numOfKeyboard = 0;
for (const auto &item :
Expand Down

0 comments on commit 1d8b813

Please sign in to comment.