Tony Crisci
675a71dce7
compositor.c: determine xdg position by window geom
7 years ago
Tony Crisci
7a3edf6e62
use double for cursor coordinates
7 years ago
Tony Crisci
8b74450b39
wlr_seat: pointer events
7 years ago
Tony Crisci
b01909ae15
compositor.c: xdg-surface layout position
...
Add data structures to compositor.c xdg-surface implementation that allows them
to be rendered in the correct position in the layout, spanning outputs if
necessary.
7 years ago
Tony Crisci
94f4f1878d
xdg-surface-v6: implement ping
7 years ago
Tony Crisci
c912de6390
compositor.c: implement xdg-toplevel-v6 request events
7 years ago
Tony Crisci
27161a673f
xdg-shell new surface and ack configure events
7 years ago
Tony Crisci
9d2dc8447a
use wlr_surface on shell struct and listen to events
7 years ago
Tony Crisci
31bd8e089b
compositor.c: working pointer
7 years ago
Tony Crisci
9d9aaad020
compositor.c: fix formatting
7 years ago
emersion
1b588e7c1f
Add gamma_control skeleton
7 years ago
Drew DeVault
586ae674ae
Merge pull request #136 from acrisci/bug/rename-output-layout-create
...
Rename wlr_output_layout_init()
7 years ago
Tony Crisci
e733b0e643
Rename wlr_output_layout_init()
...
Rename wlr_output_layout_init() to wlr_output_layout_create() to be consistent
with the rest of the api.
7 years ago
Tony Crisci
500bcc49c4
move device configuration to config.h
7 years ago
Tony Crisci
0cdd7fac02
pointer.c: refactor device configuration
7 years ago
Tony Crisci
6904ed8bd9
bugfix: warp cursor to current position on output add
7 years ago
Tony Crisci
6d26fda57c
use monotonic clock time for animations
7 years ago
Tony Crisci
35eee80f9b
remove unused outputs list in output-layout.c
7 years ago
Tony Crisci
fa3d4ecc84
fix layout hotplugging issue in output-layout.c
7 years ago
Tony Crisci
f8e4ba3f5f
cleanup output-layout example
7 years ago
Tony Crisci
40bd6bcc43
implement output layout auto configuration
7 years ago
Tony Crisci
368f74e4df
Refactor meson build files
...
Use tabs for indentation and break up function calls over 80 col.
7 years ago
Tony Crisci
6699024b44
handle empty config file
7 years ago
Tony Crisci
9b65d0b3f0
refactor and rename wlr_geometry to wlr_box
7 years ago
Tony Crisci
a51b76083e
rename wlr_cursor_init to wlr_cursor_create
7 years ago
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
Drew DeVault
f60b53c6e3
Change how surface matricies are calculated
7 years ago
Tony Crisci
e46ec57b43
implement surface sizing
7 years ago
Calvin Lee
5cc7342606
Prevent alloc errors from crashing
...
Resolves #76
7 years ago
Drew DeVault
4386816889
wlr_backend_init -> wlr_backend_start
...
Also renames create to init. We'll use create for anything that
allocates and init for anything that takes a pointer and initializes it.
7 years ago
Drew DeVault
d4b4bfb8bc
Fix #64
7 years ago
Dominique Martinet
de86965174
Use libinput_event_destroy/xkb_*_unref
...
Also sneak in a missing drmModeFreePlaneResources
7 years ago
Dominique Martinet
be3a0ad065
libinput backend: fill in handle_device_removed
...
And fix input_remove_notify accordingly
7 years ago
Dominique Martinet
1c7dd71208
WIP: example/shared.c free
...
Still missing something, the _remove functions are never called
7 years ago
Drew DeVault
62d8b252c0
Refactor meson and move xdg-shell into wlroots
7 years ago
Drew DeVault
3375381610
Fix segfault during xdg-shell cleanup
7 years ago
Drew DeVault
c24351681f
Refactor EGL handling
7 years ago
Drew DeVault
7095274a9e
Merge branch 'master' into drm_buffer
7 years ago
Drew DeVault
7da43ff8b0
Implement wlr_surface_flush_damage
7 years ago
nyorain
31d78ff497
Fix wlr_surface destruction bug
7 years ago
Tony Crisci
14654ecb77
implement compositor create region
...
Complete the implementation of wlr_region_create and put it in the compositor.
7 years ago
nyorain
1901c3e1b6
Fix example for updated gles
7 years ago
nyorain
67369173aa
Implement drm (egl) buffer attaching
7 years ago
Tony Crisci
8306f46dfb
implement surface frame
...
The surface frame callback lets a window know when it is a good time to show the
next frame if it is animating. In particular, this callback is used by
weston-simple-shm to throttle drawing.
7 years ago
Drew DeVault
bd2e9a7168
Style cleanup
7 years ago
Tony Crisci
5a7595af77
use generators for wayland protocol gen
7 years ago
Tony Crisci
26edd5fb9e
cleanup for style and formatting
7 years ago
Tony Crisci
816a7f8257
add xdg shell destructors
7 years ago
Tony Crisci
bdfe9faf58
Add todo for destroy_xdg_shell_surface
...
This free was causing crashes so remove the implementation and make a note to
do it later.
7 years ago
Tony Crisci
a6c7d8d14f
send configure event after creating toplevel
...
The xdg shell protocol requires us to send a configure in order for the client
to start attaching buffers.
7 years ago
Tony Crisci
5add87cac6
rename wlr_surface to wlr_texture
7 years ago
Tony Crisci
15885ab54a
implement xdg toplevel stubs
7 years ago
Tony Crisci
c3f15ea284
Add xdg shell stubs
7 years ago
Tony Crisci
347707c962
Add shell surface stubs
...
Add stubs for the wl_shell_surface interface.
Implement wl_shell_get_shell_surface by creating the shell surface and settings
its implementation to these stubs.
7 years ago
nyorain
cf9ee6ce3f
Move wlr_surface into wlr
7 years ago
nyorain
8473c3955c
Add first wlr_surface example implementation
7 years ago
Drew DeVault
ba87585bbe
Merge pull request #48 from nyorain/wlr_texture
...
Rename wlr_surface -> wlr_texture; attach -> upload
7 years ago
nyorain
e167f41fde
Rename wlr_surface -> wlr_texture; attach -> upload
7 years ago
Drew DeVault
9383aaf89e
Accomodate for hotspot in cursor position
7 years ago
Drew DeVault
7486263f7e
Add xcursor sublibrary
7 years ago
Scott Anderson
2f8b5c4448
More cleanups
7 years ago
Drew DeVault
5bf61ca7ed
Check for multi backend before using it
7 years ago
Scott Anderson
4d4da18437
Fixed VT switching
7 years ago
Scott Anderson
cb4d50e22c
Changed header paths.
7 years ago
Scott Anderson
ae4478e17f
Changed ownership of wlr_session to the multi backend.
...
Currently breaks VT switching for examples.
7 years ago
nyorain
fdab81e1c9
Use meson build system
7 years ago
Drew DeVault
7c393d5143
Missed a variable
7 years ago
Drew DeVault
95653c0bf7
Minor nitpicking in wl_compositor
7 years ago
Tony Crisci
effea557bb
Implement destroying surfaces
...
Add a signal for wlr_surface destruction on the wlr_surface that compositors
can listen to to remove the surface from their state.
Implement a listener for this in the example wl_compositor to remove the
surface from its internal list of surfaces.
Destroy the surface in the compositor destroy_surface callback given when the
surface resource was created.
Add a reference to the surface resource to the wlr_surface so a compositor can
find it in its list of resources upon wlr_resource destruction.
7 years ago
Tony Crisci
6610aa7ca7
Implement shm buffer surface attach interface
...
Implement surface_attach method. This is called when a client attaches an shm
buffer with wl_surface_attach().
Implement the GLES2 interface for attaching shm buffers. This creates an opengl
texture with the shm buffer contents for the surface.
This commit also includes some working code to render the surfaces onto the
screen for demonstration purposes.
7 years ago
Tony Crisci
555914a13b
Add surface interface stubs in compositor example
...
Add the wayland surface interface to the example compositor.
Implement the create_surface method to create a new wlr surface from the
wayland surface and add the interface.
7 years ago
Tony Crisci
aebe5ba48c
Use correct pixel format enum in touch example
...
Fix a call to `wlr_surface_attach_pixels()` in the main method of the touch
example to use the correct enum for this method (wayland instead of gl).
7 years ago
Drew DeVault
b08aa9fd35
Revert "Merge pull request #27 from ascent12/meson"
...
This reverts commit 85805da021
, reversing
changes made to 8189c64d7f
.
7 years ago
Drew DeVault
7b9c330bc5
Revert "Fixed linking error"
...
This reverts commit c81324bd0b
.
7 years ago
Scott Anderson
c81324bd0b
Fixed linking error
7 years ago
Scott Anderson
e54b1eded4
Small linking fix
7 years ago
Scott Anderson
a2ba226ba3
Use subdir
7 years ago
Scott Anderson
924bf0f669
Changed build system to meson
7 years ago
Scott Anderson
8189c64d7f
Fixed that warnings that showed up with optimisations.
7 years ago
Scott Anderson
ceef12cb5a
Exit cleanly if we cannot open Wayland socket.
7 years ago
Drew DeVault
8920b5d607
Merge branch 'wlcore'
8 years ago
Drew DeVault
486ec5953c
Add shim implementations of wl_{compositor,shell}
...
To example compositor
8 years ago
Drew DeVault
28736c5787
Move example -> examples
...
And the compositor example into its own directory
8 years ago