revert: remove conflict bitsdojo_window plugin for linux & macOS
Signed-off-by: Kingtous <kingtous@qq.com>
This commit is contained in:
parent
eef20806d6
commit
d5c0bcea61
@ -1,7 +1,7 @@
|
||||
#include "my_application.h"
|
||||
|
||||
#include <flutter_linux/flutter_linux.h>
|
||||
#include <bitsdojo_window_linux/bitsdojo_window_plugin.h>
|
||||
// #include <bitsdojo_window_linux/bitsdojo_window_plugin.h>
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
#include <gdk/gdkx.h>
|
||||
#endif
|
||||
@ -48,8 +48,8 @@ static void my_application_activate(GApplication* application) {
|
||||
gtk_window_set_title(window, "rustdesk");
|
||||
}
|
||||
|
||||
auto bdw = bitsdojo_window_from(window); // <--- add this line
|
||||
bdw->setCustomFrame(true); // <-- add this line
|
||||
// auto bdw = bitsdojo_window_from(window); // <--- add this line
|
||||
// bdw->setCustomFrame(true); // <-- add this line
|
||||
gtk_window_set_default_size(window, 1280, 720); // <-- comment this line
|
||||
gtk_widget_show(GTK_WIDGET(window));
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import Cocoa
|
||||
import FlutterMacOS
|
||||
import bitsdojo_window_macos
|
||||
// import bitsdojo_window_macos
|
||||
|
||||
class MainFlutterWindow: BitsdojoWindow {
|
||||
class MainFlutterWindow: NSWindow {
|
||||
override func awakeFromNib() {
|
||||
if (!rustdesk_core_main()){
|
||||
print("Rustdesk core returns false, exiting without launching Flutter app")
|
||||
@ -18,7 +18,7 @@ class MainFlutterWindow: BitsdojoWindow {
|
||||
super.awakeFromNib()
|
||||
}
|
||||
|
||||
override func bitsdojo_window_configure() -> UInt {
|
||||
return BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP
|
||||
}
|
||||
// override func bitsdojo_window_configure() -> UInt {
|
||||
// return BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP
|
||||
// }
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ dependencies:
|
||||
git:
|
||||
url: https://github.com/Kingtous/rustdesk_desktop_multi_window
|
||||
ref: c7d97cb6615f2def34f8bad4def01af9e0077beb
|
||||
bitsdojo_window: ^0.1.2
|
||||
# bitsdojo_window: ^0.1.2
|
||||
freezed_annotation: ^2.0.3
|
||||
tray_manager: 0.1.7
|
||||
get: ^4.6.5
|
||||
|
Loading…
x
Reference in New Issue
Block a user