xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #309: gl_window_paint.patch

File gl_window_paint.patch, 982 bytes (added by Antoine Martin, 8 years ago)

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

  • xpra/gl/gl_client_window.py

     
    2020        ClientWindow.__init__(self, client, group_leader, wid, x, y, w, h, metadata, override_redirect, client_properties, auto_refresh_delay)
    2121        self.set_reallocate_redraws(True)
    2222        self.add(self._backing.glarea)
     23        self.realize()
     24        cr = self.get_window().cairo_create()
     25        cr.rectangle(x, y, w, h)
     26        cr.set_source_rgb(1, 1, 1)
     27        cr.fill()
     28        #self._backing.glarea.realize()
     29        #self._backing.render_image(x, y, w, h)
    2330
    2431    def is_GL(self):
    2532        return True
    2633
    2734    def do_expose_event(self, event):
    28         debug("GL do_expose_event(%s)", event)
     35        debug("GL do_expose_event(%s) on window", event)
    2936
    3037    def do_configure_event(self, event):
    3138        debug("GL do_configure_event(%s)", event)