enable wayland by default on linux builds
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
This commit is contained in:
parent
4b2bf63889
commit
fa9ad8b984
3 changed files with 17 additions and 8 deletions
6
configure
vendored
6
configure
vendored
|
|
@ -46,6 +46,10 @@ param_set("vulkan-string-helper", 1);
|
||||||
param_set("shared", 1);
|
param_set("shared", 1);
|
||||||
param_set("static", 1);
|
param_set("static", 1);
|
||||||
param_set("examples", 1);
|
param_set("examples", 1);
|
||||||
|
print($target);
|
||||||
|
if($target eq "Linux") {
|
||||||
|
param_set("wayland", 1);
|
||||||
|
}
|
||||||
|
|
||||||
my %features = (
|
my %features = (
|
||||||
"classic-theme" => "use classic theme",
|
"classic-theme" => "use classic theme",
|
||||||
|
|
@ -58,7 +62,7 @@ my %features = (
|
||||||
"vulkan-string-helper" => "use Vulkan string helper",
|
"vulkan-string-helper" => "use Vulkan string helper",
|
||||||
"shared" => "build shared library",
|
"shared" => "build shared library",
|
||||||
"static" => "build static library",
|
"static" => "build static library",
|
||||||
"wayland" => "enable ayland backend",
|
"wayland" => "enable wayland backend",
|
||||||
);
|
);
|
||||||
my @features_keys = (
|
my @features_keys = (
|
||||||
"1classic-theme", "1stb-image",
|
"1classic-theme", "1stb-image",
|
||||||
|
|
|
||||||
|
|
@ -2026,11 +2026,17 @@ static int MwLLPendingImpl(MwLL handle) {
|
||||||
handle->wayland.did_initial_resize = 1;
|
handle->wayland.did_initial_resize = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!MwWaylandAlwaysRender) wl_display_prepare_read(handle->wayland.display);
|
if(!MwWaylandAlwaysRender) {
|
||||||
if(!poll(&fd, 1, timeout.tv_nsec)) {
|
wl_display_prepare_read(handle->wayland.display);
|
||||||
wl_display_cancel_read(handle->wayland.display);
|
if(!poll(&fd, 1, timeout.tv_nsec)) {
|
||||||
|
wl_display_cancel_read(handle->wayland.display);
|
||||||
|
} else {
|
||||||
|
wl_display_read_events(handle->wayland.display);
|
||||||
|
if((pending = wl_display_dispatch_pending(handle->wayland.display)) < 0) {
|
||||||
|
wl_display_cancel_read(handle->wayland.display);
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if(!MwWaylandAlwaysRender) wl_display_read_events(handle->wayland.display);
|
|
||||||
if((pending = wl_display_dispatch_pending(handle->wayland.display)) < 0) {
|
if((pending = wl_display_dispatch_pending(handle->wayland.display)) < 0) {
|
||||||
wl_display_cancel_read(handle->wayland.display);
|
wl_display_cancel_read(handle->wayland.display);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -205,9 +205,8 @@ static int create(MwWidget handle) {
|
||||||
1,
|
1,
|
||||||
EGL_NONE};
|
EGL_NONE};
|
||||||
EGLDisplay display;
|
EGLDisplay display;
|
||||||
waylandopengl_t* o = r = malloc(sizeof(*o));
|
waylandopengl_t* o = r = malloc(sizeof(*o));
|
||||||
MwLL topmost_parent = handle->lowlevel->wayland.parent;
|
MwWaylandAlwaysRender = MwTRUE;
|
||||||
MwWaylandAlwaysRender = MwTRUE;
|
|
||||||
|
|
||||||
o->gllib = MwDynamicOpen("libEGL.so");
|
o->gllib = MwDynamicOpen("libEGL.so");
|
||||||
if(!o->gllib) {
|
if(!o->gllib) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue