Re: [E-devel] E CVS: engage handyande

2006-08-10 Thread Hannes Janetzek
Am Thu, 10 Aug 2006 13:27:28 +1000
schrieb David Seikel <[EMAIL PROTECTED]>:

> 
> window.c: In function `window_input_shape_rectangle_set':
> window.c:49: error: `ShapeInput' undeclared (first use in this
> function) window.c:49: error: (Each undeclared identifier is reported
> only once window.c:49: error: for each function it appears in.)
> 
> At least on my SuSE 9.3 Pro.


Sorry, I forgot that not everyone is on the bleeding edge.
 
patch attached. Index: window.c
===
RCS file: /var/cvs/e/misc/engage/src/window.c,v
retrieving revision 1.32
diff -u -r1.32 window.c
--- window.c	9 Aug 2006 21:38:13 -	1.32
+++ window.c	10 Aug 2006 12:17:22 -
@@ -40,6 +40,7 @@
 static void
 window_input_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h)
 {
+#ifdef ShapeInput
XRectangle rect;

rect.x = x;
@@ -47,6 +48,7 @@
rect.width = w;
rect.height = h;
XShapeCombineRectangles(ecore_x_display_get(), win, ShapeInput, 0, 0, &rect, 1, ShapeSet, Unsorted);
+#endif
 }
 
 
@@ -100,12 +102,14 @@
 {
   if (_ee != ee)
 return;
-
+
+#ifdef ShapeInput   
   if(options.use_composite)
   {
 Ecore_X_Window win = ecore_evas_software_x11_window_get(_ee);
 window_input_shape_rectangle_set(win,0,0,options.width,options.height);
   }
+#endif
   
   if (mouse_focus_timer)
 ecore_timer_del(mouse_focus_timer);
@@ -119,12 +123,14 @@
 {
   if (_ee != ee)
 return;
-  
+
+#ifdef ShapeInput  
   if(options.use_composite) // it should be enough to do this at zoom out, but so it looks less cluttered
   { 
 Ecore_X_Window win = ecore_evas_software_x11_window_get(_ee);
 window_input_shape_rectangle_set(win,0,options.height-options.size,options.width,options.size);
   }
+#endif
 
   if (mouse_focus_timer)
 ecore_timer_del(mouse_focus_timer);
@@ -236,13 +242,16 @@
 
   ecore_evas_title_set(ee, "Engage");
   ecore_evas_name_class_set(ee, "engage", "engage");
- 
+
+
   if(options.use_composite)
   {
+#ifdef ShapeInput  
 ecore_evas_alpha_set(ee, 1);
 Ecore_X_Window win = ecore_evas_software_x11_window_get(ee);
 ecore_x_window_override_set(win,1);
 window_input_shape_rectangle_set(win,0,options.height-options.size,options.width,options.size);
+#endif  
   }
   else
 ecore_evas_borderless_set(ee, 1);  
@@ -445,11 +454,13 @@
   } else if (dock.state == zoomed || dock.state == zooming)
   	{
   od_dock_zoom_out();
+#ifdef ShapeInput  
   if(options.use_composite)
   {
   	Ecore_X_Window win = ecore_evas_software_x11_window_get(ee);
 window_input_shape_rectangle_set(win, 0, options.height-options.size, options.width, options.size); 
   }
+#endif
   	}
 }
 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: engage handyande

2006-08-09 Thread David Seikel
On Wed,  9 Aug 2006 17:38:13 -0400 (EDT) Enlightenment CVS
<[EMAIL PROTECTED]> wrote:

> Enlightenment CVS committal
> 
> Author  : handyande
> Project : misc
> Module  : engage
> 
> Dir : misc/engage/src
> 
> 
> Modified Files:
>   config.c dock.c engage.h window.c 
> 
> 
> Log Message:
> Composite patch from Hannes Janetzek - thanks very much :)

> ===
> RCS file: /cvs/e/misc/engage/src/window.c,v
> retrieving revision 1.31
> retrieving revision 1.32
> diff -u -3 -r1.31 -r1.32
> --- window.c  13 Jun 2005 18:55:14 -  1.31
> +++ window.c  9 Aug 2006 21:38:13 -   1.32
> @@ -6,6 +6,8 @@
>  #include 
>  #include 
>  #include 
> +#include 
> +
>  #ifdef XINERAMA
>  #include 
>  #endif
> @@ -32,6 +34,22 @@
>  static void handle_menu_draw(void *data, Evas * e, Evas_Object *
> obj, void *event);
>  static void od_window_set_hidden(int hidden);
> +static void  window_input_shape_rectangle_set(Ecore_X_Window
> win, int x, int y, int w, int h); +
> +
> +static void
> +window_input_shape_rectangle_set(Ecore_X_Window win, int x, int y,
> int w, int h) +{
> +   XRectangle rect;
> +   
> +   rect.x = x;
> +   rect.y = y;
> +   rect.width = w;
> +   rect.height = h;
> +   XShapeCombineRectangles(ecore_x_display_get(), win, ShapeInput,
> 0, 0, &rect, 1, ShapeSet, Unsorted); +}

window.c: In function `window_input_shape_rectangle_set':
window.c:49: error: `ShapeInput' undeclared (first use in this function)
window.c:49: error: (Each undeclared identifier is reported only once
window.c:49: error: for each function it appears in.)

At least on my SuSE 9.3 Pro.


signature.asc
Description: PGP signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel