move opening display to readstdin(), so .Xresources can be read if

protocol is set to wayland but wayland isn't actually used
This commit is contained in:
speedie 2023-06-03 23:10:27 +02:00
parent 29365cd10e
commit ceb86bed13
2 changed files with 6 additions and 6 deletions

View file

@ -64,6 +64,12 @@ void readargs(int argc, char *argv[]) {
}
}
if (protocol) {
if (connect_display(&state)) {
protocol = 0;
}
}
// init/read xrdb
if (xresources && !protocol) {
#if USEXRESOURCES

View file

@ -472,12 +472,6 @@ void handle(void) {
eventloop_x11(); // function is a loop which checks X11 events and calls other functions accordingly
#if USEWAYLAND
} else {
if (connect_display(&state)) {
protocol = 0;
handle();
return;
}
loadhistory();
store_image_vars();