Tony Crisci
34f4a7b972
pointer.c: fix formatting
7 years ago
Tony Crisci
1193dd564b
config fixes
7 years ago
Drew DeVault
30611894f2
Implement tablet_tool support in pointer example
7 years ago
Tony Crisci
4fbe322fa6
fix memory errors
7 years ago
Tony Crisci
5c845f14ed
handle input device destroy
7 years ago
Tony Crisci
df0ee7f25f
implement tablet tool devices
7 years ago
Tony Crisci
5e06d61e42
implement touch up and touch down
7 years ago
Tony Crisci
ed126b0881
add touch events
7 years ago
Tony Crisci
dc7e32552d
config: fix uninitialized variables and accept trailing for geom
7 years ago
Tony Crisci
0a97b68278
implement cursor and device geometry mapping
7 years ago
Tony Crisci
d0cf8d0d01
add device configuration
7 years ago
Tony Crisci
699d489f93
add cursor configuration
7 years ago
Tony Crisci
b3a43e2261
add configuration file
7 years ago
Tony Crisci
54f87146c3
refactor example config and add ini.c
7 years ago
Tony Crisci
98f4cdfccb
implement wlr_cursor_map_input_to_output
7 years ago
Tony Crisci
a4810203cc
change output layout coords to double type
7 years ago
Tony Crisci
e3d47376dc
add wlr_cursor basic implementation
7 years ago
Dominique Martinet
1458a95e65
example compositor: loop through xwayland surfaces
7 years ago
Dominique Martinet
eb5b9cc6da
xwayland: move & split internal header file
7 years ago
Dominique Martinet
b2bab1af5c
xwayland: split xwm structure out, initial xwm.c
7 years ago
Dominique Martinet
60451521bd
start xwayland in example compositor
7 years ago
Dominique Martinet
2948f53721
example compositor: handle keyboard after we're done with init
...
the libinput backend does wl_display roundtrips, during which there is a
small window where keystrokes can be handled before the rest of the example
compositor is ready.
Setting the callback later ensures we're not called at this point
7 years ago
Dominique Martinet
1ca08dc4cb
wlr_compositor: change _init/finish to _create/destroy
7 years ago
Dominique Martinet
4110788159
move wl_compositor into wlroots as wlr_compositor
7 years ago
Dominique Martinet
5885679e33
examples: separate compositor_fini from run
...
compositor_fini destroys the display, but it is an error to destroy it
before e.g. wlr_seat that references it.
This lets us order destroy calls properly, following first-in-last-out
logic.
7 years ago
Dominique Martinet
f24b3df980
wlr renderer/texture: rename init to create when it does alloc
7 years ago
Tony Crisci
f03be94309
rename wlr_cursor to wlr_xcursor
...
This is for the implementation of another type that should be called wlr_cursor.
7 years ago
Tony Crisci
e3edb08126
bring output configuration into shared.h
7 years ago
Tony Crisci
769549c652
Refactor example output config
...
Put all the config parsing into shared.h so it is shared among the examples.
7 years ago
nyorain
f2a9098691
Fix wlr_data_device_manager
7 years ago
nyorain
86314caa5b
Implement wlr_data_{source,device,device_manager}
7 years ago
Drew DeVault
3138c5ddf0
Clean up wlr_output_layout
7 years ago
Tony Crisci
854a9381ca
improve collision detection algorithm
7 years ago
Tony Crisci
59a71f59b9
reconfigure output on resolution change
7 years ago
Tony Crisci
e0b409760d
fix output resolution callback
7 years ago
Tony Crisci
128f06405b
vt change bugfix
7 years ago
Tony Crisci
d9ebf0615a
add output resolution notify to example shared
7 years ago
Tony Crisci
5a9baf487e
add helper methods for intersection
7 years ago
Tony Crisci
dfb6a12036
layout-output example: only render if its on the output
7 years ago
Tony Crisci
2e9e237f9d
layout-output example: handle empty config
7 years ago
Tony Crisci
44181b57ac
Add wlr_output_layout implementation
...
An output layout consists of a mapping of outputs to their position in a global
coordinate system that usually cooresponds to the output position in physical
space in front of the user.
Add an example that allows configuration of an output layout and demonstrates
its boundaries with a bouncing image.
7 years ago
nyorain
edbaa7d6ac
Update keyboard modifiers in example compositor
7 years ago
nyorain
ad22b4874d
Fix wlr_seat; add to example compositor
7 years ago
Calvin Lee
901c14c409
Prevent alloc errors from crashing in `list_t`
...
This commit changes the `list_t` api so that alloc errors can be
detected and worked around. Also fixes errors not found in 5cc7342
7 years ago
Drew DeVault
19d6442f52
Merge pull request #91 from martinetd/move_wl_shell
...
Move wl_shell into wlroots
7 years ago
Drew DeVault
27c13d621d
Merge pull request #88 from 4e554c4c/alloc_crashing
...
Prevent alloc errors from crashing
7 years ago
Dominique Martinet
f9b55dfa95
Make wlr_wl_shell_create work like xdg
...
Also:
- rename wlr_xdg_shell_v6_init to create as that is what it does
- free wlr_xdg_shell on failure to create wl_global, the struct
is not initialized enough to call destroy at that point
7 years ago
Dominique Martinet
d49edc8243
wl_shell/compositor surface: do not check if it's in list before removing
7 years ago
Dominique Martinet
5dae8e1be8
example compositor: only iterate over wl_shell and xdg_shell surfaces
7 years ago
Dominique Martinet
f4e6b138fb
Move wl_shell into wlroots
7 years ago