Commit Graph

145 Commits

Author SHA1 Message Date
Jonas Platte b8c20ebf30
Update wayland-rs to 0.25 (#171)
Update wayland-rs to 0.25 and calloop to 0.5

Co-authored-by: Victor Berger <victor.berger@m4x.org>
2020-04-05 19:01:08 +02:00
Christophe Biocca 834f3d2e65 Upgrade to dbus 0.8, change imports to match. 2020-01-01 11:42:28 +01:00
Victor Berger 1627d51cf6 wayland: introduce explicit-synchronization helpers 2019-06-14 11:16:27 +02:00
Victor Berger 04dc563ea0 wayland.dmabuf: API improvements 2019-05-20 08:59:56 +02:00
Victor Berger 78874a8363 Require wayland-commons>=0.23.3 for UserDataMap 2019-04-27 21:38:24 +02:00
Victor Berger 0712bdefec anvil.glium_drawer: fix buffer release order 2019-04-22 17:20:46 +02:00
Victor Berger 5768e1fd87 Upgrade dependencies 2019-02-24 11:23:11 +01:00
Victor Berger 3f2857fbf3 Update smithay to wayland-server 0.23 2019-02-24 08:23:51 +01:00
Victor Berger 89dce178c8 Make wayland support optional 2019-02-06 09:29:56 +01:00
Victor Berger 48264926e6
version 0.2.0 2019-01-03 10:52:15 +01:00
Victor Brekenfeld 71bd64a6bf Fix source code for 2018 edition 2018-12-16 19:31:38 +01:00
Victor Brekenfeld 7c6354c1e7 Fixup example features 2018-12-16 14:56:36 +01:00
Victor Brekenfeld a8343edbd7 legacy: add legacy drm example 2018-12-05 22:51:41 +01:00
Victor Brekenfeld a3734da9da gbm: update to gbm 0.5 2018-12-05 22:45:01 +01:00
Victor Brekenfeld 8fbce616a6 libinput: update to 0.4.1 2018-12-05 22:45:01 +01:00
Victor Brekenfeld f8a5e8bfde anvil: allow for non-egl builds 2018-12-03 23:29:30 +01:00
Victor Brekenfeld f2466c5c50 drm: Fix drop order 2018-12-03 23:29:30 +01:00
Victor Brekenfeld cea123cd0b backend_winit: depends on renderer_gl 2018-11-29 19:41:17 +01:00
Victor Brekenfeld db495ce4dc Add backend_session to default, as it is not implied by backend_udev anymore 2018-11-29 16:13:07 +01:00
Victor Brekenfeld bd5690bd77 Refactor drm backend
- Split `DrmDevice` into `LegacyDrmDevice`, `GbmDevice` and `EglDevice`
- Provide common `Device` and `RawDevice` traits

- Change `DrmBackend` into `Surface` (and `RawSurface`) implementations of each `Device` (or `RawDevice`)
2018-11-29 16:13:07 +01:00
Victor Brekenfeld b537237a74 Refactor udev backend
- Do not open devices for `UdevHandler` anymore
- `UdevBackend` does not require `LoopHandle` or `Session` anymore
- Type of the created device can be choosed freely by the handler
- `UdevBackendObserver` is not needed anymore
2018-11-29 16:13:07 +01:00
Victor Brekenfeld 505791e336 Upgrade backends to calloop 0.4 and renamed gl-traits 2018-11-29 16:13:05 +01:00
Victor Brekenfeld 09e589b23c Generate (e)gl_bindings based on feature set 2018-11-29 16:12:11 +01:00
Victor Berger f1251a31e6 seat: user data mechanism for Seat 2018-11-18 23:04:50 +01:00
Pablo Stebler 630b659ae6 Upgrade calloop and winit (#114)
* Fix compilation with calloop 0.4

* Use `Into` instead of changing signatures

* Bump winit to 0.18

* Fix logind for calloop 0.4

* Cargo fmt
2018-11-17 18:01:04 +01:00
Lucas Timmins ffdf245259 Upgrade winit backend to 0.17 2018-09-30 19:22:35 +08:00
Victor Berger 605895e30f update to wayland-rs 0.21 2018-09-25 00:31:58 +02:00
Victor Berger de373074fd Update winit to 0.14 2018-05-12 12:55:37 +02:00
Victor Berger 23faeae20f move examples into our own compositor: anvil 2018-05-07 19:56:38 +02:00
Victor Berger d2cbadc670 xwayland: core infrastructure 2018-04-30 21:28:17 +02:00
Victor Berger ebee5feb9e wayland-rs 0.20.1 works around the rustc bug 2018-04-23 18:26:17 +02:00
Victor Berger d267a89ba9 remove crates.io patch, wayland-rs 0.20 is published 2018-04-21 09:07:31 +02:00
Victor Berger b8d4b17a8a wayland.shell: split wl and xdg & port xdg 2018-04-18 12:51:08 +02:00
Victor Berger b80093ffda backend.session: migrate to wayland_rs-0.20 2018-04-17 18:39:07 +02:00
Victor Berger 570cee0987 Prepare migration to wayland-rs-0.20 2018-04-12 11:39:14 +02:00
Drakulix 5cfdf931fb Update for wayland-server 0.14 2018-02-21 21:02:14 +01:00
Drakulix 6f597e2244 Use wayland_server 0.13 instead of git dependency 2018-02-21 14:53:01 +01:00
Drakulix b80674bdf5 Introduce SessionObserver
`DrmDevice` and `UdevBackend` now do not need to be wrapped into `StateToken`s anymore, but can return a separate `SessionObserver` object using the new `AsSessionObserver` trait.

This change was motivated by allowing the `UdevHandle` to obtain a mutable reference to an `EventLoopHandle` to create wayland object, e.g. a `wl_output` object.

Previously this was not possible.

Depends on https://github.com/Smithay/wayland-rs/pull/164
2018-02-21 14:24:20 +01:00
Drakulix b012cb6404 Update gl_generator 2018-02-21 12:00:57 +01:00
Drakulix 5725d1bb34 Remove broken ctrlc helper 2018-02-20 19:19:22 +01:00
Drakulix 2017d8cd16 use systemd crates.io release 2018-02-20 19:19:22 +01:00
Drakulix b16c62b19f Add logind session 2018-02-20 19:19:22 +01:00
Drakulix b2ee62bebf Use stable gbm.rs 2018-01-07 20:23:29 +01:00
Drakulix c5f475ebb5 Make unbind_egl_display into Drop implementation for EGLDisplay 2018-01-07 13:02:26 +01:00
Drakulix 5d7e96103d Rework EGL module 2017-12-24 14:29:45 +01:00
Drakulix e1b2c88c83 Use global gl_generator generator 2017-12-24 14:12:51 +01:00
Drakulix ec6eae6799 Use stable drm-rs version 2017-12-21 16:23:34 +01:00
Drakulix ed2174168d Use stable drm-rs master 2017-12-14 21:50:41 +01:00
Drakulix c9e7624a33 Remove (incomplete) logind support for now 2017-12-07 15:25:21 +01:00
Drakulix 40ef1236ea Update to released udev/libinput versions 2017-12-06 02:06:00 +01:00
Drakulix 35b20450c5 Fixup patched drm-rs 2017-12-03 20:24:22 +01:00
Drakulix bd83bc5b2d Restore drm state correctly 2017-12-02 17:07:52 +01:00
Drakulix b5b5af9b99 Temporary build fix 2017-11-30 01:45:53 +01:00
Drakulix b4be5a5786 Comment out logind integration for now 2017-11-29 22:28:14 +01:00
Drakulix 96bb3570ba Get input working 2017-11-29 22:28:14 +01:00
Drakulix c7682e77de Udev backend 2017-11-29 22:28:13 +01:00
Victor Berger c31d966fd4 Upgrade wayland-server to 0.12 2017-11-03 17:31:51 +01:00
Demur Rumed ce844ba9f8 Cargo.toml: include repo, update nix/image 2017-10-09 15:17:19 +02:00
Victor Berger dca932bbd3
Version 0.1.0 2017-10-01 23:11:01 +02:00
Drakulix 51886fbf00 Update to stable drm-rs version 2017-10-01 22:25:52 +02:00
Victor Berger 30efcea2ee travis: test various features combination 2017-09-30 12:05:28 +02:00
Victor Berger 5a0713feb9 Fix winit backend on wayland
We were trying to swap_buffers while the xdg_surface had not been
configured yet, which is a protocol error.
2017-09-29 17:22:19 +02:00
Victor Berger e3cb52d06b update winit 2017-09-22 14:54:34 +02:00
Victor Berger 2850def0f4 Rework keyboard handler 2017-09-21 21:08:30 +02:00
Drakulix 518f7dbdfc Store DrmBackend in EventLoop state 2017-09-20 19:48:58 +02:00
Drakulix fa6742fb5f The glory of error-chain 2017-09-20 15:56:11 +02:00
Drakulix ab77a87725 drm: Check for valid encoder 2017-09-20 15:51:59 +02:00
Drakulix 0698775153 drm: Introduce the Drm Backend
- new backend rendering via egl via gbm directly on a drm device
- refine EGLContext and EGLSurface dependencies through lifetimes
- fixup the old winit backend to work with these changes
- add new example using the drm backend instead
- change GliumDrawer to be static for the drm example
2017-09-20 15:50:14 +02:00
Victor Berger bb86b1c3ed shm: update to wayland-server-0.10 2017-09-20 09:56:44 +02:00
Victor Berger 30c0628959 examples: randomise window location in simple.rs 2017-09-05 21:23:40 +02:00
Victor Berger 3128585fc9 shell: shell backend first draft 2017-09-05 19:50:22 +02:00
Victor Berger b19fafa1a0 Update winit dependency 2017-06-24 10:31:36 +02:00
Victor Berger 712fc5b8b8 examples: improve simple.rs 2017-06-23 15:20:09 +02:00
Victor Berger f2698ec39a Fix cargo.toml 2017-06-23 15:19:27 +02:00
Victor Berger 43d1812e1f Donc use default features for glium
It pulls two versions of winit as deps for nothing.
2017-06-23 15:19:27 +02:00
Drakulix 2d255fd48d Decouple EGLSurface from EGLContext 2017-06-10 23:28:09 +02:00
Drakulix ac4ae3ebe4 Update libinput bindings 2017-06-08 01:14:56 +02:00
Drakulix 115eb4d200 Update winit 2017-06-02 13:54:34 +02:00
Drakulix 5bc641852f Bugfixes 2017-05-21 22:40:15 +02:00
Drakulix b950714c03 First EGL Rework draft 2017-05-18 22:28:02 +02:00
Drakulix 4c5e2be11e Update libinput to v0.1.1 2017-04-26 20:09:57 +02:00
Drakulix 10857d108e Move over to crates.io version 2017-04-15 19:29:15 +02:00
Drakulix cba111bf4f Add input crate 2017-04-15 19:29:15 +02:00
Victor Berger fd1868c419
Use default slog settings:
- no trace in debug builds
- no trace nor debug in release builds
2017-04-15 12:34:44 +02:00
Victor Berger 0c3bd1d001 Update slog and centralize log handling. 2017-04-12 21:31:31 +02:00
Victor Berger f5bee06b7b
keyboard: first draft of xkbcommon handling 2017-04-09 16:01:00 +02:00
Victor Berger 0bf0fbdb50 Add MIT license 2017-03-24 10:24:07 +01:00
Drakulix 4c2e0f889f Update features 2017-03-18 17:26:51 +01:00
Drakulix 7ac16ce200 Update wayland-server dependency 2017-03-14 19:35:02 +01:00
Drakulix ec8149b084 Initial glutin backend implementation 2017-03-14 19:34:48 +01:00
Victor Berger 38708c4ead travis: Add clippy 2017-03-11 09:15:17 +01:00
Victor Berger a51a780e77 Add slog integration 2017-02-22 11:00:03 +01:00
Victor Berger 12dc3b65d8 shm: mmap logic 2017-02-20 22:32:03 +01:00
Victor Berger 48424da89b shm: API & wayland structure of the code
shm/pool.rs is left WIP and will handle the actual memory-map logic.
2017-02-19 20:39:05 +01:00
Victor Berger bddc46b53a Initial commit 2017-01-20 09:54:05 +01:00