aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-13Fix headless backendDrew DeVault
It was only working if you ran it underneath an already-working Wayland compositor. Running with the headless backend on the API would break.
2018-10-14Merge pull request #1308 from dcz-purism/fix_disable_text_inputDrew DeVault
text-input: Accept disable requests
2018-10-13text-input: Accept disable requestsDorota Czaplejewicz
The disable signal on text-input objects must not be ignored. It is only sent when the previous state was enabled.
2018-10-13Merge pull request #1304 from nyorain/dmabuf_v1Drew DeVault
Support older wlr_linux_dmabuf_v1 clients
2018-10-13Merge pull request #1305 from Wolf480pl/fix-xwayland-input-hintemersion
xwayland/xwm: make hints->input default to true
2018-10-13xwayland/xwm: make hints->input default to trueWolf480pl
An X11 client can leave the hints->input WM hint unspecified, by not setting the XCB_ICCCM_WM_HINT_INPUT flag in hints->flags. In that case, we should assume a sane default. Make the hint default to true, so that clients which do not specify the hint, like mupdf, still get keyboard focus. This should fix swaywm/sway#2231
2018-10-12Support older wlr_linux_dmabuf_v1 clientsnyorain
If a client uses an older version of the dmabuf protocol, use the `formats` event instead of `modifiers` (since that didn't exist in older versions). With a bit of necessary guessing, support dmabuf importing even when EGL_EXT_image_dma_buf_import_modifiers isn't present instead of failing up front.
2018-10-12Merge pull request #1303 from dcz-purism/fix_surface_goneemersion
text-input: fix releasing destroy handlers
2018-10-12text-input: fix releasing destroy handlersDorota Czaplejewicz
2018-10-12input-method-v2: fix include guard nameemersion
2018-10-12Assert read return value in examples/input-methodDrew DeVault
2018-10-12Update README.mdDrew DeVault
2018-10-12Merge pull request #1203 from dcz-purism/inputDrew DeVault
Support input method and text input
2018-10-11Merge pull request #1302 from ascent12/x11_configemersion
Include wlr/config.h in x11.h
2018-10-12Include wlr/config.h in x11.hScott Anderson
This fixes a warning from the linker when using LTO, due to mismatched types.
2018-10-09Merge pull request #1301 from emersion/cleanup-page-flipDrew DeVault
backend/drm: don't reset conn->pageflip_pending in drm_connector_cleanup
2018-10-09backend/drm: don't reset conn->pageflip_pending in drm_connector_cleanupemersion
If a pageflip is pending before cleanup, it's still pending after. This is used line 1177: drm_connector_cleanup is called and conn->pageflip_pending is checked afterwards. Fixes #1297
2018-10-09Merge pull request #1298 from emersion/output-dangling-idle-frameDrew DeVault
output: remove idle_frame event source when destroying output
2018-10-09Merge pull request #1299 from Emantor/set-drm-versionDrew DeVault
backend/drm: set drmEventContext version to 2
2018-10-09backend/drm: set drmEventContext version to 2Rouven Czerwinski
As per [1] set drmEventContext version to 2, since wlroots does not use the page_flip_handler2. [1]: https://s-opensource.org/2017/04/12/libdrm-event-handling-youre-probably-wrong/
2018-10-09rootston: add support for text input and the basic of input methodDorota Czaplejewicz
The compositor acts as a relay between applications using the text-input protocol and input methods using the input-method protocol. This change implements the basic but useful support for input-method, leaving out grabs as well as popups.
2018-10-09wlroots: add basic support for zwp_input_method_v2Dorota Czaplejewicz
Implemented basic input method functionality. Not included: popups, grabbing.
2018-10-09build: bump wayland-scanner versionDorota Czaplejewicz
wayland-scanner >= 1.15.0 accepts foreign struct references, necessary in protocols like zwp-input-method-v2
2018-10-09wlroots: add support for zwp_text_input_unstable_v3Dorota Czaplejewicz
2018-10-09output: remove idle_frame event source when destroying outputemersion
This prevents the idle event to be activated on a destroyed output. This also makes the backend responsible for free-ing modes, as it is the one allocating them and adding them to the list. Note that the DRM backend (the only one using modes) already frees them.
2018-10-09Merge pull request #1294 from emersion/xcursor-env-configDrew DeVault
rootston: export XCURSOR_SIZE and XCURSOR_THEME
2018-10-08Merge pull request #1280 from emersion/drm-link-statusScott Anderson
backend/drm: add support for the link-status property
2018-10-08rootston: export XCURSOR_SIZE and XCURSOR_THEMEemersion
These can be used by toolkits (currently Qt) to choose a default cursor theme and size. Note that this isn't a perfect solution: - Per-seat configuration isn't possible - It's not possible to set the default image - Live config reload isn't possible But it's easy to implement and simple. To fix these remaining issues a separate protocol would be needed.
2018-10-08Merge pull request #1292 from n3rdopolis/patch-3emersion
meson.build: require logind v237
2018-10-07meson.build: require logind v237n3rdopolis
Commit 7b523884249f904f45b1e9a7eae8152c2ac1248d uses a function added in logind v237
2018-10-07Merge pull request #1286 from emersion/drm-no-crtcDrew DeVault
backend/drm: better handle GPUs without CRTCs
2018-10-07backend/drm: fix zero-length VLAsemersion
2018-10-07backend/drm: properly handle GPUs without CRTCsemersion
2018-10-05Merge pull request #1284 from emersion/schedule-frameScott Anderson
output: don't trigger a frame immediately in schedule_frame
2018-10-05output: fix busy loop when backend doesn't implement schedule_frameemersion
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-05Merge pull request #1283 from swaywm/revert-1282-fix-idle-frameDrew DeVault
Revert "Prevent excessive frame events when compositor doesn't swap buffers"
2018-10-05Revert "Prevent excessive frame events when compositor doesn't swap buffers"Drew DeVault
2018-10-05Merge pull request #1282 from RyanDwyer/fix-idle-frameDrew DeVault
Prevent excessive frame events when compositor doesn't swap buffers
2018-10-05Prevent excessive frame events when compositor doesn't swap buffersRyan Dwyer
When we send an output frame event, we should not assume that the compositor is going to call wlr_output_swap_buffers in response to it. If the compositor does not swap the buffers, the idle event source still exists and is executed every time the Wayland event loop becomes idle, which means we send frame events repeatedly until the buffers are swapped. This moves the removal of the idle event source out of wlr_output_swap_buffers and into wlr_output_send_frame, where it is guaranteed to be removed.
2018-10-04Merge pull request #1272 from emersion/presentation-timeDrew DeVault
Implement presentation-time
2018-10-04output: add presentation refresh predictionemersion
2018-10-04rootston: send presentation eventsemersion
2018-10-04rootston: add output_for_each_surfaceemersion
2018-10-04rootston: add layer_for_each_surfaceemersion
2018-10-04Rename get_present_clock to get_presentation clock, use itemersion
2018-10-04output: fix clock_gettime return value handlingemersion
2018-10-04backend: add get_present_clockemersion
2018-10-04output: document signalsemersion
2018-10-04output: send present event from all backendsemersion