emersion
408eca7dfa
meson: remove -Wredundant-decls
...
This is causing issues with wayland-scanner generated files. The client and
server headers are declaring the same structs. We include both in the Wayland
backend.
See https://gitlab.freedesktop.org/wayland/wayland/issues/82
6 years ago
Drew DeVault
c9137cba69
Update version to 0.5.0
6 years ago
emersion
5445d8aad0
meson: enable more compiler warnings
6 years ago
Drew DeVault
b46e097fe2
Update version to 0.4.1
6 years ago
emersion
0b33643175
Bump version to 0.4
6 years ago
emersion
8163f7e1e2
primary-selection-v1: copy from gtk-primary-selection
6 years ago
emersion
59d1b6790d
Bump project version to 0.3
6 years ago
emersion
77c25c1526
meson: remove b_lundef=false on FreeBSD
6 years ago
emersion
75371d2c88
Require libdrm >= 2.4.95
6 years ago
emersion
af3de7ea68
text-input-v3: use protocol from wayland-protocols
6 years ago
Simon Barth
92e39b586c
build: bump versino to 0.2.0
6 years ago
Scott Anderson
70ae76304e
backend/x11: Remove old input functions
...
This also allows us to remove xcb-xkb, since Xinput will now give us the
appropriate XKB modifiers with each event.
6 years ago
emersion
51bfdd620e
Use #if instead of #ifdef for wlroots config data
...
This prevents some annoying issues when e.g. not including wlr/config.h or
making a typo in the guard name.
6 years ago
sghctoma
753540335b
Remove WLR_HAS_POSIX_FALLOCATE from build system
6 years ago
emersion
346ec21c4c
util: use shm_open for in-memory files
...
shm_open is a POSIX function creating an in-memory file. Using it simplifies
the code and removes the dependency on XDG_RUNTIME_DIR. The only downside is
that we need to generate a random name for the shm file.
6 years ago
emersion
be6210cf82
Update version to 0.1
6 years ago
Drew DeVault
66e8908e9a
Merge pull request #1203 from dcz-purism/input
...
Support input method and text input
6 years ago
Dorota Czaplejewicz
174e8a48aa
build: bump wayland-scanner version
...
wayland-scanner >= 1.15.0 accepts foreign struct references, necessary in protocols like zwp-input-method-v2
6 years ago
n3rdopolis
cf7323a831
meson.build: require logind v237
...
Commit 7b52388424
uses a function added in logind v237
6 years ago
sghctoma
65359718c4
Use == to check system instead of a prefix match
6 years ago
sghctoma
1d017c1cc1
Set minimum Meson version to 0.48.0
...
This commit sets the required Meson version to >=0.48.0, and removes the
comment about building on FreeBSD requires an extra flag.
6 years ago
sghctoma
57ce896688
Add b_lundef=false Meson option on FreeBSD
...
The Meson option "b_lundef" need to be set to false on FreeBSD, because
the symbol "environ" is in crt1.o, which is not linked with shared
libraries. With Meson >=0.48.0 it is possible to set this option only
for FreeBSD. This patch changes meson.build to do that.
6 years ago
Drew DeVault
6025fcaa09
Update required meson version to 0.47.1
6 years ago
Scott Anderson
fd3fa760d3
Revert "Revert "Merge pull request #1194 from ascent12/meson_feature""
...
This reverts commit 9c886f20b9
.
6 years ago
Drew DeVault
9c886f20b9
Revert "Merge pull request #1194 from ascent12/meson_feature"
...
This breaks wlroots when used as a meson subproject.
This reverts commit dea311992e
, reversing
changes made to 6db9c4b746
.
6 years ago
Scott Anderson
653ea512c2
Use current_source_dir instead of source_root
...
This is so that log messages are printed properly when wlroots is build
as a subproject.
6 years ago
Scott Anderson
51892e0d74
Install headers explicitly
6 years ago
Scott Anderson
a2bbf2c1f7
Make style more consistent
6 years ago
Scott Anderson
869dca1bce
Remove unnecessary project arguments
...
Meson handles rpath properly, and we don't need to use -I ourselves by
using include_directories with '.'.
6 years ago
Scott Anderson
1358d80ab9
Add link dependency on symbols file
...
So the library is rebuilt properly when it's updated.
6 years ago
Scott Anderson
584a3f8b6e
Update examples to use new option
...
We use a dictionary to remove some code duplication.
6 years ago
Scott Anderson
560e96aa57
Update rootston to use new option
6 years ago
Scott Anderson
784c20c82f
Use new options for X11 backend and Xwayland
6 years ago
Scott Anderson
94ed2fc7bb
Use feature options for libcap/logind
...
We now use a combo choice between systemd/elogind as they are mutually
exclusive anyway.
6 years ago
Scott Anderson
3fa3dca6d5
Add new feature options
...
Bump minimum meson version to 0.47 for the feature.
6 years ago
Guido Günther
570970db64
ctags: use -f instead of -o
...
The later does not exist on FreeBSD
See #725
6 years ago
Drew DeVault
5642c5cc8f
Merge pull request #1053 from emersion/xdg-decoration
...
Add xdg-decoration-unstable-v1 support
6 years ago
Drew DeVault
211ae764fd
Initial pass on API stability guarantees
...
This introduces -DWLR_USE_UNSTABLE and adds information regarding the
stability status to all headers. I started with a conservative set of
headers to mark as stable:
- types/wlr_matrix.h
- util/edges.h
- util/log.h
- util/region.h
- xcursor.h
7 years ago
emersion
555721f714
Add xdg-decoration-unstable-v1 support
7 years ago
Drew DeVault
4b096fc114
Revert "Merge pull request #1153 from emersion/include-config"
...
This reverts commit ef0a6ea4d2
, reversing
changes made to 8d03bc9178
.
7 years ago
emersion
e02c486b60
Use posix_fallocate when available
7 years ago
emersion
41094a7df5
Always include config.h
7 years ago
Scott Anderson
86942d8a6a
Check for libavutil/hwcontext_drm.h
...
This is an optional feature of libavutil, so this will cause a build
failure if it's not present (e.g. on Debian/Ubuntu).
7 years ago
emersion
f9ad63c5cb
rootston: use wl_display_destroy_clients
7 years ago
emersion
63fd2203fe
Add support for version 2 of the xdg-output protocol
7 years ago
florian.weigelt
d68a27fd79
Add option to disable examples build
...
Compiling the examples is useful for testing and development, but less
useful for actual users of wlroots.
This commit adds the option --enable-examples to set weather to include
the examples at compilation or not. The default value is True, so the
current behaviour remains unchanged.
7 years ago
florian.weigelt
34be87a3f6
Add option to disable rootston build
...
Compiling the rootston example compositor is useful for testing and
development, but less useful for actual users of wlroots, who might
prefer sway or other compositors.
This commit adds the option --enable-rootston to set weather to include
rootston at compilation or not. The default value is True, so the
current compilation behaviour remains unchanged.
7 years ago
Danilo Spinella
f83ad3f3ef
Install include directory into includedir
...
Follow includedir parameter when installing include directory.
7 years ago
Danilo Spinella
046d909e7a
Change meson option names to use hypen
...
Replace underscore with hypen in meson option names, following style
recommendations.
http://mesonbuild.com/Style-guide.html#naming-options
7 years ago
emersion
f033f717a2
backend/x11: make xcb-xkb optional, remove global state
7 years ago
emersion
8d1b5c7600
backend/x11: correctly update keyboard modifiers
7 years ago
Drew DeVault
b1c4f01bad
Merge pull request #713 from ManDay/master
...
Make X11 fully optional
7 years ago
Cedric Sodhi
51141dd11e
Minor corrections
7 years ago
emersion
375e1bdf2b
meson: use current_source_dir instead of source_root
...
Use source_root breaks the build when used as a subproject.
7 years ago
Cedric Sodhi
ebdabc2030
Make X11 fully optional
...
Make X11 Backend (in addition to XWayland) optional and small bug fix on XWayland includes.
7 years ago
Dominique Martinet
7d1870c6f1
move xwm.h out of include/wlr
...
xwm.h was meant to be private, so move it to include/xwayland/xwm.h
We had an ifdef WLR_HAS_XCB_ICCCM in xwayland.h which was easy to move
to xwm, it is not safe to use the WLR_HAS_* in the public headers.
I checked a few of our current users and none rely on xwm.h being
public as expected (rootston, sway, hsroots)
7 years ago
Dominique Martinet
f8428d1063
xcb errors: optional dependency with improved messages
...
Now message can look like:
[xwayland/xwm.c:991] xcb error: op ChangeProperty (no minor), code Window (no extension), value 6291465
instead of this one when the lib is not available:
[xwayland/xwm.c:999] xcb error: op 18:0, code 3, sequence 103, value 6291465
The value in case of Window is the window id, so we can tell what
function applied on which window which is a good start.
The sequence ought to be able to tell us more precisely which
invocation it was, but we never log it when calling functions
so is useless in practice and no longer logged.
7 years ago
Guido Günther
6ba1128a72
Add symbols file
...
to only export symbols matching wlr_* from the wlroots library
7 years ago
Drew DeVault
1d9be89e2d
Revert "ELF Visibility"
7 years ago
Scott Anderson
86269052eb
Explicitly export EFL symbols
7 years ago
Dominique Martinet
db9c2c11f6
meson: require wayland-protocols >=1.12 for xdg-shell stable
7 years ago
emersion
c2e1474010
Reformat all #include directives
7 years ago
Dominique Martinet
435aec0033
meson build: only link with deps when required by options
7 years ago
Dominique Martinet
161ae2fcb4
meson build: make enable options work as auto/true/false
...
This makes meson fail if -Denable_systemd=true was set but not found
The default is now auto which is the old behaviour
7 years ago
Dominique Martinet
19d7edb430
meson.build status: print actual build options in message
...
We were printing the option intent (true by default for all), but
some are disabled when a component is not found and this was not
reflected.
7 years ago
Guido Günther
c5aac77692
Fix some typos
...
Prefer initialize over initialise since used more often in the sources.
7 years ago
Guido Günther
e5dacbae5d
meson: add ctags and etags targets
...
to create tag files. Idea taken from systemd.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
7 years ago
Guido Günther
66ab1a98a0
meson: print enabled options
...
This makes it simpler to figure out what was enabled.
7 years ago
Dominique Martinet
85b9368c48
meson: fix include path in generated .pc
...
The generated .pc still contained -I${prefix}/wlroots, this is no longer
needed at all as the prefix is now 'wlr' and all includes are 'wlr/foo'
7 years ago
Drew DeVault
c23bd2ab7a
Further fixes to header install dir
7 years ago
Drew DeVault
45a21ca232
Install headers to /usr/include/wlr
...
Rather than wlroots. I should have caught this.
7 years ago
Björn Esser
8c0fc4ffe5
meson: Fix exclude_headers
7 years ago
Björn Esser
71e42dae90
libwlroots: Add shared library versioning
7 years ago
Björn Esser
892f7a5db0
include: Install headers in an isolated include-dir
7 years ago
Björn Esser
ff13849624
config: Avoid clash with other config-headers
7 years ago
Björn Esser
57a09c8ca4
config: Put all defines into config.h
7 years ago
Tony Crisci
ea4b871e16
xwm: user custom event handler
7 years ago
Scott Anderson
87258c718c
Add minimum meson version
7 years ago
Drew DeVault
c3e0fbdb8f
Remove meson hack
7 years ago
emersion
ddd7b7711c
Load xwm cursor from theme
7 years ago
emersion
bdaf66a292
Set xwayland root cursor
7 years ago
Tony Crisci
1dbe314937
Merge branch 'master' into feature/data-device-selection
7 years ago
Dominique Martinet
a2f5e60dea
meson: fail build if libinput < 1.7.0
...
We need libinput >= 1.7.0 for LIBINPUT_DEVICE_CAP_SWITCH
7 years ago
Dominique Martinet
98207fda81
meson: fail build if gbm/mesa < 17.1.0
...
We need mesa 17.1.0 for gbm_bo_get_offset and gbm_bo_get_stride_for_plane
We need mesa 17.0.0 for EGL_TEXTURE_EXTERNAL_WL
7 years ago
Tony Crisci
fb25adae36
xwayland: use xfixes extension
7 years ago
Greg V
a5fe9aa736
Add FreeBSD compatibility
7 years ago
Drew DeVault
d0d6413772
Merge pull request #220 from versusvoid/optional-xwayland
...
Make Xwayland optional
7 years ago
Scott Anderson
c0e5feea37
Add GL/EGL extension loader generator
7 years ago
Versus Void
9cab66f0f9
Make xwayland compile-time optional
7 years ago
emersion
ed9796ec68
xwayland: parse normal hints
7 years ago
Scott Anderson
7ad2a57feb
Open X11 Window
7 years ago
Drew DeVault
f4387b437f
Merge branch 'master' into rootston
7 years ago
Scott Anderson
7288d3b2c3
Install library, headers, and pkg-config
7 years ago
Drew DeVault
550748681d
Establish rootston headers & main
7 years ago
dudemanguy
175f89f4ff
Add elogind support
...
Resolves SirCmpwn/wlroots#146
7 years ago
Tony Crisci
368f74e4df
Refactor meson build files
...
Use tabs for indentation and break up function calls over 80 col.
7 years ago
Dominique Martinet
fa0e1015c6
xwm: fix minimal init, this gets us some events on window creations
7 years ago
Dominique Martinet
b2bab1af5c
xwayland: split xwm structure out, initial xwm.c
7 years ago
Dominique Martinet
49a823d4c6
Xwayland: first draft, just start server for now
7 years ago
Scott Anderson
75978636d9
Change meson to be more configurable
...
We move the warning options into the project's default_options, meaning
a user can configure them with `meson configure` and not need to edit
the file.
We also make it possible to disable logind/libcap even if they're
present.
7 years ago
Drew DeVault
d4b4bfb8bc
Fix #64
7 years ago
Drew DeVault
e6a7817e45
Fix build on systems without systemd
7 years ago
Drew DeVault
62d8b252c0
Refactor meson and move xdg-shell into wlroots
7 years ago
nyorain
1bea754521
Implement wlr_region using pixman
7 years ago
Drew DeVault
7486263f7e
Add xcursor sublibrary
7 years ago
Scott Anderson
3373ec5fc8
Update build files
8 years ago
nyorain
fdab81e1c9
Use meson build system
8 years ago
Drew DeVault
b08aa9fd35
Revert "Merge pull request #27 from ascent12/meson"
...
This reverts commit 85805da021
, reversing
changes made to 8189c64d7f
.
8 years ago
Scott Anderson
a2ba226ba3
Use subdir
8 years ago
Scott Anderson
924bf0f669
Changed build system to meson
8 years ago