Commit Graph

122 Commits

Author SHA1 Message Date
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