mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Fixed logging for examples
This commit is contained in:
parent
c690420501
commit
264ef0c261
9 changed files with 11 additions and 0 deletions
|
|
@ -36,6 +36,7 @@
|
|||
#include <sys/param.h>
|
||||
#include <screenshooter-client-protocol.h>
|
||||
#include "util/os-compatibility.h"
|
||||
#include <wlr/util/log.h>
|
||||
|
||||
static struct wl_shm *shm = NULL;
|
||||
static struct orbital_screenshooter *screenshooter = NULL;
|
||||
|
|
@ -242,6 +243,7 @@ static int set_buffer_size(int *width, int *height) {
|
|||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
wlr_log_init(L_DEBUG, NULL);
|
||||
struct wl_display * display = wl_display_connect(NULL);
|
||||
if (display == NULL) {
|
||||
fprintf(stderr, "failed to create display: %m\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue