Re: [E-devel] ecore borderless_set in conflict with alpha_set ?

2006-09-09 Thread Tilman Sauerbeck
Carsten Haitzler [2006-09-07 14:27]:
 On Thu, 27 Jul 2006 20:50:54 + Hannes Janetzek [EMAIL PROTECTED] 
 babbled:
  I found some strange behavior with this ecore calls. If I dont use
  alpha_set borderless_set works as expected. With alpha_set the border
  gets drawn. This is the code which I have tested.
 
 this is now fixed - should work now :)

I think you only pathed the code path for the software engine but
ignored the XRender path.

Here's an untested patch.

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Index: src/lib/ecore_evas/ecore_evas_x.c
===
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_x.c,v
retrieving revision 1.90
diff -u -p -r1.90 ecore_evas_x.c
--- src/lib/ecore_evas/ecore_evas_x.c   7 Sep 2006 10:33:57 -   1.90
+++ src/lib/ecore_evas/ecore_evas_x.c   9 Sep 2006 17:53:35 -
@@ -1601,6 +1601,8 @@ _ecore_evas_x_alpha_set(Ecore_Evas *ee, 
 evas_damage_rectangle_add(ee-evas, 0, 0, ee-w, ee-h);
 ecore_x_window_shape_mask_set(ee-engine.x.win, 0);
 ecore_evases_hash = evas_hash_add(ecore_evases_hash, 
_ecore_evas_x_winid_str_get(ee-engine.x.win), ee);
+if (ee-prop.borderless)
+  ecore_x_mwm_borderless_set(ee-engine.x.win, 
ee-prop.borderless);
 if (ee-visible) ecore_x_window_show(ee-engine.x.win);
 if (ee-prop.focused) ecore_x_window_focus(ee-engine.x.win);
  }


pgpIDtR3UlxIv.pgp
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=lnkkid=120709bid=263057dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore borderless_set in conflict with alpha_set ?

2006-09-07 Thread The Rasterman
On Thu, 27 Jul 2006 20:50:54 + Hannes Janetzek [EMAIL PROTECTED] babbled:

 Hello,
 
 I found some strange behavior with this ecore calls. If I dont use
 alpha_set borderless_set works as expected. With alpha_set the border
 gets drawn. This is the code which I have tested.

this is now fixed - should work now :)

 ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 200, 200);
 
 ecore_evas_borderless_set(ee,1);
 ecore_evas_alpha_set(ee, 1);
 
 ecore_evas_show(ee);
 
 
 Regards,
 Hannes
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)

-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore borderless_set in conflict with alpha_set ?

2006-07-29 Thread Hannes Janetzek
Am Fri, 28 Jul 2006 22:22:31 +0200
schrieb Simon TRENY [EMAIL PROTECTED]:

 On Fri, 28 Jul 2006 00:11:01 +,
 Hannes Janetzek [EMAIL PROTECTED] wrote :
 
  ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 200, 200);
  
  ecore_evas_borderless_set(ee,1);
  ecore_evas_alpha_set(ee, 1);
  
  ecore_evas_show(ee);
 
 If you invert the calling order of ecore_evas_borderless_set() and
 ecore_evas_alpha_set() (so ecore_evas_alpha_set() is called before
 ecore_evas_borderless_set()), it works.
 It's probably a bug of Ecore_Evas. Maybe ecore_evas_alpha_set() resets
 for some reasons the borderless property of the window.
 So for now, just call ecore_evas_alpha_set() before
 ecore_evas_borderless_set(), it should work.
 

Thanks that works. 

It seems not to be a bug. Sebastid told me that
windows get recreated by the call to alpha_set and so they loose
propertys setted before.

Regards,
Hannes



 Regards,
 Simon TRENY MoOm
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your opinions on IT  business topics through brief surveys --
 and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___ enlightenment-devel
 mailing list enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] ecore borderless_set in conflict with alpha_set ?

2006-07-28 Thread Hannes Janetzek
Hello,

I found some strange behavior with this ecore calls. If I dont use
alpha_set borderless_set works as expected. With alpha_set the border
gets drawn. This is the code which I have tested.

ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 200, 200);

ecore_evas_borderless_set(ee,1);
ecore_evas_alpha_set(ee, 1);

ecore_evas_show(ee);

Any Ideas what´s wrong?



Regards,
Hannes

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore borderless_set in conflict with alpha_set ?

2006-07-28 Thread Hannes Janetzek
Am Fri, 28 Jul 2006 07:47:07 +0200
schrieb Sebastian Dransfeld [EMAIL PROTECTED]:

 Hannes Janetzek wrote:
  Hello,
  
  I found some strange behavior with this ecore calls. If I dont use
  alpha_set borderless_set works as expected. With alpha_set the
  border gets drawn. This is the code which I have tested.
  
  ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 200, 200);
  
  ecore_evas_borderless_set(ee,1);
  ecore_evas_alpha_set(ee, 1);
  
  ecore_evas_show(ee);
 
 alpha_set recreates the window, try change the order of the functions.
 
 Sebastian
 

Ah, ok thanks. This works.


Regards,
Hannes




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore borderless_set in conflict with alpha_set ?

2006-07-28 Thread Simon TRENY
On Fri, 28 Jul 2006 00:11:01 +,
Hannes Janetzek [EMAIL PROTECTED] wrote :

 ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 200, 200);
 
 ecore_evas_borderless_set(ee,1);
 ecore_evas_alpha_set(ee, 1);
 
 ecore_evas_show(ee);

If you invert the calling order of ecore_evas_borderless_set() and
ecore_evas_alpha_set() (so ecore_evas_alpha_set() is called before
ecore_evas_borderless_set()), it works.
It's probably a bug of Ecore_Evas. Maybe ecore_evas_alpha_set() resets
for some reasons the borderless property of the window.
So for now, just call ecore_evas_alpha_set() before
ecore_evas_borderless_set(), it should work.

Regards,
Simon TRENY MoOm

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] ecore borderless_set in conflict with alpha_set ?

2006-07-27 Thread Hannes Janetzek
Hello,

I found some strange behavior with this ecore calls. If I dont use
alpha_set borderless_set works as expected. With alpha_set the border
gets drawn. This is the code which I have tested.

ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 200, 200);

ecore_evas_borderless_set(ee,1);
ecore_evas_alpha_set(ee, 1);

ecore_evas_show(ee);


Regards,
Hannes

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel