aboutsummaryrefslogtreecommitdiff
path: root/backend
AgeCommit message (Collapse)Author
2017-08-17wayland output: add error handling for xdg shellDominique Martinet
Note that this does not go on to the next backend, because attempt_wl_backend does not check if we have any output created. We cannot test simply because (right now) a run of our examples will go in this function twice, the first of which will (rightly?) return no display but needs to return backend creation success.
2017-08-17wayland backend: switch to xdg shellDominique Martinet
Closes #72 and #96.
2017-08-16Fix DRM problem introduced in 901c14cDrew DeVault
2017-08-16Improve no device detection supportDrew DeVault
2017-08-16Merge pull request #94 from martinetd/libinput_no_deviceDrew DeVault
libinput: fail if no input found on init
2017-08-16Prevent alloc errors from crashing in `list_t`Calvin Lee
This commit changes the `list_t` api so that alloc errors can be detected and worked around. Also fixes errors not found in 5cc7342
2017-08-16libinput: fail if no input found on initDominique Martinet
This runs through events pending at init on initialization so we can tell if some devices are available. Note that with the way wlr_device_lists is managed, this checks that there is at least one device we handle - it doesn't have to be a keyboard, but there is at least a mouse or tablet_pad or something that we care about. Instead of failing inconditionally it might be better to leave the decision to the user, e.g. add a "backend_has_devices" function to call later. (Tested by moving /dev/input off) Fixes #24.
2017-08-15Merge pull request #88 from 4e554c4c/alloc_crashingDrew DeVault
Prevent alloc errors from crashing
2017-08-15Merge pull request #86 from nyorain/masterDrew DeVault
Fix style issues
2017-08-15Prevent alloc errors from crashingCalvin Lee
Resolves #76
2017-08-14Add wayland backend cursor supportnyorain
2017-08-14Fix style issuesnyorain
2017-08-14wayland input_device_destroy: add missing bracesDominique Martinet
2017-08-14impl->destroy cleanup:Dominique Martinet
- remove trivial destroy() function - make sure we check impl and impl->destroy before calling - always call free if not implemented
2017-08-14Refactor out wlr_touch_stateDominique Martinet
2017-08-14Refactor out wlr_tablet_tool_stateDominique Martinet
2017-08-14Refactor out wlr_tablet_pad_stateDominique Martinet
2017-08-14Refactor out wlr_pointer_stateDominique Martinet
2017-08-14Refactor out wlr_keyboard_stateDominique Martinet
2017-08-14Refactor out wlr_input_device_stateDominique Martinet
2017-08-14Fix wlr_multi_backend_add incorrect assertDominique Martinet
2017-08-14Refactor out wlr_output_mode_stateDrew DeVault
2017-08-13Add backend detection functionsCalvin Lee
Resolves #80
2017-08-13Remove wlr_output_state, update backendsDrew DeVault
2017-08-13wlr_backend_init -> wlr_backend_startDrew DeVault
Also renames create to init. We'll use create for anything that allocates and init for anything that takes a pointer and initializes it.
2017-08-13Merge pull request #79 from martinetd/libinput_renamingDrew DeVault
Libinput renaming
2017-08-13Fix build on systems without systemdDrew DeVault
2017-08-13libinput backend: massive renamingDominique Martinet
- 'libinput' (backend's) to libinput_context - 'device' (libinput_device) to libinput_dev - 'dev' (wlr_device) to wlr_dev - 'devices' lists tangling of libinput devices to wlr_devices - 'devices' list of wlr_devices in backend state to wlr_device_lists
2017-08-13libinput backend: match logging for removal and addDominique Martinet
Only log removal of devices once, but also log it for devices that we do not care about.
2017-08-13libinput: remove useless get_context callDominique Martinet
That function is literally just "return event->device->seat->libinput" We do not use context, so do not fetch it.
2017-08-13wayland backend: do not watch wayland fd for writableDominique Martinet
Wayland fd is always writable and will busy-loop. The dispatch function gets called with 0-mask when we need to flush display anyway, so this saves CPU at no visible impact.
2017-08-12Re-enable backend autoselectionDrew DeVault
2017-08-12Refactor wlr_backend_state out of DRM backendDrew DeVault
2017-08-12Update libinput backend with new state designDrew DeVault
2017-08-12Refactor out wlr_backend_state from wl/multiDrew DeVault
2017-08-12libinput: fix segfault when handling non-wlr device removalDominique Martinet
2017-08-12wayland backend: free seatNameDominique Martinet
2017-08-12wayland backend: emit signal for input/output removalDominique Martinet
2017-08-12Use libinput_event_destroy/xkb_*_unrefDominique Martinet
Also sneak in a missing drmModeFreePlaneResources
2017-08-12libinput: signal input remove on libinput backend destroyDominique Martinet
This lets the upper crust cleanup and free their own states
2017-08-12libinput backend: fill in handle_device_removedDominique Martinet
And fix input_remove_notify accordingly
2017-08-11Fix libinput destroy for devices with multiple capabilitiesDominique Martinet
2017-08-11Complete a few destroy functionsDominique Martinet
This adds missing free calls for: - drm outputs - libinput backend in general - final udev free - output mode state
2017-08-11Build libinput events on the stack instead of allocatingDominique Martinet
2017-08-11Refactor meson and move xdg-shell into wlrootsDrew DeVault
2017-08-10Merge pull request #53 from nyorain/drm_bufferDrew DeVault
Implement drm (egl) buffer attaching
2017-08-10Refactor EGL handlingDrew DeVault
2017-08-11Fix possible use of CRTC after monitor is unpluggedScott Anderson
2017-08-10wlr_output_update_matrix during wl backend initDrew DeVault
2017-08-10Fix style issuesnyorain