[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Carsten Haitzler [2006-09-07 14:27]:
> On Thu, 27 Jul 2006 20:50:54 +0000 Hannes Janetzek <rastamasta@gmx.de> 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 -0000	1.90
+++ src/lib/ecore_evas/ecore_evas_x.c	9 Sep 2006 17:53:35 -0000
@@ -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);
 	  }

Attachment: pgpEutwrY1Pc9.pgp
Description: PGP signature