<div class="gmail_quote">2009/11/3 Kimmo Hämäläinen <span dir="ltr"><<a href="mailto:kimmo.hamalainen@nokia.com">kimmo.hamalainen@nokia.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, 2009-11-03 at 15:06 +0100, ext Luca Donaggio wrote:<br>
> I'm still banging my head against a wall with this:<br>
><br>
> why without reparenting the popup undecorated window to the main app<br>
> window it becomes transparent but the app menu doesn't work (it starts<br>
> to be drawn but immediately disappears) and viceversa?<br>
<br>
</div>I think this is not the way to go. This is way too hacky and ugly.<br>
Also, the window manager has not been tested for this kind of<br>
reparenting cases (which cause unmaps and remapping of windows), and<br>
it's likely that it's buggy in handling those.<br>
<br>
Home applet windows are transparent, so clearly there is some way to do<br>
it depending on the window type.<br>
<br>
Do you have a stand-alone program showing transparent dialog (without<br>
reparenting hacks), so I could spend some time to see if it can be made<br>
to work?<br>
<font color="#888888"><br>
-Kimmo<br>
<br>
<br>
</font></blockquote></div><br>Hi Kimmo,<br><br>my project is pretty simple, you can have a look at its sources here: [1].<br>The relevant code is in interface.c (create_image_details) and callbacks.c (draw_image_details).<br>
<br>I don't think either that reparenting should be the way to go (I think I've seen it done for the first time in some example, don't remember where now), I just found that with it the app menu did work and window's transparency didn't!<br>
<br>[1] <a href="https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/src/?root=mrawviewer">https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/src/?root=mrawviewer</a><br><br>--<br>Luca Donaggio<br>