Skip to content

Commit ae92f38

Browse files
committed
Create pixmaps on main screen instead of back buffer in XRender backend
1 parent 8a1d2b7 commit ae92f38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend_xrender.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ int backend_init(XRESOURCES* res, CONFIG* config){
6565
}
6666

6767
fprintf(stderr, "Creating gobo pixmaps with dimensions %dx%d\n", gobo_max_width, gobo_max_height);
68-
res->gobo_pixmap = XCreatePixmap(res->display, res->back_buffer, gobo_max_width, gobo_max_height, 32);
69-
res->color_pixmap = XCreatePixmap(res->display, res->back_buffer, gobo_max_width, gobo_max_height, 32);
68+
res->gobo_pixmap = XCreatePixmap(res->display, res->main, gobo_max_width, gobo_max_height, 32);
69+
res->color_pixmap = XCreatePixmap(res->display, res->main, gobo_max_width, gobo_max_height, 32);
7070
if(!res->gobo_pixmap || ! res->color_pixmap){
7171
fprintf(stderr, "Failed to create backing pixmaps\n");
7272
return -1;

network.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int udp_listener(char* bindhost, char* port){
1818
hints.ai_flags = AI_PASSIVE;
1919

2020
status = getaddrinfo(bindhost, port, &hints, &info);
21-
if(status != 0){
21+
if(status){
2222
fprintf(stderr, "Failed to get socket info for %s port %s: %s\n", bindhost, port, gai_strerror(status));
2323
return -1;
2424
}

0 commit comments

Comments
 (0)