xpra icon
Bug tracker and wiki

Opened 7 years ago

Closed 6 years ago

#309 closed defect (fixed)

until we have contents to paint the gl windows show undefined contents

Reported by: Antoine Martin Owned by: ahuillet
Priority: major Milestone: 0.10
Component: client Version: trunk
Keywords: opengl Cc:

Description

This is most noticeable with drop down menus.

Ideally, we would want to paint something, anything, even a white background rather than having it transparent and showing whatever is under it.
Unfortunately, my attempts have failed (see patches).

Attachments (4)

gl_cairo_fill.patch (709 bytes) - added by Antoine Martin 7 years ago.
use cairo to paint the backing glarea white
gl_white_paint.patch (634 bytes) - added by Antoine Martin 7 years ago.
use existing white_paint method does not work during the first expose events
gl_window_paint.patch (982 bytes) - added by Antoine Martin 7 years ago.
explicitly paint the window backing with cairo as soon as it is created
gl_render_on_init.patch (820 bytes) - added by Antoine Martin 7 years ago.
calls render_image as soon as we init the gl window (use in combination with gl_cairo_fill or gl_white_paint patches)

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by Antoine Martin

Attachment: gl_cairo_fill.patch added

use cairo to paint the backing glarea white

Changed 7 years ago by Antoine Martin

Attachment: gl_white_paint.patch added

use existing white_paint method does not work during the first expose events

Changed 7 years ago by Antoine Martin

Attachment: gl_window_paint.patch added

explicitly paint the window backing with cairo as soon as it is created

Changed 7 years ago by Antoine Martin

Attachment: gl_render_on_init.patch added

calls render_image as soon as we init the gl window (use in combination with gl_cairo_fill or gl_white_paint patches)

comment:1 Changed 7 years ago by Antoine Martin

Mitigated somewhat by r3077: "normal" windows are bigger, so showing them briefly as transparent is less confusing than for things like menus.

comment:2 Changed 7 years ago by Antoine Martin

Milestone: 0.90.10

What may work: calling glClear(GL_COLOR_BUFFER_BIT) followed by swap_buffers() early in the setup backing setup code.

Now that GL is no longer scheduled for 0.9.0, this can wait too..

Last edited 7 years ago by ahuillet (previous) (diff)

comment:3 Changed 6 years ago by ahuillet

I believe this to be done. Should this ticket remain open?

comment:4 Changed 6 years ago by Antoine Martin

Feel free to close if tested, would be nice to have the commit no.

comment:5 Changed 6 years ago by Antoine Martin

Resolution: fixed
Status: newclosed

Works for me..

Note: See TracTickets for help on using tickets.