aboutsummaryrefslogtreecommitdiff
path: root/examples/pointer.c
AgeCommit message (Collapse)Author
2021-07-01Remove unused wlr_list.h includesSimon Ser
2021-04-19Stop specifying xkb_rule_namesSimon Ser
If a NULL xkb_rule_names pointer is passed to xkb_keymap_new_from_names, libxkbcommon will default to reading the XKB_* env variables. So there's no need to do it ourselves. Also s/xkb_map_new_from_names/xkb_keymap_new_from_names/ since the latter is more consistent with the returned struct name. [1]: https://xkbcommon.org/doc/current/structxkb__rule__names.html
2021-04-19examples: use wlr_output_preferred_modeSimon Ser
2020-12-30Remove wlr_create_renderer_func_tSimon Ser
This callback allowed compositors to customize the EGL config used by the renderer. However with renderer v6 EGL configs aren't used anymore. Instead, buffers are allocated via GBM and GL FBOs are rendered to. So customizing the EGL config is a no-op.
2020-11-11Remove unneeded includes from wlr_input_device.hIsaac Freund
This uncovered many places where we were using things without directly including them.
2020-07-28examples: remove unnecessary gles2.h importsRouven Czerwinski
2020-06-20examples/pointer: fix wlr_renderer_end call orderSimon Ser
Calling wlr_renderer_end after wlr_output_commit would make an assertion fail.
2020-02-08examples: Fix compositor-examplesScott Anderson
Due to the way the wlr_output API was changed, these examples would never get a frame event to start the rendering loop. We now commit the outputs to start it.
2019-11-20Add -Wmissing-prototypesSimon Ser
This requires functions without a prototype definition to be static. This allows to detect dead code, export less symbols and put shared functions in headers.
2019-07-27Remove all wayland-server.h includesSimon Ser
The documentation for wayland-server.h says: > Use of this header file is discouraged. Prefer including > wayland-server-core.h instead, which does not include the server protocol > header and as such only defines the library PI, excluding the deprecated API > below. Replacing wayland-server.h with wayland-server-core.h allows us to drop the WL_HIDE_DEPRECATED declaration.
2019-04-23output: refactor frame submission APISimon Ser
This is necessary for direct scan-out and other upcoming features. This patch changes the output API to look like the wl_surface API. Outputs now have some double-buffered state: the frame to be submitted (currently only wlr_renderer frames are supported) and the damaged region. To attach a pending frame, use wlr_output_attach_render. To set the pending damaged region, use wlr_output_set_damage. To submit the pending state, call wlr_output_commit. This will submit the pending frame to the backend. To migrate from the old API to the new one: - Replace wlr_output_make_current calls by wlr_output_attach_render - Replace wlr_output_swap_buffers calls by wlr_output_set_damage and wlr_output_commit
2019-01-13Fix software cursor rendering for tinywl and some examplesAlexander Bakker
2018-09-03Handle setting keymap in examples more securelyrandom human
2018-08-16Fix build on FreeBSDemersion
2018-07-09util: add wlr_ prefix to log symbolsemersion
2018-05-25backends: implement custom EGL and renderer initializationIlia Bozhinov
Compositors now have more control over how the backend creates its renderer. Currently all backends create an EGL/GLES2 renderer, so the necessary attributes for creating the context are passed to a user-provided callback function. It is responsible for initializing provided wlr_egl and to return a renderer. On fail, return 0. Fixes #987
2018-05-13rename sample state to "state"Tony Crisci
2018-05-13pointer example: use xcursor managerTony Crisci
2018-05-13make pointer show up in pointer exampleTony Crisci
2018-05-10Fixed emersion's issuesTimidger
2018-05-10Fixed style issuesTimidger
2018-05-10Remvoed unnecessary wayland socket in examplesTimidger
2018-05-10Made examples/pointer standaloneTimidger
2018-05-10Moved cat out of support, removed supportTimidger
2018-03-28Remove width_mm from tablet eventsDrew DeVault
2018-03-28Remove width_mm from wlr_touch eventsDrew DeVault
2018-03-28Remove width_mm from wlr_pointer eventsDrew DeVault
2018-03-24Redesign wlr_textureemersion
- Textures are now immutable (apart from those created from raw pixels), no more invalid textures - Move all wl_drm stuff in wlr_renderer - Most of wlr_texture fields are now private - Remove some duplicated DMA-BUF code in the DRM backend - Add more assertions - Stride is now always given as bytes rather than pixels - Drop wl_shm functions Fun fact: this patch has been written 10,000 meters up in the air.
2018-03-19render: split render.h into wlr_renderer.h and wlr_texture.hemersion
2018-03-15matrix: move to types/emersion
2018-01-21output: add damage tracking via buffer ageemersion
2018-01-19output: fix software cursors damage trackingemersion
2018-01-15Fixed logging for examplesTimidger
2017-12-12Update output layout when scale or transform changesemersion
2017-11-20Use wl_list for touch points in examples/emersion
2017-11-16rename touch slot to touch idTony Crisci
2017-11-11Add scale parameter to wlr_cursor_set_imageemersion
2017-11-01Move shared example codeDrew DeVault
2017-10-31Remove outdated TODOs, use wlr_surface_has_bufferemersion
2017-10-31Add multi-pointer exampleemersion
2017-10-31Remove wlr_cursor_set_xcursor for nowemersion
2017-10-31Manage wlr_output_cursor from wlr_cursoremersion
2017-10-31Fix rootstonemersion
2017-10-22Forgot to rename theseDrew DeVault
2017-10-21Merge branch 'master' into heghe/wl_listDrew DeVault
2017-10-21Rename remaining refs to wlr_listDrew DeVault
2017-10-21Remove wl_list_init when using wl_signal_addemersion
2017-10-20Replace list_t with wl_list for wlr_input_deviceHeghedus Razvan
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
2017-10-06Transform hotspot with cursorVersus Void
Fix #188
2017-09-24Move keyboard logic to wlr_{keyboard,seat}Drew DeVault