Antonin Décimo
68b4a5305e
backend/session: non-void function should return a value
...
With assertions disabled, it should make sense to return NULL.
5 years ago
Simon Ser
ca45f4490c
Remove all wayland-server.h includes
...
The documentation for wayland-server.h says:
> Use of this header file is discouraged. Prefer including
> wayland-server-core.h instead, which does not include the server protocol
> header and as such only defines the library PI, excluding the deprecated API
> below.
Replacing wayland-server.h with wayland-server-core.h allows us to drop the
WL_HIDE_DEPRECATED declaration.
5 years ago
emersion
8efeca528f
backend/session: add noop session
...
This is the first step towards being able to run via DRM leasing and on render
nodes.
Test with:
export WLR_BACKENDS=drm
export WLR_SESSION=noop
export WLR_DRM_DEVICES=/dev/dri/renderD128
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
random human
572dfcdba7
Add support for WLR_SESSION env variable
...
Valid values are "logind"/"systemd" and "direct". If WLR_SESSION is set,
only its value is potentially tried; it will not try any other option.
6 years ago
Alexander Bakker
221d412824
Init the new destroy signals added by #1200
6 years ago
Alexander Bakker
20db29779e
Add destroy signals to types that are destroyed by wl_display_destroy
6 years ago
Ilia Bozhinov
cb42e16f64
session: load GPU devices even if they have zero crtcs/connectors/encoders
...
On some systems (most notably laptops with two GPUs) there are GPUs that
don't have attached outputs. However, we still want to load those GPUs
because they could still be used by the compositor for rendering.
6 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
41094a7df5
Always include config.h
7 years ago
emersion
7cbef15206
util: add wlr_ prefix to log symbols
7 years ago
Scott Anderson
47985d2dc5
Multiseat fixes
7 years ago
Drew DeVault
1d9be89e2d
Revert "ELF Visibility"
7 years ago
Scott Anderson
86269052eb
Explicitly export EFL symbols
7 years ago
emersion
c2e1474010
Reformat all #include directives
7 years ago
emersion
36ead80cd1
Make wlr_signal_emit_safe private
7 years ago
emersion
5e58d46cc1
Add wlr_signal_emit_safe
7 years ago
Johannes Schramm
dcc743047b
style: include brackets for if/while/for, even if it's a single statement
7 years ago
PoroCYon
7574e27c6a
fix build without systemd
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
emersion
6001235b04
Listen to display destroy in session
...
It's not the backend's responsibility to destroy the session anymore.
7 years ago
emersion
bb79ada49f
Fix a bunch of mistakes detected with scan-build
7 years ago
Eric Molitor
5be11a5c95
Remove VLA from session.h
...
VLAs are optional C11 features and not supported by C++.
7 years ago
Greg V
a5fe9aa736
Add FreeBSD compatibility
7 years ago
Scott Anderson
9ec9edc40d
Check for fd failure properly
7 years ago
Scott Anderson
6cfe47d1d8
Add explicitly picking GPUs with environment var
7 years ago
Scott Anderson
fa3d0ed929
Change wlr_session to open every GPU
7 years ago
dudemanguy
175f89f4ff
Add elogind support
...
Resolves SirCmpwn/wlroots#146
7 years ago
Scott Anderson
d16b2977f6
Remove single GPU assumptions from wlr_session
7 years ago
Scott Anderson
fb93628bda
Merge wlr_udev into wlr_session
7 years ago
Scott Anderson
46823152ea
Rename functions to be consistent with #93
7 years ago
Scott Anderson
cb4d50e22c
Changed header paths.
7 years ago
Scott Anderson
2ae5cd6539
Moved session/ into backend/
7 years ago