Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support partial window #114

Conversation

bwikbs
Copy link
Member

@bwikbs bwikbs commented Jun 14, 2021

Preparation work for #94

  • Now it is possible to create a partial app instead of a full screen as follows:
  Ecore_Wl2_Display* ecore_wl2_display_ = nullptr;
  ecore_wl2_init();
  ecore_wl2_display_ = ecore_wl2_display_connect(nullptr);
  ecore_wl2_sync();
  Ecore_Wl2_Window* ecore_wl2_window_ =
      ecore_wl2_window_new(ecore_wl2_display_, nullptr, 100, 100, 500, 600);
  ecore_wl2_window_type_set(ecore_wl2_window_,
                            ECORE_WL2_WINDOW_TYPE_TOPLEVEL);
  ecore_wl2_window_alpha_set(ecore_wl2_window_, false);
  ecore_wl2_window_position_set(ecore_wl2_window_, 0, 0);
  ecore_wl2_window_aux_hint_add(ecore_wl2_window_, 0,
                                "wm.policy.win.user.geometry", "1");
  
  FlutterDesktopEngineProperties engine_prop = {};
  engine_prop.assets_path = assets_path.c_str();
  engine_prop.icu_data_path = icu_data_path.c_str();
  engine_prop.aot_library_path = aot_lib_path.c_str();
  engine_prop.switches = switches.data();
  engine_prop.switches_count = switches.size();
  engine_prop.custom_win = ecore_wl2_window_;

* This is a necessary feature for partial window.

Signed-off-by: MuHong Byun <[email protected]>
@bwikbs bwikbs mentioned this pull request Jun 14, 2021
@bwikbs bwikbs requested a review from bbrto21 June 17, 2021 04:59
Signed-off-by: MuHong Byun <[email protected]>
@bbrto21 bbrto21 merged commit 638c395 into flutter-tizen:experimental_FlutterEngineGroup Jun 18, 2021
bwikbs added a commit to bwikbs/engine that referenced this pull request Jun 22, 2021
* Support user made window

* This is a necessary feature for partial window.

Signed-off-by: MuHong Byun <[email protected]>

* Apply Review's commit

Signed-off-by: MuHong Byun <[email protected]>
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants