|
|
@ -141,12 +141,12 @@ create_screenshot_surface(struct client *client) { |
|
|
|
screenshot = xzalloc(sizeof *screenshot); |
|
|
|
screenshot = xzalloc(sizeof *screenshot); |
|
|
|
if (screenshot == NULL) |
|
|
|
if (screenshot == NULL) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
screenshot->wl_buffer = create_shm_buffer(client,
|
|
|
|
screenshot->wl_buffer = create_shm_buffer(client, |
|
|
|
client->output->width,
|
|
|
|
client->output->width, |
|
|
|
client->output->height,
|
|
|
|
client->output->height, |
|
|
|
&screenshot->data);
|
|
|
|
&screenshot->data); |
|
|
|
screenshot->height = client->output->height;
|
|
|
|
screenshot->height = client->output->height; |
|
|
|
screenshot->width = client->output->width;
|
|
|
|
screenshot->width = client->output->width; |
|
|
|
|
|
|
|
|
|
|
|
return screenshot; |
|
|
|
return screenshot; |
|
|
|
} |
|
|
|
} |
|
|
|