From 43c19a1fd33dfd5cf3d96d11484b6204ecf8286c Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Thu, 26 Dec 2013 14:23:29 +0900 Subject: [PATCH] win: Added floating mode documentation and added a check for floating parameter. The documentation is from the original floating mode commit message. --- legacy/elementary/src/lib/elm_win.c | 1 + legacy/elementary/src/lib/elm_win_legacy.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index f8c2c794b0..9d23d1a21f 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -5463,6 +5463,7 @@ elm_win_floating_mode_set(Evas_Object *obj, Eina_Bool floating) ELM_WIN_CHECK(obj); ELM_WIN_DATA_GET_OR_RETURN(obj, sd); + floating = !!floating; if (floating == sd->floating) return; sd->floating = floating; #ifdef HAVE_ELEMENTARY_X diff --git a/legacy/elementary/src/lib/elm_win_legacy.h b/legacy/elementary/src/lib/elm_win_legacy.h index 08b760a27c..9938938335 100644 --- a/legacy/elementary/src/lib/elm_win_legacy.h +++ b/legacy/elementary/src/lib/elm_win_legacy.h @@ -1278,6 +1278,10 @@ EAPI Ecore_Wl_Window *elm_win_wl_window_get(const Evas_Object *obj); * @param obj The window object * @param floating If true, the window is floating mode * + * The floating mode can be used on mobile environment. For example, if the + * video-player window sets the floating mode, then e (enlightenment window + * manager) changes its geometry and handles it like a popup. + * * @ingroup Win * @see elm_win_floating_mode_get() * @since 1.8