Elm (wayland): Set frame clip. Fix maximize/unmaximize in wayland.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 28 Feb 2012 22:52:34 +0000 (22:52 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 28 Feb 2012 22:52:34 +0000 (22:52 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68524 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_win.c

index dd8bc54..742822f 100644 (file)
@@ -1533,8 +1533,9 @@ _elm_win_frame_cb_maximize(void *data, Evas_Object *obj __UNUSED__, const char *
    Elm_Win *win;
 
    if (!(win = data)) return;
-   win->maximized = EINA_TRUE;
-   ecore_evas_maximized_set(win->ee, EINA_TRUE);
+   if (win->maximized) win->maximized = EINA_FALSE;
+   else win->maximized = EINA_TRUE;
+   ecore_evas_maximized_set(win->ee, win->maximized);
 }
 
 static void 
@@ -1887,7 +1888,7 @@ elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
 
    if (win->frame_obj) 
      {
-//        evas_object_clip_set(win->win_obj, win->frame_obj);
+        evas_object_clip_set(win->win_obj, win->frame_obj);
         evas_object_stack_below(win->frame_obj, win->win_obj);
      }