Fix transparent glyphs
[libguac-client-rdp.git] / include / client.h
index 246834f..306dbce 100644 (file)
@@ -55,12 +55,24 @@ typedef struct rdp_guac_client_data {
     int mouse_button_mask;
 
     /**
-     * Cairo surface which will receive all drawn glyphs.
+     * Cairo surface which will receive all TRANSPARENT glyphs.
+     */
+    cairo_surface_t* trans_glyph_surface;
+
+    /**
+     * Cairo surface which will receive all OPAQUE glyphs.
+     */
+    cairo_surface_t* opaque_glyph_surface;
+
+    /**
+     * The current Cairo surface which will receive all drawn glyphs,
+     * depending on whether we are currently drawing transparent or
+     * opaque glyphs.
      */
     cairo_surface_t* glyph_surface;
 
     /**
-     * Cairo instance for drawing to glyph surface.
+     * Cairo instance for drawing to the current glyph surface.
      */
     cairo_t* glyph_cairo;