xwm: Correctly upload cursor
@@ -760,10 +760,11 @@ impl X11Wm {
render_format,
&CreatePictureAux::new(),
)?;
- let gc = GcontextWrapper::create_gc(&*self.conn, picture.picture(), &CreateGCAux::new())?;
+ {
+ let gc = GcontextWrapper::create_gc(&*self.conn, pixmap.pixmap(), &CreateGCAux::new())?;
self.conn.put_image(
ImageFormat::Z_PIXMAP,
- picture.picture(),
+ pixmap.pixmap(),
gc.gcontext(),
size.w,
size.h,
@@ -773,6 +774,7 @@ impl X11Wm {
32,
pixels,
)?;
+ }
let cursor = self.conn.generate_id()?;
self.conn
.render_create_cursor(cursor, picture.picture(), hotspot.x, hotspot.y)?;
