Kirill Primak
1243a855d4
xdg-shell: fix geometry types
2022-11-05 18:30:09 +00:00
Kirill Primak
92e3c5b798
scene: fix buffer source box transforming
2022-11-05 14:44:57 +03:00
Simon Ser
3b75ab97e2
render/vulkan: drop outdated comments
2022-11-04 14:29:54 +01:00
Simon Ser
2ac2835a1f
render/vulkan: remove exts arg from vulkan_instance_create()
2022-11-04 14:12:38 +01:00
David96
7a42392da2
render/vulkan: add caching to vulkan_read_pixels
2022-11-04 09:13:48 +00:00
Simon Ser
05454618cd
xwayland: split headers
...
We're about to get one more Xwayland-related thing, and this header
already contains two things.
2022-11-02 19:00:23 +01:00
Simon Ser
fc3d8b228b
backend/drm: get possible CRTCs in create_drm_connector()
...
This stuff is immutable for a given connector.
2022-11-02 14:48:30 +00:00
Simon Ser
92580a2f67
backend/drm: extract create_drm_connector()
...
Move a bit more logic out of the big loop in scan_drm_connectors().
2022-11-02 14:48:30 +00:00
Simon Ser
4d04144b92
render/gles2: de-duplicate vertex shaders
...
The vertex shaders for quads and textures are identical.
2022-10-28 13:49:03 +02:00
Simon Ser
d69018c195
render/gles2: move color uniform from quad.vert to quad.frag
...
We have no use for a v_color varying. We can use the uniform
directly from the fragment shader without getting the vertex shader
involved.
2022-10-28 13:49:03 +02:00
Simon Ser
a75f9be2e8
render/gles2: move shaders to individual files
...
Instead of having a C file with strings for each shader, move each
shader into its own file. Use a small POSIX shell script to convert
the files into C strings (can't wait for C23 #embed...).
The benefits from this are:
- Improved readability and syntax highlighting.
- Line numbers in shader compiler errors are easier to make sense of.
- Consistency with the Vulkan renderer.
- Shaders will become more complicated as we add color management
features.
2022-10-28 11:46:06 +00:00
Simon Ser
bc416ed752
render/gles2: log error on shader compilation failure
2022-10-27 16:43:03 +02:00
Kirill Primak
bc4350c976
backend/wayland: reset active pointer on destroy
2022-04-29 21:55:04 +03:00
Kirill Primak
ec2af17674
CONTRIBUTING.md: update init/finish description
2022-04-28 08:30:26 +00:00
Simon Ser
a1e1e9aba8
Revert "backend/wayland: zero out finished input devices"
...
This reverts commit 03c88b07ba .
init functions now zero out the structs.
2022-04-28 10:09:50 +02:00
Simon Ser
6c350799b2
Zero-initialize structs in init functions
...
Ensures there is no field left to its previous undefined value after
calling an init function.
2022-04-28 10:09:50 +02:00
Simon Ser
54653b5d95
util/addon: fix public include
...
Everything in wlr/ is public and should be included via angle-bracket
include directives.
2022-04-26 09:43:10 +02:00
tiosgz
c091a07589
CONTRIBUTING.md: make forks public to let the CI run
...
This little note helps first-time contributors who are in doubt regarding the
repo visibility.
2022-04-24 17:07:04 +00:00
zsugabubus
91da4c557b
xwayland: do not double free server on destroy
2022-04-23 08:08:33 +00:00
Kirill Primak
03c88b07ba
backend/wayland: zero out finished input devices
2022-04-22 17:51:24 +00:00
Kirill Primak
a43d105a50
backend/wayland/pointer: fix indentation
2022-04-22 17:51:24 +00:00
Alexander Orzechowski
2ce0305483
seat: Don't finish wlr_keyboard if server was never started
2022-04-22 01:49:58 +00:00
John Lindgren
640f3b9f21
Revert "Copy xcb_icccm structs into wlroots"
...
The original commit introduced a bug by transposing the order of
some of the fields in xcb_size_hints_t. Since XCB ICCCM support is
required now, we can just eliminate the duplicate structs.
With minor changes:
- Remove #ifdef HAS_XCB_ICCCM guards
- Fix #includes
- Fix references to local size_hints struct
This reverts commit 12b9b1a4bd .
2022-04-17 14:44:52 +00:00
Ferdinand Bachmann
d3a2ea33e5
types/seat/wlr_seat.c: fix focused_client being null after seat_client recreation
2022-04-16 20:56:30 +02:00
Ferdinand Bachmann
2d4e813530
types/wlr_pointer_gestures_v1.c: get client from seat client instead of resource
2022-04-16 20:53:52 +02:00
Ferdinand Bachmann
eedb9df531
types/wlr_pointer_gestures_v1: null-check both focused_surface and focused_client
...
(fixes #3385 )
2022-04-15 16:06:16 +02:00
Kirill Primak
4ba8458255
scene/output-layout: fix scene destroy handler
2022-04-14 06:51:39 +00:00
Kirill Primak
dec2565f2b
xdg-toplevel: don't schedule configures on state requests
2022-04-13 17:00:06 +00:00
Kirill Primak
04aa44b4df
xdg-foreign-v2: treat unmapped parents as NULL
2022-04-13 16:48:15 +00:00
Kirill Primak
dac040f87f
xdg-foreign-v1: treat unmapped parents as NULL
2022-04-13 16:48:15 +00:00
Kirill Primak
bf3f60ff73
xdg-toplevel: treat unmapped parents as NULL
2022-04-13 16:48:15 +00:00
Kirill Chibisov
2e14bed9f7
meson: use target_machine instead of host_machine
2022-04-03 11:46:25 +00:00
Kirill Primak
578e5614d4
tinywl: remove outdated non-feature from README.md
...
Now that tinywl uses wlr_scene under the hood, damage tracking comes for
free.
2022-04-01 14:22:28 +00:00
Kirill Primak
62fbf3f4ba
tinywl: don't generate xdg-shell-protocol.c
...
It's unused, and wlroots-based compositors don't need to do this anyway.
2022-04-01 11:51:24 +03:00
Kenny Levinsen
bb32349c97
meson: soversion arg should be string
...
muon, a meson implementation in C, is more strict with its types and
revealed this discrepancy between meson behavior and documentation.
2022-03-28 20:21:49 +02:00
Guido Günther
dd03d839ab
xdg-activation: Deduplicate token creation code
...
There were three places initializing a token:
- wlr_xdg_activation_v1_add_token
- wlr_xdg_activation_token_v1_create
- activation_handle_get_activation_token
The initialization of the token.destroy was missing in the first one. To
prevent these functions from getting out of sync move the token creation
into a common function.
Fixes 4c59f7d4 ("xdg-activation: Allow to submit tokens")
2022-03-26 17:28:51 +01:00
Leonardo Hernández Hernández
4519117a68
seat: take wlr_keyboard in wlr_seat_set_keyboard()
...
Signed-off-by: Leonardo Hernández Hernández <leohdz172@protonmail.com>
2022-03-23 13:08:41 +00:00
Guido Günther
4cc2a03620
layer-shell: Make wlr_layer_surface_v1_from_resource public
...
This allows compositors to leverage the `wl_instance_of` based type
check.
2022-03-23 09:19:43 +00:00
Simon Zeni
aaf787ee56
types/wlr_touch: uniformize events name
2022-03-17 18:16:14 +00:00
Simon Zeni
e732c5c895
types/wlr_tablet_tool: uniformize events name
2022-03-17 18:16:14 +00:00
Simon Zeni
d1f543a9d8
types/wlr_tablet_pad: uniformize events name
2022-03-17 18:16:14 +00:00
Simon Zeni
13d7fa2f03
types/wlr_switch: uniformize events name
2022-03-17 18:16:14 +00:00
Simon Zeni
9a17200446
types/wlr_keyboard: uniformize events name
2022-03-17 18:16:14 +00:00
Simon Zeni
bd6c000d14
types/wlr_pointer: uniformize events name
2022-03-17 18:16:14 +00:00
Simon Zeni
96ccc50c57
types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and wlr_touch
2022-03-17 13:44:19 -04:00
Simon Zeni
a92e5f8d46
types/wlr_input_device: move output_name field to wlr_pointer and wlr_touch
2022-03-17 13:44:18 -04:00
Simon Zeni
2001441a37
backend/wayland: remove wl_seat_listener from public API
2022-03-17 17:16:47 +00:00
Simon Zeni
b7e9ad7989
backend/wayland: remove wlr_wl_input_device
2022-03-17 17:16:47 +00:00
Simon Zeni
56f7c000b5
backend/wayland/tablet_v2: give wlr_tablet_* ownership to wlr_wl_seat
2022-03-17 17:16:47 +00:00
Simon Zeni
d3fb44314c
backend/wayland: give wlr_touch ownership to wlr_wl_seat
2022-03-17 17:16:47 +00:00