mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-24 14:15:09 +00:00
use keybinds only on wayland
This commit is contained in:
parent
a3eea96bb1
commit
dd6bd74427
2 changed files with 3 additions and 2 deletions
|
@ -37,6 +37,7 @@ import {
|
|||
VENCORD_FILES_DIR
|
||||
} from "./constants";
|
||||
import { initKeybinds } from "./keybinds";
|
||||
import { isWayland } from "./screenShare";
|
||||
import { Settings, State, VencordSettings } from "./settings";
|
||||
import { createSplashWindow } from "./splash";
|
||||
import { makeLinksOpenExternally } from "./utils/makeLinksOpenExternally";
|
||||
|
@ -499,5 +500,5 @@ export async function createWindows() {
|
|||
});
|
||||
|
||||
initArRPC();
|
||||
initKeybinds();
|
||||
if (isWayland) initKeybinds();
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import { IpcEvents } from "shared/IpcEvents";
|
|||
|
||||
import { handle } from "./utils/ipcWrappers";
|
||||
|
||||
const isWayland =
|
||||
export const isWayland =
|
||||
process.platform === "linux" && (process.env.XDG_SESSION_TYPE === "wayland" || !!process.env.WAYLAND_DISPLAY);
|
||||
|
||||
export function registerScreenShareHandler() {
|
||||
|
|
Loading…
Add table
Reference in a new issue