aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/interfaces
AgeCommit message (Collapse)Author
2019-04-23output: refactor backend APISimon Ser
This updates the backend part of the output API. This is mostly renaming: make_current becomes attach_render and swap_buffers becomes commit. This also fixes the RDP backend to support NULL damage.
2019-03-19s/lid_switch/switch_deviceRyan Walklin
Rename lid_switch to switch_device to disambiguate lid and tablet mode switches.
2018-12-15[WIP][DONTMERGE]Add support for libinput_switch input devicesRyan Walklin
These are used primarily by laptops to signal the state of the lid (open/closed) and tablet mode if supported, based on ACPI events.
2018-10-29backend/drm: fix frame scheduling on secondary GPUsemersion
There was a missing copy_drm_surface_mgpu call in drm_connector_schedule_frame so we asked for a pageflip with an unknown BO, resulting in ENOENT. Additionally, this commit makes schedule_frame return a bool indicating failures. This allows schedule_frame_handle_idle_timer to only set frame_pending to true if a frame has been successfully scheduled. Thus, if a pageflip fails, rendering won't be blocked forever anymore. In case a pageflip is already pending, true is returned because a frame has already been scheduled and will be sent sometime soon.
2018-10-05output: don't trigger a frame immediately in schedule_frameemersion
This desynchronizes our rendering loop with the vblank cycle. In case a compositor doesn't swap buffers but schedules a frame, emitting a frame event immediately enters a busy-loop. Instead, ask the backend to send a frame when appropriate. On Wayland we can just register a frame callback on our surface. On DRM we can do a no-op pageflip. Fixes #617 Fixes swaywm/sway#2748
2018-10-04output: add presentation refresh predictionemersion
2018-10-04output: add present eventemersion
2018-10-03output: make gamma size a size_t and gamma table constemersion
2018-09-14output: make wlr_output_enable return a boolemersion
2018-08-24Revert "Revert "Merge pull request #1194 from ascent12/meson_feature""Scott Anderson
This reverts commit 9c886f20b97b6ab1ac85b849f1fe7f16eb199ff0.
2018-08-23Revert "Merge pull request #1194 from ascent12/meson_feature"Drew DeVault
This breaks wlroots when used as a meson subproject. This reverts commit dea311992eb4ff3e343c3cf5b0603034223d2a42, reversing changes made to 6db9c4b74667c1d917d720f5e96985a2461569fb.
2018-08-22Install headers explicitlyScott Anderson
2018-08-02Implement wlr-gamma-control-unstable-v1emersion
2018-07-29Initial pass on API stability guaranteesDrew DeVault
This introduces -DWLR_USE_UNSTABLE and adds information regarding the stability status to all headers. I started with a conservative set of headers to mark as stable: - types/wlr_matrix.h - util/edges.h - util/log.h - util/region.h - xcursor.h
2018-07-14rename wlr_tablet_tool to wlr_tabletMarkus Ongyerth
The previous naming was based on the input-device capability names from libinput. With code that uses the libinput_tablet_tool and mapping into tablet-v2, this is confusing, so the name is changed to follow the names used in the protocol.
2018-05-31Merge branch 'master' into screencontentemersion
2018-05-29output, backend/drm: add wlr_output_export_dmabufemersion
2018-05-09Fix hardware cursors scale & transformemersion
2018-05-01output: always use hardware cursors if availableemersion
This changes the `wlr_output_impl.set_cursor` function to take a `wlr_texture` instead of a byte buffer. This simplifies the DRM and Wayland backends since they were creating textures from the byte buffer anyway. With this commit, performance should be improved when moving the cursor since outputs don't need to be re-rendered anymore.
2018-04-28backend/x11: correctly destroy input devicesemersion
2018-04-18output: don't emit the mode event if it hasn't changedemersion
This also fixes #535.
2018-03-06Add const to x11 and input interfacesScott Anderson
2018-02-12Reformat all #include directivesemersion
2018-02-09Swap buffers with damageemersion
2018-01-26output: add wlr_output_schedule_frameemersion
2018-01-21output: add damage tracking via buffer ageemersion
2018-01-20backend/drm: fix hardware cursors not movingemersion
This adds back `wlr_output::needs_swap`. This allows a backend to request buffer swaps even if the output isn't damaged. This is needed by the DRM backend to trigger pageflips when the cursor moves.
2018-01-04Add wlr_output::enabledemersion
2017-12-17Add full refresh rate support to custom modesemersion
2017-12-14Merge branch 'master' into surface-transformemersion
2017-12-11Add wlr_output_set_custom_modeemersion
2017-12-01Make wlr_output_transform_* functions public, refactoringemersion
2017-11-01Fix hidden software cursors, fix cursor transformations on DRM backendemersion
2017-11-01Apply output transformation to pointer events in Wayland backendemersion
2017-10-24Merge branch 'master' into feature/data-device-selectionTony Crisci
2017-10-23Send output current mode when changedemersion
2017-10-22Cleanup wlr_gamma_controlemersion
2017-10-22Create globals only for enabled outputs in DRM backendemersion
2017-10-22Add pointer to backend inside wlr_outputScott Anderson
2017-10-17Merge branch 'master' into feature/data-device-selectionTony Crisci
2017-10-15wlr-data-device interfaceTony Crisci
2017-10-12Allow to update the cursor hotspot without its pixelsemersion
2017-10-06Merge pull request #221 from versusvoid/wayland-xkb_state_update_maskDrew DeVault
Use xkb_state_update_mask() with Wayland backend
2017-10-06Use xkb_state_update_mask() with Wayland backendVersus Void
Fix #158
2017-10-06Transform hotspot with cursorVersus Void
Fix #188
2017-09-25Merge branch 'master' into rootstonDrew DeVault
2017-09-24Move keyboard logic to wlr_{keyboard,seat}Drew DeVault
2017-09-23Fix some include guard names in interfaces/emersion
2017-09-23Use more consistent include guard namesemersion
2017-09-06Add set_gamma and get_gamma_size to wlr_output_implemersion