Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_border.c e_hints.c Log Message: fix stickiness! =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v retrieving revision 1.223 retrieving revision 1.224 diff -u -3 -r1.223 -r1.224 --- e_border.c 25 May 2005 08:08:43 -0000 1.223 +++ e_border.c 25 May 2005 10:09:34 -0000 1.224 @@ -992,6 +992,7 @@ if ((bd->shaded) || (bd->shading)) return; if (!bd->fullscreen) { + printf("FULLSCREEEN!\n"); bd->saved.x = bd->x; bd->saved.y = bd->y; bd->saved.w = bd->w; @@ -1024,6 +1025,7 @@ if ((bd->shaded) || (bd->shading)) return; if (bd->fullscreen) { + printf("UNFULLSCREEEN!\n"); e_hints_window_fullscreen_set(bd, 0); e_border_move_resize(bd, bd->saved.x, bd->saved.y, bd->saved.w, bd->saved.h); @@ -1102,6 +1104,8 @@ E_OBJECT_CHECK(bd); E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE); + if (bd->sticky) return; + printf("STICK!\n"); bd->sticky = 1; e_hints_window_sticky_set(bd, 1); @@ -1119,6 +1123,8 @@ E_OBJECT_CHECK(bd); E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE); /* Set the desk before we unstick the border */ + if (!bd->sticky) return; + printf("UNSTICK!\n"); e_border_desk_set(bd, e_desk_current_get(bd->zone)); bd->sticky = 0; e_hints_window_sticky_set(bd, 0); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_hints.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- e_hints.c 25 May 2005 08:08:44 -0000 1.32 +++ e_hints.c 25 May 2005 10:09:34 -0000 1.33 @@ -345,7 +345,10 @@ if (ecore_x_netwm_desktop_get(bd->client.win, &bd->client.netwm.desktop)) { if (bd->client.netwm.desktop == 0xffffffff) - e_border_stick(bd); + { + printf("CLIENT asks for all desks!\n"); + e_border_stick(bd); + } else if (bd->client.netwm.desktop < (bd->zone->desk_x_count * bd->zone->desk_y_count)) { E_Desk *desk; @@ -370,7 +373,10 @@ bd->client.netwm.pid = -1; if (bd->client.netwm.state.sticky) - e_border_stick(bd); + { + printf("CLIENT asks for stickiness!\n"); + e_border_stick(bd); + } if (bd->client.netwm.state.shaded) e_border_shade(bd, e_hints_window_shade_direction_get(bd)); if (bd->client.netwm.state.maximized_v && bd->client.netwm.state.maximized_h) ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs