Drew DeVault
feb1b9b1cb
Merge pull request #1509 from emersion/gbm-fmt-mismatch
...
backend/drm: fix GBM format mismatch
6 years ago
emersion
ee293fab58
backend/drm: fix GBM format mismatch
...
We create the EGL config with GBM_FORMAT_ARGB8888, but then initialize GBM BOs
with GBM_FORMAT_XRGB8888. This mismatch confuses Mesa.
Instead, we can always use GBM_FORMAT_ARGB8888, and use DRM_FORMAT_XRGB8888
when calling drmModeAddFB2.
Fixes https://github.com/swaywm/wlroots/issues/1438
6 years ago
Greg V
9fe8e37961
Implement the pointer-gestures-unstable-v1 protocol
...
This protocol relays touchpad gesture events produced by libinput to
supporting clients (e.g. Evince, Eye of GNOME).
6 years ago
emersion
5de26ad8ed
pointer: add a frame event
...
Frame events group logically connected pointer events. It makes sense to make
the backend responsible for sending frame events, since once the events are
split (ie. once the frame events are stripped) it's not easy to figure out
which events belongs to which frame again.
This is also how Weston handles frame events.
Fixes https://github.com/swaywm/wlroots/issues/1468
6 years ago
emersion
a1f9d7ad9e
data-device: keep track of wlr_data_offer in wlr_seat lists
6 years ago
emersion
909b3b16f3
data-device: add wlr_data_offer.type
6 years ago
emersion
0040f7089f
data-device: unexport wlr_seat_client_send_selection
6 years ago
emersion
84f278eca1
data-device: remove data_source_send_offer
6 years ago
emersion
1150ff13ce
data-device: make sources inert, rename cancel to destroy
6 years ago
emersion
4cb0697e57
data-device, primary-selection: add request_set_selection
...
This makes compositors able to block and/or customize set_selection requests
coming from clients. For instance, it's possible for a compositor to disable
rich selection content (by removing all MIME types except text/plain). This
commit implements the design proposed in [1].
Two new events are added to wlr_seat: request_set_selection and
request_set_primary_selection. Compositors need to listen to these events and
either destroy the source or effectively set the selection.
Fixes https://github.com/swaywm/wlroots/issues/1138
[1]: https://github.com/swaywm/wlroots/issues/1367#issuecomment-442403454
6 years ago
emersion
06467d2e12
primary-selection: add a serial argument
...
The serial needs to be bumped when X11 clients set the selection, otherwise
some Wayland clients (e.g. GTK) will overwrite it when they gain focus.
6 years ago
emersion
a4eb90315e
Fix indentation in various files
6 years ago
Jente Hidskes
edf0e49195
Add wlr_x11_output_set_title
6 years ago
Jente Hidskes
5b07e20f2a
wlr/backend/x11.h: add documentation
...
Copied from wlr/backend/wayland.h and modified accordingly.
6 years ago
Drew DeVault
d4de2bd708
Merge pull request #1476 from emersion/fullscreen-shell
...
fullscreen-shell-v1: initial protocol implementation
6 years ago
Ryan Dwyer
53b29e5443
Add noop.h to include/wlr/backend/meson.build
6 years ago
Ryan Dwyer
9b4be5a595
Introduce noop backend
...
The noop backend is similar to headless, but it doesn't contain a
renderer. It can be used as a place to stash views for when there's no
physical outputs connected.
6 years ago
Connor E
e7fff4f560
Remove wlr_xdg_surface_send_close.
6 years ago
Drew DeVault
d3d1437bc4
Add wlr_wl_output_set_title
6 years ago
Drew DeVault
97af2464b7
Update Wayland backend to xdg-shell stable
6 years ago
Drew DeVault
e61ea7706b
Merge pull request #1423 from emersion/data-control
...
Implement data-control-unstable-v1
6 years ago
emersion
f71cf15aad
relative-pointer-v1: move pointer iteration in wlroots
...
This makes sure we always send events to the right client.
6 years ago
emersion
86f263a0b8
fullscreen-shell-v1: initial protocol implementation
6 years ago
emersion
610f5bfc77
Merge pull request #1432 from ForTheReallys/relative-pointers
...
Relative pointers
6 years ago
Alex Maese
8b97c20d01
Finish addressing @emersion's comments
6 years ago
emersion
69e7fd61b7
data-control-v1: update to latest protocol proposal
6 years ago
emersion
99d879c887
data-control-v1: initial protocol implementation
6 years ago
Jente Hidskes
ed5296c6cf
Protect against redefining MESA_EGL_NO_X11_HEADERS
6 years ago
Timidger
9af0c5338f
Standardize the wlr_box input paramaters
...
Fixes #1094
6 years ago
Alex Maese
5999d0322b
Add a listener for when the pointer gets destroyed
6 years ago
Alex Maese
12d9edc0c9
Address more of @emersion's comments
6 years ago
Alex Maese
e276d310e8
Add unaccelerated pointer values to wlr_event_pointer_motion events
6 years ago
Alex Maese
a803a007fb
Address @emersion's comments
6 years ago
Alex Maese
f5ea393bca
Remove pointer resource from relative pointer
6 years ago
Alex Maese
09bdbf24f4
Removed relative pointers from wlr_seat
6 years ago
Alex Maese
f4cf3c0886
Remove wl_client from wlr_relative_pointer_v1
6 years ago
Alex Maese
a2964a640b
Add wlr_relative_pointer_v1.h to meson.build
6 years ago
random human
68137dca3f
relative_pointer: implementation and code fixes
...
In particular, modified public creator and destructor function names,
added a display destroy listener, safely extract user data from
resources, send correct time (in usecs) in rootston, etc.
6 years ago
random human
fb44ce9fa8
relative_pointer: send frame event to pointer for Xwayland
6 years ago
random human
6fa1777f94
relative_pointer: code formatting fixes
6 years ago
random human
d020344675
relative_pointer: implement protocol events
...
Implement zwp_relative_pointer_v1.relative_motion event, along with some
glue code in wlr_seat_pointer and rootston.
6 years ago
random human
ba5b1676df
relative_pointer: implement protocol requests
...
Flesh out the details of the structs, signals, callback functions, and
so on. weston-resizer silently works at this point (no events sent).
6 years ago
random human
3a3d1b6617
relative_pointer: create skeleton and build
...
Add protocol, header and type files to build. Create skeleton structs,
creator and destroyer, and define implementations.
6 years ago
emersion
ff6c4f80b2
backend/drm: don't insert duplicate custom modes, fix refresh rate
6 years ago
Ryan Walklin
8f5ec5e2bb
Fix style nits
6 years ago
Ryan Walklin
810c7b700c
Working switches in rootston:
...
Factor out switch handling to separate file
Add formal enum for toggle action
Implement binding actions
6 years ago
Ryan Walklin
cd7a6daf48
Update config struct, reduce complexity and correctly parse config.ini
6 years ago
Ryan Walklin
2a7edfa24c
Factor out binding command execution to separate file
6 years ago
Ryan Walklin
2a3c62b4d2
[WIP][DONTMERGE]Add support for libinput_switch input devices
...
These are used primarily by laptops to signal
the state of the lid (open/closed) and tablet
mode if supported, based on ACPI events.
6 years ago
Drew DeVault
6161a153c8
Merge pull request #1426 from emersion/drm-disappear-index
...
backend/drm: fix disappeared output indices
6 years ago