Enlightenment CVS committal
Author : atmosphere
Project : misc
Module : engage
Dir : misc/engage/src
Modified Files:
icon.c window.c wm.c
Log Message:
add minimize, od_wm_deactivate_window to minimize, hide dock on window mouse_out not
focus_out, next try to maintain window order
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/icon.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- icon.c 15 Apr 2004 21:35:59 -0000 1.11
+++ icon.c 17 Apr 2004 15:51:58 -0000 1.12
@@ -110,7 +110,7 @@
imlib_context_set_dither_mask(0);
imlib_context_set_drawable(pmap);
-#if !IMLIB_CREATE_IMAGE_FROM_DRAWABLE_WORKS_WITH_MASK
+#if IMLIB_CREATE_IMAGE_FROM_DRAWABLE_WORKS_WITH_MASK
mask = None;
#endif
img = imlib_create_image_from_drawable(mask, x, y, w, h, 0);
@@ -119,8 +119,9 @@
evas_object_image_size_set(icon->pic, w, h);
evas_object_image_data_copy_set(icon->pic,
imlib_image_get_data_for_reading_only());
- edje_object_part_unswallow(icon->icon, "EquateIcon");
- edje_object_part_swallow(icon->icon, "EquateIcon", icon->pic);
+ /*FIXME WRONG ! */
+ edje_object_part_unswallow(icon->icon, "EngageIcon");
+ edje_object_part_swallow(icon->icon, "EngageIcon", icon->pic);
imlib_free_image();
@@ -430,6 +431,8 @@
OD_Window *win = (OD_Window*)l->data;
if(win->applnk == icon)
{
+ clients = evas_list_remove(clients, win);
+ clients = evas_list_append(clients, win);
od_wm_activate_window(win->id);
break;
}
@@ -442,6 +445,29 @@
break;
}
}
+ else if(!strcmp(emission, "engage,app,minimize"))
+ {
+ switch(icon->type)
+ {
+ case application_link:
+ for(l = clients; l; l = l->next)
+ {
+ OD_Window *win = (OD_Window*)l->data;
+ if(win->applnk == icon)
+ {
+ clients = evas_list_remove(clients, win);
+ clients = evas_list_append(clients, win);
+ od_wm_deactivate_window(win->id);
+ break;
+ }
+ }
+ break;
+ case docked_icon:
+ break;
+ case minimised_window:
+ break;
+ }
+ }
else if (!strcmp(emission, "engage,app,open"))
{
switch(icon->type)
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/window.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- window.c 15 Apr 2004 21:01:53 -0000 1.7
+++ window.c 17 Apr 2004 15:51:58 -0000 1.8
@@ -83,7 +83,7 @@
else
ecore_evas_shaped_set(ee, 0);
ecore_evas_callback_pre_render_set(ee, od_dock_redraw);
- ecore_evas_callback_focus_out_set(ee, handle_mouse_out);
+ ecore_evas_callback_mouse_out_set(ee, handle_mouse_out);
evas = ecore_evas_get(ee);
Evas_Object *eventer = evas_object_rectangle_add(evas);
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/wm.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- wm.c 13 Apr 2004 12:34:26 -0000 1.2
+++ wm.c 17 Apr 2004 15:51:58 -0000 1.3
@@ -263,3 +263,9 @@
ecore_x_window_show(win);
ecore_x_window_raise(win);
}
+void
+od_wm_deactivate_window(Ecore_X_Window win)
+{
+ ecore_x_window_lower(win);
+ ecore_x_window_prop_state_request(win, ECORE_X_WINDOW_STATE_ICONIFIED, 1);
+}
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs