summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-30 11:03:57 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-30 11:03:57 -0500
commit005ad5eeefcbc26dfaf156bd3a252bf5ec8f8a5a (patch)
treee31ef94c4319da1c210d307b15c8eaafb0b583ad
parentbfd221e6101b6502b4fca04a540eee1e7bc7eb37 (diff)
downloadefl-005ad5eeefcbc26dfaf156bd3a252bf5ec8f8a5a.tar.gz
elementary: Create wayland pointer before frame
If we create the pointer After the frame, then we end up setting elm_object_cursor on the frame object which we do not need so this patch just slightly modifies the order of things during finalize so that _elm_win_frame_add does not end up calling _elm_object_part_cursor_set on the frame object. Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/elementary/efl_ui_win.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 24d8ae23fb..0d0d70605a 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -5103,36 +5103,6 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Elm_W
_elm_win_need_frame_adjust(sd, engine);
_elm_win_apply_alpha(obj, sd);
- /* do not append to list; all windows render as black rects */
- if (type != ELM_WIN_FAKE)
- {
- const char *element = "base";
- const char *style;
-
- _elm_win_list = eina_list_append(_elm_win_list, obj);
- _elm_win_count++;
-
- if ((engine) &&
- ((!strcmp(engine, ELM_SOFTWARE_FB)) || (!strcmp(engine, ELM_DRM))))
- {
- TRAP(sd, fullscreen_set, 1);
- }
- style = elm_widget_style_get(obj);
- if (!style) style = "default";
- switch (type)
- {
- case EFL_UI_WIN_DIALOG_BASIC: element = "dialog"; break;
- case EFL_UI_WIN_NAVIFRAME_BASIC: element = "naviframe"; break;
- default: break;
- }
- _elm_win_frame_add(sd, element, style);
-
- if (_elm_config->focus_highlight_enable)
- elm_win_focus_highlight_enabled_set(obj, EINA_TRUE);
- if (_elm_config->focus_highlight_animate)
- elm_win_focus_highlight_animate_set(obj, EINA_TRUE);
- }
-
#ifdef HAVE_ELEMENTARY_WL2
if ((type != ELM_WIN_FAKE) && (type != ELM_WIN_INLINED_IMAGE))
{
@@ -5171,6 +5141,36 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Elm_W
}
#endif
+ /* do not append to list; all windows render as black rects */
+ if (type != ELM_WIN_FAKE)
+ {
+ const char *element = "base";
+ const char *style;
+
+ _elm_win_list = eina_list_append(_elm_win_list, obj);
+ _elm_win_count++;
+
+ if ((engine) &&
+ ((!strcmp(engine, ELM_SOFTWARE_FB)) || (!strcmp(engine, ELM_DRM))))
+ {
+ TRAP(sd, fullscreen_set, 1);
+ }
+ style = elm_widget_style_get(obj);
+ if (!style) style = "default";
+ switch (type)
+ {
+ case EFL_UI_WIN_DIALOG_BASIC: element = "dialog"; break;
+ case EFL_UI_WIN_NAVIFRAME_BASIC: element = "naviframe"; break;
+ default: break;
+ }
+ _elm_win_frame_add(sd, element, style);
+
+ if (_elm_config->focus_highlight_enable)
+ elm_win_focus_highlight_enabled_set(obj, EINA_TRUE);
+ if (_elm_config->focus_highlight_animate)
+ elm_win_focus_highlight_animate_set(obj, EINA_TRUE);
+ }
+
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_WINDOW);
if (_elm_config->atspi_mode)
elm_interface_atspi_window_created_signal_emit(obj);