eyelash / tutorials Goto Github PK
View Code? Open in Web Editor NEWa collection of minimal example programs
License: The Unlicense
a collection of minimal example programs
License: The Unlicense
Line 47 in 30aaec4
See http://manpages.ubuntu.com/manpages/xenial/man3/drmModeGetResources.3.html - function may return NULL, at which point a segfault will happen a few lines later.
Blocking in wl_display_dispatch
, which should be replaced by wl_display_dispatch_pending
as long as surface is not configured.
This is what weston/clients/simple-egl.c
is doing.
Also what I am doing here in the D bindings: https://github.com/rtbo/wayland-d/blob/master/examples/egl_window/source/egl_window.d
I found your samples through https://unix.stackexchange.com/a/512261/335461
I'm able to compile the code, but when trying to execute, I get a segmentation fault.
Here is the gdb backtrace:
#0 0x00007f3dac07cea6 in wl_proxy_marshal_constructor () from /usr/lib/libwayland-client.so.0
No symbol table info available.
#1 0x000055cdca329406 in wl_shell_get_shell_surface (wl_shell=0x0, surface=0x55cdcb098da0) at /usr/include/wayland-client-protocol.h:3003
id = 0x55cdcb098da0
#2 0x000055cdca3296d3 in create_window (window=0x7ffe4a34d070, width=256, height=256) at wayland-egl.c:65
attributes = {12324, 8, 12323, 8, 12322, 8, 12344}
config = 0x55cdcae85190
num_config = 1
#3 0x000055cdca329900 in main () at wayland-egl.c:95
registry = 0x55cdcadf39c0
window = {egl_context = 0x55cdcae85b70, surface = 0x55cdcb098da0, shell_surface = 0x0, egl_window = 0x55cdca3291e0 <_start>, egl_surface = 0x7ffe4a34d190}
I'm trying to launch it from a terminal app (alacritty) under the sway window manager. Wayland version is 1.19
On Fedora 25, compiling any of the examples and running them gives this error:
wl_registry@2: error 0: invalid version for global wl_compositor (2): 0 is not a valid version
Changing the last argument in wl_registry_bind
everywhere from 0 to 1 seems to work.
(But since I basically started learning Wayland today, I am not sure if this is the right fix and hence an issue instead of pull request)
Enough said.
I noticed that you haven't put your code in this repo under an open source license. If you want others to be able to use and build on what you've written, please consider adding a license so there is no fear of future difficulties. The MIT license would be preferable to me as it is the standard for many Wayland related projects. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.