Revert "fix: linux, window, workaround, mint, mate (#10146)" (#10184)

This reverts commit bd0a33e467.
This commit is contained in:
RustDesk 2024-12-05 11:44:37 +09:00 committed by GitHub
parent f13ef48cec
commit fe4094777f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 17 additions and 161 deletions

View file

@ -485,16 +485,7 @@ class _AppState extends State<App> with WidgetsBindingObserver {
child = keyListenerBuilder(context, child);
}
if (isLinux) {
// `(!(isLinuxMateDesktop || isLinuxMint))` is not used here for clarity.
// `isLinuxMint` will call ffi function.
if (!isLinuxMateDesktop) {
if (!isLinuxMint) {
debugPrint(
'Linux distro is not linuxmint, and desktop is not mate, '
'so we build virtual window frame.');
child = buildVirtualWindowFrame(context, child);
}
}
child = buildVirtualWindowFrame(context, child);
}
return child;
},