Commit Graph

15 Commits

Author SHA1 Message Date
Simon Ser ca45f4490c Remove all wayland-server.h includes
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-07-27 15:49:32 -04:00
Simon Ser 23e37e7b1d output: refactor frame submission API
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-04-23 14:34:30 -06:00
emersion 755a1c9138 tinywl: send pointer frame events
Fixes https://github.com/swaywm/wlroots/issues/1544
2019-03-02 08:39:41 -07:00
athrungithub 2000d52405 clang compile fix #1572
clang consider error no enum handled,
in BSD and Linux
2019-02-26 08:05:17 +01:00
Alexander Bakker 776b6ce395 Fix software cursor rendering for tinywl and some examples 2019-01-13 21:39:56 +01:00
Drew DeVault 9921f9b28d Remove unused struct from tinywl 2019-01-10 21:18:52 -05:00
emersion 0fafab87e3
Fix a few typos 2019-01-10 09:30:14 +01:00
Drew DeVault 33d9d9f175 Annotate the source 2019-01-03 10:55:14 -05:00
Drew DeVault f0d8b793a8 Update READMEs per tinywl merge 2019-01-03 10:10:03 -05:00
Louis Taylor b3f51e39f8 view_at: remove unused variable 2018-11-27 21:36:24 -05:00
Louis Taylor b1d820c492 Correct WLR_BUTTON_PRESSED to WLR_KEY_PRESSED
This worked since it was the same value, but results in compile
warnings.
2018-11-26 21:09:23 -05:00
Drew DeVault 20e55f9458 Implement Alt+F1 (next window) and Alt+Esc (exit) 2018-08-15 19:12:35 -04:00
Drew DeVault 9e6ef44deb Fix uninitialized variable 2018-08-15 18:54:34 -04:00
Drew DeVault 09c8a048da Fix various bugs 2018-08-15 18:48:31 -04:00
Drew DeVault 5f4c64fbeb Tiny Wayland compositor 2018-08-15 18:27:48 -04:00