[Xquartz-dev] Line drawing in 1.5 and 1.6 servers
Martin Otte
otte at duke.edu
Thu Sep 24 13:38:08 PDT 2009
Hi,
Attached is a simplified test case showing that in a call to
XCreateSimpleWindow, the border around the subwindow is not displayed.
With the 1.4 server, the program displays:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server_1.4.png
Type: image/png
Size: 12092 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20090924/b931234c/attachment-0002.png>
-------------- next part --------------
but with the 1.5 server, the border of the inner window is not shown:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server_1.5.png
Type: image/png
Size: 6409 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20090924/b931234c/attachment-0003.png>
-------------- next part --------------
I also added this example code to bug report #290.
Hope this helps,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: border.c
Type: application/octet-stream
Size: 1370 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20090924/b931234c/attachment-0001.obj>
-------------- next part --------------
On Sep 18, 2009, at 12:49 AM, Jeremy Huddleston wrote:
>
> On Sep 17, 2009, at 11:48, Martin Otte wrote:
>
>> Hi,
>>
>> The problem with the lines not drawn correctly occurs when calling
>> XCreateSimpleWindow. The program I have uses XCreateSimpleWindow to
>> create the buttons and their borders. When I increase the size of
>> the border in XCreateSimpleWindow and turn off all other
>> decorations, this is what I see:
>>
>> <border.png>
>>
>> It is interesting to see part of the quartz-wm frame imposed on the
>> button borders. My guess is that the border pixmap is not being
>> created/shown correctly in the server. Looking through dix/window.c
>> and mi/miexpose.c a lot has changed between the 1.4 and 1.5
>> versions of the server, so I don't think I'll be much help in
>> tracking down the problem.
>
> My guess is that the changes have just resulted in nothing actually
> being drawn. What you're seeing in the background there is actually
> just the uninitialized garbage that happened to be at the memory
> location allocated for that backing store which was previously used
> to draw a quartz-wm widget.
>
> Can you provide me with your simplified test case. That'll be
> easier than dragging the xterm window resize around every time I
> want to debug this.
>
> Thanks,
> Jeremy
>
>
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
More information about the Xquartz-dev
mailing list