<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Perfectly normal, if you use ARGB windows, xfwm4 compositor won't apply shadows to your window because it doesn "know" the actual shape of the content (being ARGB).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Cheers,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Olivier</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 November 2015 at 23:21, John Found <span dir="ltr"><<a href="mailto:johnfound@asm32.info" target="_blank">johnfound@asm32.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So, I think I found it. The reason seems to be that my windows have depth of 32bpp.<br>
When I try to create 24bpp windows, everything works fine. On 32bpp windows the shadows are missing.<br>
<br>
Is it a bug or a feature?<br>
<br>
The very simplified code I use is the following (excuse my asm ;)<br>
<br>
cinvoke XOpenDisplay, 0<br>
mov [hdisplay], eax<br>
<br>
cinvoke XDefaultScreen, eax<br>
mov [.hscreen], eax<br>
<br>
cinvoke XDefaultRootWindow, [hdisplay]<br>
mov [.hroot], eax<br>
<br>
lea eax, [.vis]<br>
cinvoke XMatchVisualInfo, [hdisplay], [.hscreen], $20, TrueColor, eax<br>
<br>
cinvoke XCreateColormap, [hdisplay], [.hroot], [.vis.Visual], AllocNone<br>
mov [.attr.colormap], eax<br>
<br>
xor eax, eax<br>
mov [.attr.override_redirect], 1<br>
mov [.attr.backing_store], eax ; NotUseful<br>
mov [.attr.background_pixmap], eax ; None<br>
mov [.attr.border_pixel], eax ; 0<br>
mov [.attr.background_pixel], $ffc0c0c0 ; some gray background<br>
mov [.attr.event_mask], ExposureMask or FocusChangeMask or \<br>
KeyPressMask or KeyReleaseMask or \<br>
ButtonPressMask or ButtonReleaseMask or \<br>
EnterWindowMask or LeaveWindowMask or \<br>
PointerMotionMask or StructureNotifyMask<br>
<br>
lea eax, [.attr]<br>
cinvoke XCreateWindow, [hdisplay], [.hroot], [.x], [.y], [.w], [.h], 0, $20, InputOutput, [.vis.Visual], \<br>
CWBackingStore or CWOverrideRedirect or CWBorderPixel or \<br>
CWColormap or CWEventMask or CWBackPixmap or CWBackPixel, eax<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On Tue, 17 Nov 2015 22:12:41 +0200<br>
John Found <<a href="mailto:johnfound@asm32.info">johnfound@asm32.info</a>> wrote:<br>
<br>
> On Tue, 17 Nov 2015 20:46:06 +0100<br>
> Olivier Fourdan <<a href="mailto:fourdan@gmail.com">fourdan@gmail.com</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > Popup windows are indeed override redirect.<br>
> ><br>
> > If the shadow do now show, check with another xfwm4 theme, some themes<br>
> > "designers" tend to force their choice on the users and may override your<br>
> > settings.<br>
> ><br>
> > Cheers,<br>
> > Olivier<br>
><br>
> No effect at all. BTW all other popup menus and hint windows have shadows.<br>
> My popup windows can be made transparent with the option "Opacity of popup windows",<br>
> but they have no shadow at all.<br>
><br>
> --<br>
> <a href="http://fresh.flatassembler.net" rel="noreferrer" target="_blank">http://fresh.flatassembler.net</a><br>
> <a href="http://asm32.info" rel="noreferrer" target="_blank">http://asm32.info</a><br>
> John Found <<a href="mailto:johnfound@asm32.info">johnfound@asm32.info</a>><br>
> _______________________________________________<br>
> Xfce4-dev mailing list<br>
> <a href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a><br>
> <a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a><br>
<br>
<br>
--<br>
<a href="http://fresh.flatassembler.net" rel="noreferrer" target="_blank">http://fresh.flatassembler.net</a><br>
<a href="http://asm32.info" rel="noreferrer" target="_blank">http://asm32.info</a><br>
John Found <<a href="mailto:johnfound@asm32.info">johnfound@asm32.info</a>><br>
_______________________________________________<br>
Xfce4-dev mailing list<br>
<a href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a><br>
<a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a><br>
</div></div></blockquote></div><br></div>