Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions linux/window_manager_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -524,23 +524,6 @@ static FlMethodResponse* start_resizing(WindowManagerPlugin* self,
return FL_METHOD_RESPONSE(fl_method_success_response_new(result));
}

static FlMethodResponse* get_primary_display(WindowManagerPlugin* self,
FlValue* args) {
GdkDisplay* display = gdk_display_get_default();
GdkMonitor* monitor = gdk_display_get_primary_monitor(display);

GdkRectangle frame;
gdk_monitor_get_geometry(monitor, &frame);

auto size = fl_value_new_map();
fl_value_set_string_take(size, "width", fl_value_new_float(frame.width));
fl_value_set_string_take(size, "height", fl_value_new_float(frame.height));

g_autoptr(FlValue) result = fl_value_new_map();
fl_value_set_string_take(result, "size", size);
return FL_METHOD_RESPONSE(fl_method_success_response_new(result));
}

// Called when a method call is received from Flutter.
static void window_manager_plugin_handle_method_call(
WindowManagerPlugin* self,
Expand Down