[FIX] wayland: restrict setAsFrameless to Wayland only
Prevent unconditional frameless calls on non-Wayland platforms. Signed-off-by: Texas0295 <kimura@texas0295.top>
This commit is contained in:
@@ -130,7 +130,6 @@ void main() async {
|
|||||||
debugPrint('[Wayland] setAsFrameless failed: $e');
|
debugPrint('[Wayland] setAsFrameless failed: $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await windowManager.setAsFrameless();
|
|
||||||
await windowManager.setMinimumSize(defaultSize);
|
await windowManager.setMinimumSize(defaultSize);
|
||||||
await windowManager.show();
|
await windowManager.show();
|
||||||
await windowManager.focus();
|
await windowManager.focus();
|
||||||
|
Reference in New Issue
Block a user