Alex Maese
8b97c20d01
Finish addressing @emersion's comments
6 years ago
emersion
69e7fd61b7
data-control-v1: update to latest protocol proposal
6 years ago
emersion
99d879c887
data-control-v1: initial protocol implementation
6 years ago
Jente Hidskes
ed5296c6cf
Protect against redefining MESA_EGL_NO_X11_HEADERS
6 years ago
Timidger
9af0c5338f
Standardize the wlr_box input paramaters
...
Fixes #1094
6 years ago
Alex Maese
5999d0322b
Add a listener for when the pointer gets destroyed
6 years ago
Alex Maese
12d9edc0c9
Address more of @emersion's comments
6 years ago
Alex Maese
e276d310e8
Add unaccelerated pointer values to wlr_event_pointer_motion events
6 years ago
Alex Maese
a803a007fb
Address @emersion's comments
6 years ago
Alex Maese
f5ea393bca
Remove pointer resource from relative pointer
6 years ago
Alex Maese
09bdbf24f4
Removed relative pointers from wlr_seat
6 years ago
Alex Maese
f4cf3c0886
Remove wl_client from wlr_relative_pointer_v1
6 years ago
Alex Maese
a2964a640b
Add wlr_relative_pointer_v1.h to meson.build
6 years ago
random human
68137dca3f
relative_pointer: implementation and code fixes
...
In particular, modified public creator and destructor function names,
added a display destroy listener, safely extract user data from
resources, send correct time (in usecs) in rootston, etc.
6 years ago
random human
fb44ce9fa8
relative_pointer: send frame event to pointer for Xwayland
6 years ago
random human
6fa1777f94
relative_pointer: code formatting fixes
6 years ago
random human
d020344675
relative_pointer: implement protocol events
...
Implement zwp_relative_pointer_v1.relative_motion event, along with some
glue code in wlr_seat_pointer and rootston.
6 years ago
random human
ba5b1676df
relative_pointer: implement protocol requests
...
Flesh out the details of the structs, signals, callback functions, and
so on. weston-resizer silently works at this point (no events sent).
6 years ago
random human
3a3d1b6617
relative_pointer: create skeleton and build
...
Add protocol, header and type files to build. Create skeleton structs,
creator and destroyer, and define implementations.
6 years ago
Ryan Walklin
810c7b700c
Working switches in rootston:
...
Factor out switch handling to separate file
Add formal enum for toggle action
Implement binding actions
6 years ago
Ryan Walklin
2a3c62b4d2
[WIP][DONTMERGE]Add support for libinput_switch input devices
...
These are used primarily by laptops to signal
the state of the lid (open/closed) and tablet
mode if supported, based on ACPI events.
6 years ago
emersion
8c573bc7c6
gtk-primary-selection: basic serial validation
6 years ago
Ilia Bozhinov
5b1b9657bf
types: implement wlr_foreign_toplevel_management_v1
6 years ago
emersion
1256314afe
export-dmabuf-v1: add missing destroy request handler
...
Also document lists in the header file.
6 years ago
Duncaen
e584857fa9
Install wlr_pointer_constraints_v1.h
6 years ago
Drew DeVault
273e110b74
Merge pull request #1403 from emersion/swap-buffers-damage-coords
...
output: switch swap_buffers damage to output-buffer-local coords
6 years ago
emersion
6aaefad40d
output: switch swap_buffers damage to output-buffer-local coords
...
This is one more step towards [1]. This gives more freedom to the compositor
wrt. how it handles damage.
[1]: https://github.com/swaywm/wlroots/issues/1363
6 years ago
emersion
9f0720c03a
primary-selection: introduce wlr_primary_selection_source
...
This is a common interface that can be used for all primary selection
protocols, as discussed in [1]. A new function wlr_seat_set_primary_selection
is added to set the primary selection for all protocols.
The seat now owns again the source, and resets the selection to NULL when
destroyed.
[1]: https://github.com/swaywm/wlroots/issues/1367#issuecomment-442403454
6 years ago
emersion
bfa7f4ee0d
gtk-primary-selection: use impl pattern for sources
6 years ago
emersion
cbe42d1006
gtk-primary-selection: remove offer struct
...
We don't need it, we can use the device instead.
6 years ago
emersion
f001f98cef
gtk-primary-selection: refactor everything, untie from seat
...
This commits completely refactors wlr_gtk_primary_selection. The goal is to
remove gtk-primary-selection state from the seat and better handle inert
resources where it makes sense.
wlr_seat_client.primary_selection_devices has been removed and replaced by
wlr_gtk_primary_selection_device. This allows us to make offers inert when the
current selection is replaced.
wlr_seat_set_primary_selection has been removed because it relied on wlr_seat
instead of wlr_gtk_primary_selection_device_manager. A new function,
wlr_gtk_primary_selection_device_manager_set_selection (candidate for the
longest function name in wlroots) has been added. It doesn't take a serial
anymore as serial checking only makes sense for set_selection requests coming
from Wayland clients (serial checking is now done in the Wayland interface
implementation).
Since wlr_gtk_primary_selection_device_manager is now required to set the
selection, a new function wlr_xwayland_set_gtk_primary_selection_device_manager
(candidate number two for longest function name) has been added.
Devices are now made inert when the seat goes away.
Future work includes removing the last primary selection bits from the seat,
mainly wlr_seat.primary_selection_source and wlr_seat.events.primary_selection,
replacing those with new fields in wlr_gtk_primary_selection_device. Or maybe
we could keep those in the seat and replace them with a re-usable interface
(for future zwp_primary_selection_v1 support). We need to think how we'll sync
these three protocols (GTK, X11 and wayland-protocols).
See https://github.com/swaywm/wlroots/issues/1388
6 years ago
Drew DeVault
05bb440786
Merge pull request #1387 from emersion/rename-gtk-primary-selection
...
Rename wlr_primary_selection to wlr_gtk_primary_selection
6 years ago
Drew DeVault
a2b8d47ff2
Merge pull request #1384 from emersion/data-multiple-devices
...
data-device: allow multiple devices for the same seat
6 years ago
emersion
a5b8ea90d2
surface: fix destroyed subsurfaces handling
...
wlr_subsurface_from_wlr_surface can return NULL if the wl_surface is still
alive and if the wl_subsurface has been destroyed. Make sure we check for NULL.
Fixes https://github.com/swaywm/sway/issues/3195
6 years ago
emersion
5d26da9d15
data-device: allow multiple devices for the same seat
...
This commit makes it possible for a single client to have multiple data devices
for the same seat. This fixes issues with Firefox.
This mainly removes wlr_data_source.offer. We make sure we create one data
offer per device. We now make the offer inert when the source is destroyed.
Fixes the second half of https://github.com/swaywm/wlroots/issues/1041
6 years ago
Ilia Bozhinov
fb5691b6cc
output: add wlr_output_preferred_read_format()
...
The read format is dependent on the output, so we first need to make it
current. This fixes a race condition in wlr-screencopy-v1 where a dmabuf
client would cause EGL_NO_SURFACE to be bound at the time when
screencopy needs to query for the preferred format, causing GL errors.
6 years ago
emersion
811a4d997b
Rename wlr_primary_selection to wlr_gtk_primary_selection
6 years ago
emersion
eaafd65a12
gtk-primary-selection: track resources
6 years ago
emersion
b9a2e4ba4c
gtk-primary-selection: support multiple devices
...
When a client was creating multiple data devices for the same seat, we were
only creating one resource. This is a protocol error.
Instead, create one offer per data device.
This commit also makes offers inert when their source is destroyed.
Fixes part of https://github.com/swaywm/wlroots/issues/1041
Supersedes https://github.com/swaywm/wlroots/pull/1113
6 years ago
emersion
ca770995cc
output: add wlr_output_render_software_cursors
...
Rendering in wlr_output_swap_buffers has unfortunate side-effects.
6 years ago
emersion
57307b7aa7
output: remove wlr_output_set_fullscreen_surface
...
This wasn't using direct scan-out. Direct scan-out will probably
work differently with @ascent12's work anyway.
6 years ago
Scott Anderson
70ae76304e
backend/x11: Remove old input functions
...
This also allows us to remove xcb-xkb, since Xinput will now give us the
appropriate XKB modifiers with each event.
6 years ago
Scott Anderson
ab2c57984b
backend/x11: Make header order consistent
6 years ago
emersion
51bfdd620e
Use #if instead of #ifdef for wlroots config data
...
This prevents some annoying issues when e.g. not including wlr/config.h or
making a typo in the guard name.
6 years ago
Cedric Sodhi
beefec3326
Tell Mesa not to attempt X11 headers
...
If no X11 related things are being built, tell Mesa's eglplatform.h not to attempt inclusion of associated X11 header.
6 years ago
sghctoma
753540335b
Remove WLR_HAS_POSIX_FALLOCATE from build system
6 years ago
Drew DeVault
d7b010024a
Merge pull request #1261 from arandomhuman/damage-control
...
Fix damage tracking for surfaces with transforms
6 years ago
emersion
dec303bea6
surface: fix wlr_surface_get_effective_damage to give surface coords
...
Transforms were applied, but scale wasn't.
6 years ago
emersion
62d646f2b8
render/gles2: remove assumptions about supported formats
...
We were assuming GL_BGRA_EXT was always supported.
We now check that it's supported for rendering. We fail if it isn't because
this format is specified as "always supported" by the Wayland protocol.
We also check if it's supported for reading pixels. A new preferred_read_format
function returns the preferred format that can be used to read pixels. This is
used by the screencopy protocol.
6 years ago
emersion
68362b37a8
backend/drm: fix frame scheduling on secondary GPUs
...
There was a missing copy_drm_surface_mgpu call in drm_connector_schedule_frame
so we asked for a pageflip with an unknown BO, resulting in ENOENT.
Additionally, this commit makes schedule_frame return a bool indicating
failures. This allows schedule_frame_handle_idle_timer to only set
frame_pending to true if a frame has been successfully scheduled. Thus, if a
pageflip fails, rendering won't be blocked forever anymore.
In case a pageflip is already pending, true is returned because a frame has
already been scheduled and will be sent sometime soon.
6 years ago
emersion
b42fc4f2b1
render: on Wayland, make eglSwapBuffers non-blocking
6 years ago
Drew DeVault
ac26d23711
Merge pull request #1287 from emersion/source-seat-client
...
data-device: remove wlr_data_source.seat_client
6 years ago
nyorain
cb03a41a3b
Use enum wl_shm_format for gles2 texture formats
...
Also rephrase the write_pixels comment.
6 years ago
nyorain
cd28637187
Remove fmt parameter from wlr_texture_write_pixels
...
It's not allowed to change the format of a texture so remove
the confusing parameter.
6 years ago
nyorain
affbfb6a28
Support older wlr_linux_dmabuf_v1 clients
...
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.
6 years ago
emersion
4897267bd6
input-method-v2: fix include guard name
6 years ago
Drew DeVault
66e8908e9a
Merge pull request #1203 from dcz-purism/input
...
Support input method and text input
6 years ago
Dorota Czaplejewicz
cec7471119
wlroots: add basic support for zwp_input_method_v2
...
Implemented basic input method functionality. Not included: popups, grabbing.
6 years ago
Dorota Czaplejewicz
427735fcd9
wlroots: add support for zwp_text_input_unstable_v3
6 years ago
emersion
f44003f04b
data-device: remove wlr_data_source.seat_client
...
Since the source doesn't always come from a client, this field
doesn't make sense. It is replaced by a new "finalized" field in
wlr_client_data_source. This is used to make sure set_actions is
not sent after start_drag has been sent.
A check in data_offer_choose_action has been removed: if an offer
has been sent then start_drag has been called, no need to check.
I also wanted to add a check for wl_data_source.offer, but it
turns out (1) this isn't in the spec (2) it breaks GTK+.
This is some preliminary work for Firefox on Wayland compatibility.
6 years ago
emersion
ba91422747
output: don't trigger a frame immediately in schedule_frame
...
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
6 years ago
emersion
eac7c2ad2f
output: add presentation refresh prediction
6 years ago
emersion
b0635bf3e7
Rename get_present_clock to get_presentation clock, use it
6 years ago
emersion
54e1287f30
backend: add get_present_clock
6 years ago
emersion
9203bfdd4f
output: document signals
6 years ago
emersion
78389fe722
output: add present event
6 years ago
emersion
3aad9fd6a9
presentation-time: add protocol implementation
6 years ago
emersion
c67ce71fdd
Merge pull request #1281 from aereaux/edid-sizes
...
Update sizes for new EDID database.
6 years ago
Drew DeVault
841d04db99
Merge pull request #1262 from nyorain/session_fix
...
Improve session handling
6 years ago
Aidan Epstein
0036161867
Update sizes for new EDID database.
6 years ago
nyorain
b4d46aa9c2
Use sd_bus_get_property_trivial & remove numbering
6 years ago
random human
3e0a0f3c3a
wlr_surface: add wlr_surface_get_effective_damage
...
This calculates and returns the effective damage of the surface in
surface coordinates, including the client damage (in buffer
coordinates), and damage induced by resize or move events.
6 years ago
emersion
2beb68007e
output: make gamma size a size_t and gamma table const
6 years ago
Drew DeVault
5e9959daaa
Merge pull request #852 from Laaas/master
...
Implement pointer-constraints-unstable-v1 protocol
6 years ago
emersion
1b598f67ca
pointer-constraints: add unstable header
6 years ago
emersion
fadbdcd13c
seat: remove unused keyboard focus_change event
6 years ago
emersion
d98181dab8
pointer-constraints: use proper wayland-scanner functions
6 years ago
emersion
dac4f8e19f
pointer-constraints: refactoring
...
* Rename the constraint_create signal to new_constraint for
consistency
* Move the constraint_destroy signal to the constraint itself
* Use rotate_child_position instead of duplicating logic
* Fix inert constraint resource handling
* Style fixes
6 years ago
emersion
31cc2fa4f9
pointer-constraints: make region not a pointer, add committed bitfield
6 years ago
emersion
c89cd4945b
pointer-constraints: rename wl_{global,resources}
6 years ago
nyorain
7b52388424
Rework session handling
...
Sessions can now be retrieved from a backend in a more general manner.
Multi-backend gets back its `session` field that contains the session
if one was created, removing the interfacing from multi backend with the
drm backend directly. This adds the possibility to use sessions even
without the drm backend.
It additionally fixes the bug that 2 session objects got created when
WLR_BACKENDS were set to "libinput,drm".
To allow vt switching without drm backend (and drm fd) on logind, start
listening to PropertiesChanged signals from dbus and parse the session
"Active" property when no master fd was created (this does not change
current drm backend behaviour in any way).
6 years ago
Ryan Dwyer
44613c0fa6
xwayland: Introduce set_decorations event
6 years ago
emersion
842368ec98
Merge pull request #1253 from RyanDwyer/multi-for-each-backend
...
Introduce wlr_multi_for_each_backend
6 years ago
Ryan Dwyer
691a63d66b
Introduce wlr_multi_for_each_backend
6 years ago
emersion
3df602a62d
export-dmabuf: disable hardware cursors if desired
...
Also make the frame resource inert when sending "ready".
6 years ago
emersion
928572c14d
output: add wlr_output_set_hardware_cursors_enabled
...
And use it in screencopy.
6 years ago
random human
40a43003a1
Send unique keymap file descriptors
...
To prevent wl_keyboard keymap being written to by clients, use a unique
file descriptor for each wl_keyboard resource.
Reference: weston, commit 76829fc4eaea329d2a525c3978271e13bd76c078
6 years ago
Las
fa2e6e7d9d
Implement pointer-constraints protocol in wlroots and rootston
6 years ago
Las
6367e0bc93
Add wlr_surface::input_region member
...
This is analogous to the opaque_region member.
In addition the code for setting the opaque region is cleaned up.
6 years ago
Las
d446c53fe1
Make (wlr_)seat_client_from_pointer_resource public
6 years ago
Las
252bcce2f3
Add focus change event for seats
6 years ago
Drew DeVault
df991a55ab
Merge pull request #1241 from emersion/output-enable-error-checking
...
output: make wlr_output_enable return a bool
6 years ago
Drew DeVault
0210905eef
Merge pull request #1243 from emersion/layer-shell-suffix
...
layer-shell: add _v1 suffix
6 years ago
emersion
fc960e5d06
layer-shell: add _v1 suffix
6 years ago
emersion
b3cb22c003
xdg-output: add _v1 suffix
6 years ago
emersion
cb293f09e7
output: make wlr_output_enable return a bool
6 years ago
emersion
769a8e9917
Merge pull request #1160 from Ongy/tablet-grabs
...
Tablet grabs
6 years ago
nyorain
f6168c2afe
Fix #1129 and remove sx, sy from wlr_drag_icon
...
sx, sy used to store the buffer offset of the drag surface which was
then be added (by rootston) to the drag icon position.
Buffer offsets are handled already in surface_intersect_output
(output.c) so they were added twice for dnd surfaces.
6 years ago
Drew DeVault
73423c988c
Merge pull request #1213 from arandomhuman/wlr_log_get_verbosity
...
Add wlr_log_get_verbosity method
6 years ago
random human
6daa69fbf5
Update wlr_log_init docs
6 years ago
Ryan Dwyer
b8cc4a4152
xwayland: Introduce set_role event
6 years ago
Ryan Dwyer
60a174eb11
xwayland: Introduce request_activate event
6 years ago
Ryan Dwyer
69a5279f79
xwayland: Add WM_STATE modal property
...
Adds a modal property to indicate whether the surface wants to be a
modal.
6 years ago
random human
e44ab5d584
Add function wlr_log_get_verbosity()
...
Returns the verbosity passed to wlr_log_init().
6 years ago
Ilia Bozhinov
62539e265e
add missing wlr_box.h include in wlr_screencopy_v1.h
6 years ago
Alexander Bakker
20db29779e
Add destroy signals to types that are destroyed by wl_display_destroy
6 years ago
Brian Ashworth
c6955fa89c
Merge pull request #1199 from apreiml/farthest_output
...
introduce wlr_output_layout_farthest_output
6 years ago
Armin Preiml
5617d2bd60
introduce wlr_output_layout_farthest_output
...
Similar to wlr_output_layout_adjacent_output but will return the
one that is the farthest away from the reference in given direction.
6 years ago
Scott Anderson
fd3fa760d3
Revert "Revert "Merge pull request #1194 from ascent12/meson_feature""
...
This reverts commit 9c886f20b9
.
6 years ago
Drew DeVault
9c886f20b9
Revert "Merge pull request #1194 from ascent12/meson_feature"
...
This breaks wlroots when used as a meson subproject.
This reverts commit dea311992e
, reversing
changes made to 6db9c4b746
.
6 years ago
Scott Anderson
f41c411980
Use input file for configure_file
...
This is so we can potentially add comments to it, and so if a user looks
at the installed header, they can see the /* #undef WLR_HAS_FEATURE */
line to see every option, even if not available.
6 years ago
Scott Anderson
51892e0d74
Install headers explicitly
6 years ago
Ilia Bozhinov
4486b52aa8
move wlr_drm_connector_add_mode to wlr/backend/drm.h
6 years ago
Ilia Bozhinov
88e9dbe32e
remove dangling declaration of wlr_xdg_surface_popup_get_position()
6 years ago
Markus Ongyerth
f64962ace8
tablet-v2 tool: Implement implicit grab
...
Implement the tablet-v2 tablet tool's implicit grab semantics for
buttons and tip.
This avoids losing focus (to other [sub]surfaces) when a button is held,
or the tip is down.
This should help when the device is used close to a surface's border and
would otherwise have to be very precise.
6 years ago
Drew DeVault
1654fc80eb
Merge pull request #1157 from emersion/wlr-gamma-control
...
Implement wlr-gamma-control-unstable-v1
6 years ago
emersion
2ebecb6727
backend/drm: allow to pass empty gamma ramp to reset it
6 years ago
emersion
e21563ec76
output: document gamma functions
6 years ago
emersion
a149c2370a
Implement wlr-gamma-control-unstable-v1
6 years ago
emersion
9dd4388ed9
xwayland: document SIGUSR1 handler
6 years ago
Drew DeVault
5642c5cc8f
Merge pull request #1053 from emersion/xdg-decoration
...
Add xdg-decoration-unstable-v1 support
6 years ago
Drew DeVault
211ae764fd
Initial pass on API stability guarantees
...
This introduces -DWLR_USE_UNSTABLE and adds information regarding the
stability status to all headers. I started with a conservative set of
headers to mark as stable:
- types/wlr_matrix.h
- util/edges.h
- util/log.h
- util/region.h
- xcursor.h
6 years ago
Markus Ongyerth
81cc842f8f
reintroduce xwayland is_unmanaged
...
153f37bdf5
(#1145 ) removed the
wlr_xwayland_is_unamanged function while fixing OR, because it was
belieived that it's supposed to work around the broken OR handling.
This was a misunderstanding. is_unmanaged is (while sort of a hack)
intended to work around inherent differences between "real" X sessions
and our Xwayland/wayland situation.
The main reason it exists is to support applications like rofi and dzen,
while not handing focus to other OR windows (which should *not* be
required).
Traditionally, these applications just grabbed input from X and didn't
need to be focused by any logic in the WM. Which of course doesn't work
in wayland compositors. So we have to give them focus in some way.
Giving *every* OR window focus, breaks other applications that don't
expect focus to change.
A testcase that was pointed out to me where wlr_xwayland_is_unamanged was
breaking things is https://github.com/swaywm/sway/issues/2128 (syncplay,
gitk, gitgui)
Supposedly it broke using keyboard to navigate the menus.
I can't reproduce this with this patch. The popups can be navigated as
long as the parent has focus.
6 years ago
emersion
555721f714
Add xdg-decoration-unstable-v1 support
6 years ago
Drew DeVault
f1b65b34a6
Merge pull request #1127 from emersion/surface-precommit
...
surface: add wlr_surface_role.precommit
6 years ago
Markus Ongyerth
d5950255de
tablet-v2 tablet_tool grab implementation
...
Implement the basic logic for tablet-v2 tablet_tool's grabs. And plug in
the default grab.
6 years ago
Ilia Bozhinov
8b7c85d765
xdg-shell(-v6): add set_title and set_app_id toplevel signals
...
This is useful for example when rendering decorations
6 years ago
emersion
5dbf0fe7f2
linux-dmabuf: add v1 suffix
...
This prevents some future conflicts with the stable version.
Fixes #1133
6 years ago
Ryan Dwyer
dc58c1356d
Introduce set_hints event for xwayland
6 years ago
Markus Ongyerth
454f2a84a8
tablet-v2 tablet_pad grab implementation
...
Implement the basic logic for tablet-v2 tablet_pad's grabs. And plug in
the default grab.
Features like "holding" the focus should be implemented via grabs, like
they are for pointer and keyboard.
6 years ago
emersion
153f37bdf5
xwayland: handle override_redirect flag changes
...
The override_redirect flag can change on configure notify and
on map notify. This adds an event to know when it changes.
This removes wlr_xwayland_surface_is_unmanaged which was wrongly
using the window type to decide whether the view should be
unmanaged.
A similar patch was proposed to Weston, but has never been
merged upstream [1].
[1]: https://patchwork.freedesktop.org/patch/211161/
6 years ago
emersion
16d7e09d99
surface: add wlr_surface_role.precommit
...
This allows to emit the unmap event before the surface becomes
actually unmapped for most shells.
6 years ago
Markus Ongyerth
9a6f77fc2c
tablet-v2: fix merge commits and test again
...
There were a few issues after rebase, that the merge algorithm didn't
throw at my face:
wlr_output did a check on the actual role, not a string anymore, so that
had to go to allow tablet-v2 to set cursor surfaces.
A few L_DEBUG/L_ERRORs were still around
There was a user-after-free in tablet-group free()ing, probably after
insufficient testing from a previous feedback pass
6 years ago
Markus Ongyerth
43b20bfea2
First feedback pass from acrisci
6 years ago
Markus Ongyerth
d9e978e1b3
rename wlr_tablet_tool to wlr_tablet
...
The previous naming was based on the input-device capability names from
libinput.
With code that uses the libinput_tablet_tool and mapping into tablet-v2,
this is confusing, so the name is changed to follow the names used in
the protocol.
6 years ago
Markus Ongyerth
6b51f3b57a
use previous resource versions and destroy pads
6 years ago
Markus Ongyerth
48e2cba9b6
Handle relative motion for mouse tools
6 years ago
Markus Ongyerth
5cbdd13df8
remove unused wl_listener
6 years ago
Markus Ongyerth
2bc09d91c3
Silent conversion from double to int should be illegal
6 years ago
Markus Ongyerth
dc525a9c5f
Clean up serial handling and automate proximity acompaning events
6 years ago
Markus Ongyerth
25c2808153
Clean up serial handling
6 years ago
Markus Ongyerth
2c12011472
Send all tablet tool axis events
6 years ago
Markus Ongyerth
b79d11395c
Hook up set_cursor in rootston
6 years ago
Markus Ongyerth
0c9a26828a
Use wlr_list for paths, and improve inert resource handling
6 years ago
Markus Ongyerth
31cec36b74
1st feedback pass
...
Rename make_ functions to _create
Implement set_cursor and set_feedback
6 years ago
Markus Ongyerth
5c7a37f309
Add tool buttons
6 years ago
Markus Ongyerth
391eef6ea9
Propagate most axis events to clients
6 years ago
Markus Ongyerth
f375246657
Implement basic tablet_pad handling (bound to keyboard focus)
6 years ago
Markus Ongyerth
e235f7d336
Basic tablet_v2 object lifetime
6 years ago
Markus Ongyerth
77bac448cc
storage commit #2
6 years ago
Markus Ongyerth
000b305ecc
backend/libinput: Manage tablet tool livetimes
...
This adds the management code to manage tablet tools lifetimes from
libinput.
It follows the suggestion made in the tablet-unstable-v2.xml to destroy
tablet_tools once all tablets that it got into contact with were removed
from the system. This is implemented via a refcount.
If a tool is *not* unique, it will be destroyed on proximity out. This
is libinput specific and mentioned in libinput docs that tools will not
be found again, so we shouldn't keep a reference to them.
Also they can't be on other tablets as well, because they cannot be
tracked.
The naming in this commit is a bit off (to not break things).
The wlr names stay the same, tablet_tool is the libinput_device with
capaiblity LIBINPUT_DEVICE_CAP_TABLET_TOOL which is more akin to
"tablet" in the tablet-unstable-v2 protocol.
The struct that corresponds to the tablet_tool in tablet-unstable-v2 is
called tablet_tool_tool, a rename should be done at some point in the
future.
6 years ago
emersion
5bb272d7f3
surface: add wlr_surface.opaque_region
6 years ago
emersion
c4915d1492
render: add wlr_texture_is_opaque
6 years ago
Drew DeVault
c0b4217fce
Merge pull request #1116 from emersion/surface-role
...
surface: replace wlr_surface_set_role_committed with wlr_surface_role
6 years ago
emersion
7cbef15206
util: add wlr_ prefix to log symbols
6 years ago
emersion
deeca53e33
Rename wl_resources to resource, wl_global to global
6 years ago
emersion
c19d475753
xdg-output: don't send no-op updates
...
To begin with, no-op updates are unnecessary, so this patch is an
improvement on its own.
Then, this fixes hotplugging issues with xwayland. xwayland waits
for both wl_output and xdg_output to send a "done" event. However,
it doesn't handle well desynchronized "done" updates: if xdg-output
sends "done" twice, the second one will wait for the next wl_output
"done" event. This is an issue when the first is a no-op and the
second is a real update: the second isn't applied. I've considered
patching xwayland instead, but it seems pretty complicated.
6 years ago
emersion
33db4263a0
surface: replace wlr_surface_set_role_committed with wlr_surface_role
6 years ago
emersion
226306ed45
surface: rename wlr_surface_state.buffer to buffer_resource
6 years ago
emersion
012e38fbe5
surface: add wlr_surface.previous
6 years ago
emersion
78555abba3
surface: move position and scale out of wlr_surface_state
6 years ago
emersion
233bfe2f4f
surface: do not monkey-patch state damage
6 years ago
emersion
adf0423f7c
surface: better buffer position handling
6 years ago
emersion
e6399c61b7
surface: fix WLR_SURFACE_STATE_BUFFER_DAMAGE value
6 years ago
emersion
3c0d672ebd
surface: make pending and current embedded structs
6 years ago
emersion
64836ddfe7
surface: remove wlr_surface_state.subsurface_position
6 years ago
emersion
3ee86b6105
surface: rename invalid state
6 years ago
Ryan Dwyer
86f401e827
Introduce wlr_xdg_surface_for_each_popup
...
It is common to want to iterate an xdg-surface's popups separately from
the toplevel and subsurfaces. For example, popups are typically rendered
on top of most other surfaces.
wlr_xdg_surface_for_each_surface continues to iterate both surfaces and
popups to maintain backwards compatibility.
6 years ago
emersion
dbb01cbcd0
screencopy: listen to buffer destroy
6 years ago
emersion
c421700f3d
screncopy: update protocol
6 years ago
emersion
bf7560b7cd
screencopy: add capture_output_region support
6 years ago
emersion
2b9cbaddf3
screencopy: add support for frame flags
6 years ago
emersion
73755ad348
screencopy-v1: add basic implementation
6 years ago
Dominique Martinet
c263f7ca29
s/wlr_subsurface_from_surface/wlr_subsurface_from_wlr_surface/
...
This was the only x_from_wlr_surface function that lacked the wlr_ prefix,
let's have an API as uniform as possible.
6 years ago
Dominique Martinet
0ced9df350
wlr_idle_inhibit_v1: add *data pointer to wlr structs
7 years ago
Dominique Martinet
d0b902b962
wlr_idle: add helper to enable/disable all timers
...
There was no way to tell wlr_idle to stop processing input events
and rearm timers all the time, such an API is required to have
some form of idle inhibitor.
7 years ago
Drew DeVault
e459fe0ec7
Merge pull request #992 from emersion/screencontent
...
Implement wlr_export_dmabuf_unstable_v1 protocol
7 years ago
emersion
0e3b35c87e
Merge pull request #1072 from emersion/surface-remove-matrices
...
surface: remove matrices
7 years ago
emersion
831b7297a4
surface: remove matrices
...
These were unused.
7 years ago
emersion
a6c0e25d36
surface: remove wlr_frame_callback
...
This removes the need to allocate a structure for frame callbacks.
wl_resource_get_link is used instead.
7 years ago
emersion
57548b557a
Merge branch 'master' into screencontent
7 years ago
Drew DeVault
fb118ac996
Merge pull request #1062 from emersion/wlr-buffer-comeback
...
Add back wlr_buffer
7 years ago
Scott Anderson
47985d2dc5
Multiseat fixes
7 years ago
emersion
0378d143d9
surface: remove wlr_surface.texture
...
The texture is managed by the surface's wlr_buffer now. In
particular, the buffer can destroy the texture early if it becomes
invalid.
7 years ago
Drew DeVault
5e4af4862e
Merge pull request #1050 from emersion/wlr-buffer
...
Introduce wlr_buffer
7 years ago
emersion
38d415dd20
buffer: make wlr_buffer_ref return the buffer
7 years ago
Vincent Vanlaer
f1a62a3200
Rename egl.exts to match the extension names
7 years ago
emersion
9ea5b1a85e
Merge branch 'master' into wlr-buffer
7 years ago
Vincent Vanlaer
5ec6d8230d
Split eglSwapBuffersWithDamage feature detection
...
Detecting whether eglSwapBuffersWithDamageEXT or
eglSwapBuffersWithDamageKHR is used should be based on the extension
string, not only on the availability of the function.
7 years ago
emersion
7d24af43e5
buffer: improve docs
7 years ago
emersion
e4933ab445
Introduce wlr_buffer
7 years ago
emersion
457bfcab19
render/egl: only request high priority context on DRM
7 years ago
emersion
d425edc96c
render/egl: consistent extension checking
7 years ago
emersion
cbfe0e834a
Request a high priority EGL context
7 years ago
emersion
32f9699359
Merge pull request #1029 from emersion/wl-backend-keyboard-focus-keys
...
backend/wayland: fix keyboard keys not pressed/released when focus changes
7 years ago
emersion
6f895081e1
Merge pull request #1043 from acrisci/drag-icon-unmap
...
drag-icon map and unmap fixes
7 years ago
Ilia Bozhinov
a989104a6b
xdg-shells: add a set_parent signal to toplevel surfaces
7 years ago
Tony Crisci
319ebdf476
add back map event
7 years ago
Tony Crisci
1c75d4e54a
rename drag-icon map to unmap
7 years ago
emersion
78966417f4
Merge pull request #1031 from martinetd/multibind-seat
...
seat: allow clients to bind to seat multiple times
7 years ago
Dominique Martinet
51b9883ea0
seat: allow clients to bind to seat multiple times
...
This lets clients bind to a seat multiple times by re-using the existing
wlr_seat_client whenever a duplicate request happens.
Previously, an independant wlr_seat_client would be created and only
events from one would be processed.
Fixes #1023 .
7 years ago
Tony Crisci
58d549c98a
add data to wlr_drag_icon
7 years ago
emersion
551700e887
backend/wayland: fix keyboard keys not pressed/released when focus changes
7 years ago
Timidger
2eb8b240e1
Added data field to wlr_subsurface
7 years ago
Markus Ongyerth
3994762ae0
Add wlr_surface_get_geometry
...
This function defaults and clips the xdg-surface geometry to the
bounding box of the surface + its subsurfaces, as specified by the
protocol spec.
7 years ago
emersion
21928cbe61
Merge branch 'master' into screencontent
7 years ago
emersion
135721118a
render: remove wlr_renderer_check_import_dmabuf
...
It's possible to implement it outside the renderer, by creating a
texture and destroying it right away. This reduces the API surface
of the renderer.
7 years ago
emersion
28020ff577
Only allow one modifier per DMA-BUF, split attributes struct in render/
7 years ago
emersion
00e108f2fc
export-dmabuf: correctly finish wlr_linux_dmabuf_attribs
7 years ago
emersion
e26f4dff98
export-dmabuf: wait for the frame to be ready, send timestamp
7 years ago
emersion
5ba1a9af56
render: add wlr_texture_to_dmabuf
7 years ago
emersion
36bd4795d4
export-dmabuf: add basic and incomplete implementation
7 years ago
emersion
9e26808c28
output, backend/drm: add wlr_output_export_dmabuf
7 years ago
emersion
e1f56538a8
Merge pull request #999 from dcz-purism/virtual-keyboard
...
Support virtual keyboard protocol
7 years ago
Tony Crisci
044fa52be4
reword new_surface docs
7 years ago
Tony Crisci
c27cd5f065
document the map/unmap xdg-shell events
7 years ago
Dorota Czaplejewicz
5334ee8bfd
virtual-keyboard: add support for the virtual-keyboard-v1 protocol
7 years ago
emersion
47f097e09b
xdg-shell: add wlr_xdg_toplevel_set_tiled
7 years ago
Tony Crisci
9971d06afb
document key and modifier signals
7 years ago
emersion
6eb4b5b54d
Merge pull request #993 from emersion/bind-wl-drm-in-renderer
...
render: bind wl_drm in renderer
7 years ago
Ilia Bozhinov
24cf70ae96
backends: implement custom EGL and renderer initialization
...
Compositors now have more control over how the backend creates its
renderer. Currently all backends create an EGL/GLES2 renderer, so
the necessary attributes for creating the context are passed to a
user-provided callback function. It is responsible for initializing
provided wlr_egl and to return a renderer. On fail, return 0.
Fixes #987
7 years ago
emersion
41130fe54b
render: bind wl_drm in renderer
7 years ago
emersion
52bd8aa716
backend/multi: disallow multiple renderers at the same time
7 years ago
emersion
facc5aa359
xdg-shell-v6: split into separate files
7 years ago
emersion
db84379242
Send axis source event
7 years ago
emersion
0b58579564
Add support for discrete axis values
7 years ago
emersion
cf5013416d
xdg-output: redesign resource destroy
7 years ago
Vincent Vanlaer
72a75b3a72
Fix Xwayland cleanup
...
Fixes #964
7 years ago
emersion
13098a18ea
Fix hardware cursors scale & transform
7 years ago
emersion
8e831cd416
Merge pull request #959 from VincentVanlaer/xwayland-lazy
...
Add the option to start Xwayland only when a client connects
7 years ago
Vincent Vanlaer
119a6cf35c
Make xwayland_finish* clean up wlr_xwayland
7 years ago
Markus Ongyerth
8931452e1d
add wlr_layer_surface_surface_at
...
Adds wlr_layer_surface_surface_at, this is consistent with the other
shell implementations, and simplifies handling in compositors.
7 years ago
Vincent Vanlaer
c80bf1591e
Allow xwayland to start lazily
...
Makes the xwayland startup process two phased.
The first phase just initialises the X11 sockets.
The second phase starts the Xwayland server itself.
When starting xwayland lazily the second phase will be postponed until
a client has connected to the X11 socket.
Changes in behaviour:
The DISPLAY environment is now set immediately after the X11 sockets
are created.
When the Xwayland server is killed or crashes, the sockets will not be
recreated, but reused.
Fixes #849 : Start up Xwayland lazily
7 years ago
emersion
5087199d5d
output-damage: limit the number of damaged rectangles
7 years ago
emersion
cf10cbc00c
Use UTF-8 xwayland window title if available
7 years ago
emersion
caf9f9022c
Merge pull request #936 from emersion/full-hardware-cursors
...
output: always use hardware cursors if available
7 years ago
Drew DeVault
57d03a3eda
Merge pull request #931 from emersion/redesign-resource-destroy
...
Redesign resource destruction
7 years ago
morganamilo
6305e6327f
Fix typos in comments and strings
7 years ago
emersion
5d37b14116
data-device: make sure resources are correctly destroyed
7 years ago
emersion
ff4708d406
linux-dmabuf: correctly destroy resources
7 years ago
emersion
2cff6dbd63
seat: split into multiple files
7 years ago
emersion
225d182765
output: always use hardware cursors if available
...
This changes the `wlr_output_impl.set_cursor` function to take a
`wlr_texture` instead of a byte buffer. This simplifies the
DRM and Wayland backends since they were creating textures from
the byte buffer anyway.
With this commit, performance should be improved when moving the
cursor since outputs don't need to be re-rendered anymore.
7 years ago
emersion
9f8a7c8fc4
backend/wayland: create one virtual pointer per output
7 years ago
emersion
2551ef8871
input-device: add output_name field, populate it from libinput
7 years ago
Drew DeVault
a0f4903063
Merge pull request #926 from emersion/fix-x11-backend-memory-leaks
...
Fix some backend memory leaks
7 years ago
emersion
f8e0a03451
backend/x11: correctly destroy input devices
7 years ago
emersion
6e7c0b57f6
cursor: use NAN for unspecified axes, refactor absolute warping code
7 years ago
emersion
43012f3740
compositor: redesign how resources are managed
...
All public resource creators now take a new ID for the resource
and an optional list where the resource link is added. When the
resource is destroyed it is its own responsibility to remove
itself from the list. This removes the need for the caller to add
a destroy listener.
This commit fixes a few segfaults with resources not removed from
the list when destroyed.
7 years ago
Ryan Dwyer
daa1ee35be
Make WLR_DIRECTION enum powers of 2
7 years ago
Drew DeVault
fecb971518
Merge pull request #902 from emersion/various-memory-leaks
...
Various memory leaks
7 years ago
Drew DeVault
25dddc0094
Merge pull request #911 from RyanDwyer/fix-output-direction
...
Fix WLR_DIRECTION enums
7 years ago
Ryan Dwyer
de97f90246
Fix WLR_DIRECTION enums.
...
Having 0 as an enum value causes wlr_output_layout_adjacent_output() to
never match WLR_DIRECTION_UP.
7 years ago
emersion
449f06556a
Destroy wlr_surface with wlr_renderer
7 years ago
emersion
d47713ac0f
compositor: destroy subsurface resources with wlr_subcompositor
7 years ago
emersion
89a9c96fab
compositor: make wlr_compositor_destroy destroy resources
7 years ago
emersion
b0d99f5c67
Remove wlr_ prefix from local symbols
7 years ago
Drew DeVault
097561d6bf
Merge pull request #901 from emersion/layer-shell-minor-memory-leak
...
layer-shell: fix small memory leak
7 years ago
emersion
018b82c01e
render/egl: allow passing NULL to surface and image destructors
7 years ago
emersion
eaed6bd03b
render/egl: add wlr_egl_destroy_surface
7 years ago
emersion
8e2f3056f8
layer-shell: fix small memory leak
7 years ago
Drew DeVault
0a0627f5d0
Finish forward-porting @acrisci's positioner work
7 years ago
Drew DeVault
2e3d901ac5
Forward-port xdg-shell-v6 positioner improvements
7 years ago
Drew DeVault
278aa84619
Basic layer popup rendering
7 years ago
Drew DeVault
d3cdb00208
Add (shitty) support for popups to layer example
7 years ago
Drew DeVault
6b7b64ec1e
Generalize xdg-shell popups and add to layer-shell
7 years ago
Drew DeVault
177b548b15
Update layer shell with optional wl_output
7 years ago
emersion
bfcd3f3707
Add wlr_subcompositor
7 years ago
emersion
fa84b267e0
Remove wlr_surface::subsurface
7 years ago
emersion
70d820be25
Add wlr_renderer_init_wl_shm to advertize supported renderer formats
7 years ago
emersion
94fa6c88f4
output: don't emit the mode event if it hasn't changed
...
This also fixes #535 .
7 years ago
emersion
bcf5da5cd7
Merge pull request #866 from emersion/xwayland-unmapped-on-create
...
xwayland: emit new_surface when unmapped
7 years ago
emersion
fa02e30adf
xwayland: emit new_surface when unmapped
7 years ago
Drew DeVault
4dbf7f8b88
Merge pull request #865 from martinetd/str_truncation
...
Fix gcc string truncation warnings
7 years ago
Dominique Martinet
555206cf60
Fix gcc string truncation warnings
7 years ago
emersion
8dec7036d0
Always unmap before destroying surface
7 years ago
emersion
17d0440b75
Add wlr_xwayland_surface_ping
7 years ago
emersion
d2ebbd103c
backend: remove wlr_backend_get_egl
7 years ago
Drew DeVault
ae4cef9e41
Merge pull request #825 from emersion/surface-iterators
...
Add surface iterators
7 years ago
Drew DeVault
6710de9878
Merge branch 'master' into xwayland-dnd
7 years ago
emersion
4a9a9eae9a
Add surface iterators
7 years ago
emersion
19b576734e
Merge pull request #834 from emersion/surface-is-subsurface
...
Add wlr_surface_is_subsurface and wlr_subsurface_from_surface
7 years ago
emersion
aced024819
Add wlr_surface_is_subsurface and wlr_subsurface_from_surface
7 years ago
Drew DeVault
da73b4f60b
Merge pull request #830 from swaywm/xdg-output
...
Add wlr_xdg_output_manager
7 years ago
Drew DeVault
abfe7923c4
Add wlr_xdg_output_manager
7 years ago
Timidger
527cc702d9
Added userdata to wlr_output_layout
...
Needed for https://github.com/swaywm/wlroots-rs/issues/131
7 years ago
emersion
3ea425d4e2
Fix xdg-shell popups, add wlr_xdg_surface_surface_at
7 years ago
emersion
c9d21106b4
Add wlr_xdg_surface_v6_surface_at and wlr_wl_shell_surface_surface_at
7 years ago
emersion
1a8b24bdd2
rootston: fix view_at
7 years ago
emersion
d16127b3cb
Fix wlr_surface_subsurface_at, change it to be wlr_surface_surface_at
7 years ago
emersion
9b440edaf4
output: document wlr_output_set_custom_mode
7 years ago
Drew DeVault
2ecce27dd5
Merge pull request #807 from swaywm/input-inhibit
...
Input inhibit
7 years ago
Timidger
920ab9f108
Added user data field for wlr_cursor
...
This is required for wlroots-rs.
7 years ago
Drew DeVault
56deff41b6
Implement input inhibit in rootston
7 years ago
Drew DeVault
ef4e833f13
Add wlr_input_inhibitor
7 years ago
emersion
41fccb8507
Merge branch 'master' into xwayland-dnd
7 years ago
Danilo Spinella
f83ad3f3ef
Install include directory into includedir
...
Follow includedir parameter when installing include directory.
7 years ago
emersion
58ac05c276
Merge branch 'master' into xwayland-dnd
7 years ago
Drew DeVault
506acbdecd
Missed a spot
7 years ago
Drew DeVault
333ab59902
Add wlr_surface_is_*_surface
...
And wlr_*_surface_from_wlr_surface
7 years ago
emersion
8836b4f024
Merge branch 'master' into xwayland-dnd
7 years ago
Drew DeVault
1f4a4a8641
Merge pull request #800 from emersion/untie-gles2-renderer-texture
...
Untie wlr_gles2_renderer and wlr_gles2_texture
7 years ago
emersion
f3f61bed3e
Untie wlr_gles2_renderer and wlr_gles2_texture
7 years ago
Tony Crisci
5a47da1ea6
annotate wlr-output-layout coord variables
7 years ago
emersion
a7bb48b404
render/egl: add wlr_egl_create_image_from_wl_drm
...
This allows external renderers and potential future GL-based
renderers to re-use this function.
7 years ago
emersion
33a2eb4b77
Untie wlr_backend from wlr_renderer
7 years ago
Drew DeVault
96c6091f80
Merge pull request #786 from emersion/x11-backend-multiple-outputs
...
backend/x11: add support for multiple outputs
7 years ago
emersion
90fbab6f39
xwyaland: fix style issues
7 years ago
emersion
0a7a8cbd1c
backend/x11: add WLR_X11_OUTPUTS support
7 years ago
Drew DeVault
e19ee6d469
Add wlr_surface_point_accepts_input
...
Ref https://github.com/swaywm/sway/pull/1674
7 years ago
Tony Crisci
212d957c69
Merge pull request #779 from emersion/xwayland-map-consistency
...
xwayland: rename map_notify to map for consistency
7 years ago
emersion
47a529a69c
output-damage: fix missing wlr_box include
7 years ago
emersion
865b0aa123
xwayland: rename map_notify to map for consistency
7 years ago
emersion
d5f46f4db4
data-device: redesign wlr_data_source
7 years ago
Drew DeVault
4137d9fc80
Destroy layer surfaces on client destroyed
7 years ago
emersion
743466d475
data-device: add seat.drag_source
7 years ago
emersion
a316396eab
Merge pull request #720 from acrisci/xdg-positioner
...
xdg-positioner
7 years ago
Tony Crisci
2e63d1a0ca
toplevel_box to toplevel_sx_box
7 years ago
Tony Crisci
967bccffcd
remove xdg-positioner wlr wrappers
7 years ago
Tony Crisci
376d1cc0da
rename xdg-positioner structs
7 years ago
Tony Crisci
dbffda7549
xdg-positioner wlr abstractions
7 years ago
emersion
2a34b154e6
xwayland: send DND_DROP
7 years ago
emersion
73394deb76
xwayland: send DND_POSITION
7 years ago
emersion
0d7a81ccdf
xwayland: send DND_ENTER
7 years ago
Drew DeVault
32bdcdf719
Address review feedback
7 years ago
Drew DeVault
ac219cbda6
Remove width_mm from tablet events
7 years ago
Drew DeVault
324b9d910d
Remove width_mm from wlr_touch events
7 years ago
Drew DeVault
a35a5786b0
Remove width_mm from wlr_pointer events
7 years ago
Tony Crisci
41e54ba632
Merge branch 'master' into xdg-positioner
7 years ago
Tony Crisci
330ee08126
Merge pull request #744 from emersion/texture-redesign
...
Redesign wlr_texture
7 years ago
Drew DeVault
96a8df2f9a
Fix ack configure/configure flow
...
Prevents FOUC/improves frame perfect rendering goal
7 years ago
Drew DeVault
52fe2688ea
Address @emersion's feedback
7 years ago
Drew DeVault
13edb19a6c
Fix issue starting up client EGL on X11 backend
7 years ago
Drew DeVault
86ca4bea6d
Fix layer rendering/layout bugs
7 years ago
Drew DeVault
d1c0e6fe2c
Add layer_surface.close
7 years ago
Drew DeVault
4bf936360d
Arrange & render layer surfaces
7 years ago
Drew DeVault
88eec637a4
Address feedback
7 years ago
Drew DeVault
1628730b09
Add wlr_layer_surface_configure
7 years ago
Drew DeVault
b06105b564
Implement layer surface requests
7 years ago
Drew DeVault
3ba57fccd1
Wire up layer surface resources to stubs
7 years ago
Drew DeVault
f29d8b55ae
Initial scaffolding of layer shell
7 years ago
emersion
c42fd1018b
render: remove GL calls from wlr_egl
7 years ago
Tony Crisci
8371e2f41d
implement flip_x
7 years ago
Drew DeVault
1ed90541f9
Merge pull request #753 from emersion/xdg-shell-unmap-destroy
...
xdg-shell-v6: don't destroy role resources on unmap
7 years ago
emersion
171e28eaff
xdg-shell: don't destroy role resources on unmap, move toplevel fields
...
Ports 5233801530
and
334bab543d
to xdg-shell stable.
7 years ago
Drew DeVault
ac715969ac
Improve documentation of wlr_cursor
7 years ago
Tony Crisci
bbd0e23fa7
xdg-positioner constraint detection
7 years ago
emersion
a918ec877e
xdg-shell-v6, xdg-shell: explain what popup geometry is
7 years ago
emersion
334bab543d
xdg-shell-v6: move toplevel specific fields in wlr_xdg_toplevel_v6
7 years ago
emersion
adf4fb08dd
Merge branch 'master' into texture-redesign
7 years ago
emersion
5233801530
xdg-shell-v6: don't destroy role resources on unmap
...
The motivation for this is:
- `get_popup` and `get_toplevel` allocate role-specific resources.
- On the first non-null commit, the surface gets mapped.
- On a null commit, the surface gets unmapped. It can be mapped
again with a non-null commit.
- When the role object (xdg-toplevel or xdg-popup) is
destroyed, the surface is unmapped and role-specific resources
are destroyed. The client can call `get_popup` or `get_toplevel`
again on that surface.
- When the xdg-surface object is destroyed, the surface is
unmapped, role-specific resources are destroyed and the surface
itself is destroyed.
7 years ago
Drew DeVault
891610081f
Merge pull request #751 from emersion/rotated-surface-damage
...
Fix damage tracking for rotated surfaces
7 years ago
emersion
4555fc8a54
Fix damage tracking for rotated surfaces
...
It was broken because the damage extents were rotated about its
own center, not about the center of the surface.
This adds a new wlr_region_rotated_bounds that rotates regions.
This allows us to have only one code path (for both non-rotated
views and rotated views) and optimizes rendering for rotated
views.
7 years ago
Tony Crisci
4da18f7fc3
xdg-positioner attrs
7 years ago
emersion
793c3b3047
render: add simple functions to render rectangles and ellipses
7 years ago
emersion
c63d94483b
Redesign wlr_texture
...
- Textures are now immutable (apart from those created from raw
pixels), no more invalid textures
- Move all wl_drm stuff in wlr_renderer
- Most of wlr_texture fields are now private
- Remove some duplicated DMA-BUF code in the DRM backend
- Add more assertions
- Stride is now always given as bytes rather than pixels
- Drop wl_shm functions
Fun fact: this patch has been written 10,000 meters up in the air.
7 years ago
Tony Crisci
f53575e3a3
unified xdg-surface close
7 years ago
Tony Crisci
30b8fb5572
Merge branch 'master' into xdg-positioner
7 years ago
emersion
a854c2f246
Merge branch 'master' into gles2-renderer-redesign
7 years ago
Drew DeVault
ef3769851f
Merge pull request #740 from emersion/egl-debug
...
render/egl: use EGL_KHR_debug
7 years ago
Dominique Martinet
de955a0f63
xdg_popup_grab: add listener on seat destroy
7 years ago
emersion
b1f93bc5cc
render/egl: use EGL_KHR_debug
7 years ago
emersion
3581573bdc
render/gles2: make wlr_renderer_begin take viewport size
...
This allows raw GL calls outside wlr_renderer to be removed.
7 years ago
emersion
95e86e675a
render/gles2: remove global state, use OpenGL debug extension
7 years ago
emersion
c41de2d1be
render: split render.h into wlr_renderer.h and wlr_texture.h
7 years ago
Drew DeVault
a76cef475b
Merge pull request #733 from emersion/fix-matrix-transpose
...
Don't use OpenGL matrix transposition
7 years ago
Drew DeVault
8d490fdb34
Write some more docs
7 years ago
emersion
6ecb0eefcb
render/gles2: transpose matrices before binding them
...
Setting glUniformMatrix3fv's transpose parameter to GL_TRUE is
not allowed for OpenGL ES 2.
This adds a wlr_matrix_transpose function.
7 years ago
Drew DeVault
1956d3cedb
Merge pull request #722 from emersion/matrix-redesign
...
Matrix redesign
7 years ago
Tony Crisci
09413aa7f1
Merge pull request #711 from emersion/map-unmap
...
Add map/unmap to xdg-shell
7 years ago
emersion
7894fca224
matrix: rename wlr_matrix_texture to wlr_matrix_projection
7 years ago
emersion
e607d0f7ee
xdg-shell: add map/unmap support
7 years ago
emersion
876f07e9f1
renderer: replace wlr_texture_get_matrix by wlr_render_texture
7 years ago
emersion
1914a1aa2b
surface: drop wlr_surface_get_matrix
7 years ago
emersion
8b58e1a3ad
Merge branch 'master' into matrix-redesign
7 years ago
emersion
824a95ad19
matrix: use 2D matrices
7 years ago
emersion
de0e40d621
Merge pull request #698 from agx/linux-dmabuf
...
Add initial linux_dmabuf protocol support
7 years ago
Guido Günther
14cdb6153f
Add initial linux_dmabuf protocol support
...
Tested with
./weston-simple-dmabuf-drm
./weston-simple-dmabuf-drm --import-immediate=1
./weston-simple-dmabuf-drm --y-inverted=1
(and combinations)
Supports only single plane XRGB dmabufs for now.
7 years ago
emersion
d26b67cb06
matrix: unify API, don't use array pointers
7 years ago
emersion
b6a3f240c7
matrix: move to types/
7 years ago
Tony Crisci
8836b167bf
store xdg-positioner properties on the popup
7 years ago
emersion
ace738dbca
xdg-shell-v6: next_geometry and geometry fields are not longer pointers in wlr_xdg_surface_v6
7 years ago
emersion
149209b72e
xdg-shell-v6: rename toplevel and popup fields in wlr_xdg_surface_v6 for consistency
7 years ago
emersion
657e5c8c0d
xdg-shell-v6: changed wlr_xdg_surface_v6_configure.toplevel_state to be NULL if surface isn't a toplevel
7 years ago
emersion
e74ddaaf10
xdg-shell-v6: redesign the configure/ack_configure workflow
7 years ago
Guido Günther
2d0db16942
render: Flip textures in case of inverted_y
7 years ago
emersion
3f072bedd9
xdg-shell-v6: add map signal
7 years ago
Drew DeVault
bfc0e95d2c
Add mode support to libinput backend
...
And extend tablet example with tilt and ring support
7 years ago
Scott Anderson
3c9fc7c68e
Add const to x11 and input interfaces
7 years ago
Dominique Martinet
7d1870c6f1
move xwm.h out of include/wlr
...
xwm.h was meant to be private, so move it to include/xwayland/xwm.h
We had an ifdef WLR_HAS_XCB_ICCCM in xwayland.h which was easy to move
to xwm, it is not safe to use the WLR_HAS_* in the public headers.
I checked a few of our current users and none rely on xwm.h being
public as expected (rootston, sway, hsroots)
7 years ago
emersion
c2ba1869ce
Merge pull request #670 from Ongy/xwayland_unmanaged
...
add xwayland unmanaged tests to support dmenu
7 years ago
Markus Ongyerth
bb676013ed
add xwayland unmanaged tests to support dmenu
...
This adds `wlr_xwayland_surface_is_unamanged`, to allow compositors more
fine grained control over XWayland focus.
A surface that is unmanaged should not receive focus, while other
windows that are just override redirect may want it (dmenu).
The way unamanged is determined is taken from wlc.
7 years ago
Drew DeVault
3296365ce5
Merge pull request #659 from agx/alpha
...
Make wlr_render_with_matrix use alpha
7 years ago
Guido Günther
d08792bfff
Add alpha to wlr_render_with_matrix
...
so we can use the alpha channel to e.g. blend in textures
7 years ago
Tony Crisci
b7b86a9591
Merge pull request #641 from Ongy/idle-inhibit
...
Add idle-inhibit implementation
7 years ago
Markus Ongyerth
67285c1d57
idle-inhibit: style adjustments and motivation
7 years ago
emersion
b1e2718dd7
xwayland: fix some use-after-free in xwm
7 years ago
emersion
bd9583a7e8
Merge pull request #652 from agx/symbols-file
...
Add symbols file
7 years ago
Markus Ongyerth
a715826751
move activity_notify into events in wlr_idle
...
This moves the `struct wl_signal activity_notify` in `struct wlr_idle`
into a local `struct {} events` to keep consistency with other modules
in the library.
7 years ago
Markus Ongyerth
87a7afb641
idle-inhibit: second feedback pass
7 years ago
Guido Günther
2688f6163f
Rename _strip_path to wlr_strip_path
...
since it's a public function
7 years ago
Markus Ongyerth
3016133f91
idle-inhibit: feedback pass
7 years ago
Drew DeVault
1d9be89e2d
Revert "ELF Visibility"
7 years ago
Drew DeVault
09cfa39392
Merge pull request #632 from acrisci/output-layout-adjacent
...
add wlr_output_layout_adjacent_output
7 years ago
Scott Anderson
f27c0b44b8
Remove usec_to_msec from public API
7 years ago
Tony Crisci
9a8808f8cf
move direction to wlr_output_layout.h
7 years ago
Tony Crisci
d2c7defa10
Merge branch 'master' into output-layout-adjacent
7 years ago
Markus Ongyerth
50d573b2ca
implements the idle_inhibit protocol type
...
This adds the types/wlr_idle_inhibit_v1 implementation.
7 years ago
emersion
717bdccb6e
Merge remote-tracking branch 'upstream/master' into martinetd/xdg_shell
7 years ago
Tony Crisci
85871cb666
add wlr_output_layout_adjacent_output
7 years ago
Dominique Martinet
7d26a6debd
xdg-shell stable: copy-pasta implementation
7 years ago
emersion
392d54a35d
Wrap wl_resource_get_user_data into safer helper functions
...
This ensures we're not incorrectly casting a resource.
Fixes #628
7 years ago
emersion
c2e1474010
Reformat all #include directives
7 years ago
emersion
36ead80cd1
Make wlr_signal_emit_safe private
7 years ago
emersion
10ecf871f2
Remove wlr_backend.events.{output_remove,device_remove}
7 years ago
emersion
5e58d46cc1
Add wlr_signal_emit_safe
7 years ago
emersion
a9632341bf
output_damage: listen to transform and scale output events
7 years ago
emersion
5a8f098eea
output, output_damage: add docs
7 years ago
emersion
ec837e3c9e
Introduce wlr_output_damage
7 years ago
emersion
bf6d245400
Swap buffers with damage
7 years ago
emersion
faa57341ca
output: replace raw GL calls by wlr_renderer_* calls
7 years ago
emersion
ddb1779f9f
render: make wlr_renderer_clear take a float[4] for the color
7 years ago
emersion
3d3ea32137
Merge remote-tracking branch 'upstream/master' into output-damage
7 years ago
Drew DeVault
39d5e78d37
Fix typo in xcursor.h
7 years ago
Drew DeVault
8cf622f074
Improve xcursor docs
7 years ago
emersion
8eed857292
output: add destroy signal for wlr_output_cursor
7 years ago
emersion
edb4c8d858
output: damage whole output when fullscreen surface size changes
7 years ago
emersion
704130cc11
output: fix performance issues with wlr_output_schedule_frame
7 years ago
emersion
2a855e6282
rootston: fix urxvt damage on HiDPI outputs
...
util/region: add wlr_region_expand
7 years ago
emersion
d498855b9d
backend/drm: fix hw cursor position on rotated and scaled outputs
...
output: add wlr_output_transformed_resolution
7 years ago
emersion
d0961a02af
render: add wlr_renderer_scissor docs
7 years ago
emersion
51c22d39a4
Merge remote-tracking branch 'upstream/master' into output-damage
7 years ago
Tony Crisci
ed5b1fdedd
Merge pull request #580 from emersion/screenshooter-renderer-backport
...
Backport screenshooter fixes from the renderer redesign v1
7 years ago
emersion
7111dd79ef
rootston: damage tracking for rotated views
7 years ago
emersion
8d58ed502b
output: add wlr_output_schedule_frame
7 years ago
emersion
ece2c1e4e2
Damage tracking for transformed outputs
7 years ago
emersion
a98ece68d3
util: add docs for wlr_region_scale
7 years ago
emersion
4223fbc763
rootston: damage tracking scale support
7 years ago
emersion
6281deb90f
Merge remote-tracking branch 'upstream/master' into output-damage
7 years ago
emersion
7a2e9a17ba
Merge pull request #579 from Ongy/dpms_decouple
...
decouples outputenable state and wl_output global
7 years ago
Markus Ongyerth
f946c10cb1
re-adds wlr_output_update_enabled
...
Re-add the wlr_output_update_enabled to make sure
wlr_output::events.enable is called when the output enabled state
changes.
7 years ago
emersion
4fa90b0511
Backport screenshooter fixes from the renderer redesign v1
...
This backports some changes to #319 to fix the screenshooter data
format. This also adds wlr_backend_get_renderer which will be
useful to support multiple renderers.
7 years ago
Markus Ongyerth
3cf7225cec
decouples outputenable state and wl_output global
...
This decouples wlr_output_enable and the wl_global.
The previously internal functions wlr_output_(destroy/create)_global are
exposed and used automatically in the wlr_output_layout to create/tear
down the global.
The compositor can handle them itself if it wants to, but I think this
is the right moment to create/destroy the wl_output when the
wlr_output_layout is used.
7 years ago
emersion
4d282c8590
rootston: damage tracking for drag icons
7 years ago
emersion
415a2b7c56
render: add wlr_renderer_clear and wlr_renderer_scissor
7 years ago
emersion
3f1c4f5be7
rootston: damage tracking for wl_shell
7 years ago
Tony Crisci
85a6939cf2
rename matrix model box to project box
7 years ago
emersion
59c53e8333
Merge remote-tracking branch 'upstream/master' into output-damage
7 years ago
Tony Crisci
d13114520a
move matrix model code to matrix.h
7 years ago
Tony Crisci
7474f00591
Merge branch 'master' into decorations
7 years ago
emersion
66ae4071a7
rootston: damage tracking for xdg popups
7 years ago
emersion
eeffe11337
surface: add wlr_surface new_subsurface and wlr_subsurface destroy events
7 years ago
emersion
c6aab6f56c
Add docs and comments
7 years ago
emersion
0365b587f0
output: add damage tracking via buffer age
7 years ago
emersion
4ca38b84ed
backend/drm: fix hardware cursors not moving
...
This adds back `wlr_output::needs_swap`. This allows a backend to
request buffer swaps even if the output isn't damaged. This is
needed by the DRM backend to trigger pageflips when the cursor
moves.
7 years ago
emersion
e29a0df8c1
output: fix software cursors damage tracking
7 years ago
emersion
a0f24b809e
output: add damage event
7 years ago
emersion
443bd4cd89
output: fullscreen surface damage tracking
7 years ago
emersion
bde255933e
output: add wlr_output::damage, fixes #572
7 years ago
Tony Crisci
b6f29e87e8
dont use pointer for modifiers
7 years ago
Tony Crisci
43896af90f
Merge branch 'master' into modifier-fixes
7 years ago
Tony Crisci
dc701b72fc
abstract box matrix
7 years ago
Drew DeVault
b331c5c2c5
Merge pull request #549 from emersion/output-enabled
...
Add wlr_output::enabled
7 years ago
Tony Crisci
c690420501
Merge pull request #562 from emersion/xwayland-fullscreen-render-children
...
xwayland: render children window in fullscreen
7 years ago
Tony Crisci
e46d2dd0f8
Merge pull request #556 from raazvvann/heghe/idle-protocol
...
Idle protocol
7 years ago
emersion
65b28b3823
xwayland: render children window in fullscreen
7 years ago
Markus Ongyerth
dfae5ff98f
Update comment for wlr_headless_backend_create
7 years ago
Markus Ongyerth
c00e9d1416
adds remote argument to wayland backend create
...
Add a remote display name argument to wlr_wl_backend_create.
If NULL is passed to the wayland backend at all times, creating a
wayland backend *after* the compositor was started up, would require
changing the WAYLAND_DISPLAY environment variable.
7 years ago
Heghedus Razvan
21cc5e6fef
Add idle protocol
...
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
7 years ago
Tony Crisci
b40a5f084a
keyboard grab enter with modifiers
7 years ago
emersion
8ebd7d4dbe
output: rename resolution event to mode
7 years ago
Tony Crisci
0ef2df21f2
compositor modifier hook
7 years ago
emersion
d9ecfbaf32
Add wlr_output enable event
7 years ago
emersion
771263380c
Add wlr_output::enabled
7 years ago
Tony Crisci
ce3a48c316
Merge pull request #542 from emersion/abstract-data-source
...
Abstract data sources
7 years ago
Drew DeVault
b23bd8ea28
Merge pull request #544 from emersion/fix-views-outside-output-layout
...
Fix views outside output layout
7 years ago
Drew DeVault
d438a877fd
Merge pull request #545 from emersion/fix-output-destroy
...
Free fullscreen surface and cursors when destroying output
7 years ago
Calvin Lee
5a26ed645a
Allow configurable verbosity
7 years ago
emersion
9ac9ba861f
Free fullscreen surface and cursors when destroying output
7 years ago
emersion
1fe1d64042
Fix views outside output layout
7 years ago
emersion
38ed3b4245
seat: rename selection_source to selection_data_source, remove unused data_device
7 years ago
emersion
b20aed66d6
Abstract wlr_primary_selection_source
7 years ago
emersion
f237b5c7a7
Make wlr_data_source abstract.
...
This removes some fields specific to sources coming from clients.
This adds some drag'n'drop-related callbacks.
7 years ago
Dominique Martinet
ec952931a1
wlr_xwayland: preserve end of struct on restart
...
This is more robust than trying to recopy a few fields.
Note: wlr_xwayland->events.ready now resets after each trigger, so one can
hook on it again and be called when restart is ready
7 years ago
Dominique Martinet
e0eafa0429
xwayland: listen to wlr_seat destroy signal
7 years ago
Dominique Martinet
58488ec5ce
wlr_seat: add destroy signal
7 years ago
Dominique Martinet
bb0d888f25
xwayland selection: further cleanup on Xwayland exit
...
This is necessary if our last primary/clipboard selection was on Xwayland,
and we try to paste to native wayland after Xwayland died
7 years ago
Drew DeVault
c23bd2ab7a
Further fixes to header install dir
7 years ago
Drew DeVault
9c163b7d38
Merge pull request #531 from acrisci/keyboard-num-keycodes
...
wlr-keyboard: keep track of number of keycodes pressed
7 years ago
Tony Crisci
e8b810ce3e
keep track of number of keycodes pressed
7 years ago
Björn Esser
71e42dae90
libwlroots: Add shared library versioning
7 years ago
Björn Esser
48ecbff691
include: Generate and install version-header
7 years ago
Björn Esser
892f7a5db0
include: Install headers in an isolated include-dir
7 years ago
Björn Esser
ff13849624
config: Avoid clash with other config-headers
7 years ago
Tony Crisci
815d71a3aa
validate grab serial for shell events
7 years ago
emersion
a79dc7df51
Merge pull request #524 from acrisci/role-committed
...
[wip] Role committed
7 years ago
Tony Crisci
5c5f0611c4
xwayland: role committed
7 years ago
Tony Crisci
e42d762a88
drag-icon: surface committed
7 years ago
Tony Crisci
68328700c7
wl-shell: role committed
7 years ago
Tony Crisci
e809250171
Merge pull request #519 from emersion/xwayland-primary-selection
...
Implement xwayland primary selection sync
7 years ago
Tony Crisci
d5ffa26564
xdg-shell: role-committed func
7 years ago
Tony Crisci
5a18f62fee
add role-committed hook
7 years ago
Tony Crisci
6c2242e66b
Merge pull request #522 from emersion/fix-drm-output-transform-cursor
...
Fix cursor on transformed output with DRM backend
7 years ago
emersion
43435d4915
Add output transform helpers docs
7 years ago
Björn Esser
57a09c8ca4
config: Put all defines into config.h
7 years ago
emersion
e737f65e38
Fix cursor on transformed output with DRM backend
7 years ago
emersion
4a11609b76
Fix use-after-free when destroying selection sources
7 years ago
emersion
6dffaa7bb7
Implement xwayland primary selection sync
7 years ago
emersion
4476f79850
Fix primary clipboard issues
7 years ago
emersion
a95d09d561
Add missing gtk-primary-selection interfaces
7 years ago
emersion
0a171d3ace
Add wlr_primary_selection_device_manager and wlr_primary_selection_source
7 years ago
Tony Crisci
ee39dff1e7
rootston: handle backend creation failed
7 years ago
Tony Crisci
58e69c9ce1
multibackend remove subbackend
7 years ago
Tony Crisci
a937016e38
remove session from multibackend
7 years ago
Tony Crisci
4e804ef40f
add backend destroy event
7 years ago
Dominique Martinet
fcd7062542
x11 backend: add wlr_input_device_is_x11
7 years ago
Dominique Martinet
169bc9fa10
wl backend: add wlr_input_device_is_wl
7 years ago
Dominique Martinet
d9eaca6c9f
headless backend: add wlr_output_is_headless
7 years ago
Dominique Martinet
995383b049
headless backend: add wlr_input_device_is_headless
7 years ago
Dominique Martinet
be95147385
drm backend: add wlr_output_is_drm
7 years ago
Dominique Martinet
dabfe159de
wl backend: add wlr_output_is_wl
7 years ago
Dominique Martinet
f83b16bc17
x11 backend: add wlr_output_is_x11
7 years ago
Dominique Martinet
3e228b0b2a
libinput backend: add wlr_input_device_is_libinput
7 years ago
emersion
4a36ba4bdd
Destroy multi backend on display destroy
7 years ago
Drew DeVault
f3769a4b1f
Merge pull request #496 from emersion/headless-backend
...
Headless backend
7 years ago
Drew DeVault
10c72f4bf6
Merge pull request #487 from emersion/xwm-selection
...
xwm clipboard sync, 2nd edition
7 years ago
emersion
b99d1f4fcc
Refactor wlr_egl_init to accept config_attribs
7 years ago
emersion
bc5bdb7793
Add headless input devices
7 years ago
emersion
0256de0002
Add full refresh rate support to custom modes
7 years ago
emersion
3970264ccf
Initialize headless backend
7 years ago
emersion
8af6fbd7a0
Support multiple resources per seat client for data_device
7 years ago
emersion
4f0443a344
Support multiple resources per seat client for pointer, keyboard, touch
7 years ago
emersion
51db087210
Introduce fractional scaling
7 years ago
emersion
6b42bfad18
Merge branch 'master' into xwm-selection
7 years ago
Drew DeVault
23fb663ea4
Merge pull request #453 from emersion/surface-transform
...
Add surface transforms support
7 years ago
emersion
466e86b7b2
Merge branch 'master' into surface-transform
7 years ago
emersion
75ef7860bb
Merge branch 'master' into display-destroy
7 years ago
emersion
6ef0219763
Merge branch 'master' into xwm-selection
7 years ago
Tony Crisci
ea4b871e16
xwm: user custom event handler
7 years ago
emersion
3b4b8953d9
Update output layout when scale or transform changes
7 years ago
emersion
c67a5824b8
Merge branch 'master' into display-destroy
7 years ago
emersion
529675b7b0
Add wlr_output_set_custom_mode
7 years ago
Drew DeVault
eb4e91f96d
Merge pull request #474 from emersion/customize-repeat-info
...
Make keyboard repeat info configurable
7 years ago
emersion
2c6e52c164
Add docs for wlr_keyboard_set_repeat_info
7 years ago
emersion
a3c0f97810
Make keyboard repeat info configurable
7 years ago
Tony Crisci
35188834db
Merge branch 'master' into feature/xwm-selection
7 years ago
emersion
c5fa415a03
Send wl_surface.{enter,leave} to cursor surfaces
7 years ago
Tony Crisci
4c60072be5
move get_resize_name to xcursor
7 years ago
Tony Crisci
d74ac69f7b
bring edges into wlr
7 years ago
emersion
6001235b04
Listen to display destroy in session
...
It's not the backend's responsibility to destroy the session anymore.
7 years ago
emersion
b06535718d
Do not destroy wl_client in wlr_xwayland_finish
7 years ago
emersion
18eb1eee3f
Listen to display destroy in xwayland, rename wlr_egl_free
7 years ago
emersion
bdb6e0b84c
Remove destroy event in screenshooter for now
7 years ago
emersion
0e066f0d76
Listen to display destroy in output
7 years ago
emersion
cbf5763c22
Listen to display destroy in xdg-shell-v6
7 years ago
emersion
9ddaea14a1
Listen to display destroy in wl-shell
7 years ago
emersion
983ea3033f
Listen to display destroy in seat
7 years ago
emersion
088ff9a614
Listen to display destroy in gamma control manager
7 years ago
emersion
c7900663bc
Add display destroy listener to data device
7 years ago
emersion
e6d2e72401
Remove display destroy listeners, add compositor listener
7 years ago
emersion
32591d66d6
Add display destroy listener in server decoration
7 years ago
emersion
dfe11a2b0e
Add display destroy listener in screenshooter, destroy display in rootston
7 years ago
emersion
bf2b58eb6d
Add wlr_output_set_scale
...
Fixes #465
7 years ago
Tony Crisci
86df909256
xwayland: remove xwayland param from xsurface methods
7 years ago
Drew DeVault
3f70043d00
Merge pull request #458 from acrisci/refactor/wlr-decoration-modes
...
wrap server decoration modes
7 years ago
Tony Crisci
344ca222db
wrap server decoration modes
7 years ago
Tony Crisci
41d7bad470
wl-shell: add commit event
7 years ago
emersion
6a69b4419f
Make wlr_output_transform_* functions public, refactoring
7 years ago
emersion
f4754ad1a2
Fix surface transforms
7 years ago
Tony Crisci
fc17c74516
xwayland: clean up seat setting
7 years ago
Tony Crisci
b0683874e9
xwm: send selection data
7 years ago
Tony Crisci
39e2ea8420
xwm: get selection targets
7 years ago
emersion
dcb168914e
Merge branch 'master' into fullscreen
7 years ago
Drew DeVault
1228d0da19
Merge pull request #387 from emersion/laggy-move-resize
...
Fix laggy move-resize
7 years ago
emersion
17d9e2ce35
Unify view events naming, remove client from event structs
7 years ago
emersion
151901123f
Merge branch 'master' into refactor-wlr-list
7 years ago
emersion
54f1135c05
Fix fullscreen in xdg-shell
7 years ago
emersion
b04a9a248d
Initial fullscreen support
7 years ago
emersion
7904b625f0
Merge branch 'master' into laggy-move-resize
7 years ago
Tony Crisci
af23192ede
wlr-seat: remove client bound and unbound signal
7 years ago
Tony Crisci
3b74db467b
data-device: wlr-drag-icon
7 years ago
emersion
016744ef4d
Refactor wlr_list inside wlroots
7 years ago
emersion
a3a8b7bfd8
Fixed a bug with move-resize, removed xdg-shell ack_configure event
...
Fixed move-resizing a view when only one coordinate changes.
7 years ago
emersion
e2843d87c8
Ensure to move the view when configured
7 years ago
Tony Crisci
f61986e8db
rename touch slot to touch id
7 years ago
Tony Crisci
fb18e345a6
wlr-seat: return serial from touch down interface
7 years ago
Tony Crisci
12758a00a2
rootston: touch to focus
7 years ago
Tony Crisci
ac4841ba37
put dnd icon in the right place
7 years ago
Tony Crisci
a337e95505
wlr-touch: make dnd work
7 years ago
Tony Crisci
4eab61f86f
wlr-seat: refactor touch grab interface
7 years ago
Tony Crisci
6a516f7c41
basic touch dnd
7 years ago
Tony Crisci
94e7dc8a3e
data-device: touch grab stubs
7 years ago
Tony Crisci
cbb6fd7352
wlr-seat: touch grab begin and end
7 years ago
Tony Crisci
469729d3af
wlr-seat: document seat touch functions
7 years ago
Tony Crisci
4240096b83
wlr-seat: default touch grab
7 years ago
Tony Crisci
e5a31ae870
wlr-seat: basic touch
7 years ago
emersion
3f6cf517b9
Add wlr_xdg_surface_v6_popup_get_position
7 years ago
emersion
f8b43940b1
Merge branch 'master' into cursor-scale
7 years ago
Drew DeVault
a317ecdab8
Run startup command after xwayland is ready
7 years ago
emersion
28fc813ca9
Merge branch 'master' into cursor-scale
7 years ago
Drew DeVault
1e0e73efaa
Spawn views on last active output
7 years ago
emersion
8605243459
Introduce wlr_xcursor_manager
7 years ago
emersion
09279b90a6
Add wlr_output.serial
7 years ago
emersion
ac1573b0e7
Add scale parameter to wlr_cursor_set_image
7 years ago
Tony Crisci
2a9dc60f28
Merge branch 'master' into feature/multiseat
7 years ago
Drew DeVault
5f3b27347c
Merge pull request #404 from emolitor/CPP-Compatibility
...
Remove VLA from session.h
7 years ago
Eric Molitor
5be11a5c95
Remove VLA from session.h
...
VLAs are optional C11 features and not supported by C++.
7 years ago
Drew DeVault
e6babc07a0
Merge pull request #390 from emersion/rootston-maximize
...
Maximize views in rootston
7 years ago
Drew DeVault
425713b837
Merge branch 'hidpi'
7 years ago
Timidger
80bf3cfff0
Fixes #399 Adds wlr_data_device_manager destructor
...
Fixed issues
7 years ago
Tony Crisci
739361aa70
wlr-keyboard: take out modifiers event struct (for now)
7 years ago
emersion
bf1b12a725
Fix maximize delay in xdg-shell
7 years ago
emersion
26dadacb71
Add wl_shell support for maximized views
7 years ago
Drew DeVault
66587eb430
Merge remote-tracking branch 'origin/master' into hidpi
7 years ago
Tony Crisci
79f5bd6ef8
Merge branch 'master' into feature/multiseat
7 years ago
emersion
882e620639
Always read state from wlr_keyboard in the seat
7 years ago
emersion
84d5e6bbb4
Send current keyboard state when entering a surface
7 years ago
Tony Crisci
09c6092423
multiseat: somewhat working
7 years ago
Tony Crisci
5354fe8729
move keyboard to seat
7 years ago
Drew DeVault
6d8e1abfc0
Improve input sensitivity
...
We now use doubles until the last minute, which makes it so we can move
the pointer more precisely. This also includes a fix for tablet tools,
which move absolutely and sometimes do not update the X or Y axis.
7 years ago
Drew DeVault
86b8729998
Merge remote-tracking branch 'origin/master' into hidpi
7 years ago
Drew DeVault
62734d0553
Merge pull request #380 from emersion/xwayland-root-cursor
...
Set xwayland root cursor
7 years ago
emersion
3f4ad47421
Use compositor theme for xwm cursor
7 years ago
emersion
d11973ed7d
Fix disabled cursors
7 years ago
emersion
e18460c981
Add wlr_output.needs_swap
7 years ago
emersion
0df7a3c22d
Add wlr_seat_pointer_request_set_cursor_event.serial
7 years ago
Drew DeVault
0d9d670dbd
Merge pull request #365 from emersion/wayland-backend-transform
...
Cursors ✕ Output Transformations fixes
7 years ago
emersion
60c018c017
Fix hidden software cursors, fix cursor transformations on DRM backend
7 years ago
Drew DeVault
a6930cd8ea
Handle output enter/leave correctly
7 years ago
Drew DeVault
a7446792a1
Consider scale factor when rendering views
7 years ago
Tony Crisci
1a756b3123
bugfix: dnd force cancel
7 years ago
emersion
0beae99188
Apply output transformation to pointer events in Wayland backend
7 years ago
emersion
4230a577cc
Remove wlr_cursor_set_xcursor for now
7 years ago
emersion
95566c6bdf
Transform cursor hotspot, fix wayland cursor hotspot
7 years ago
emersion
2e2d63a164
Manage wlr_output_cursor from wlr_cursor
7 years ago
emersion
1b6c729360
Add wlr_output_cursor
7 years ago
Drew DeVault
ebca06bfe4
Merge pull request #358 from acrisci/refactor/sec-to-msec
...
refactor input time_sec to time_msec
7 years ago
Tony Crisci
875a5b446f
remove time usec
7 years ago
Tony Crisci
74bca7251b
rename wlr_seat to seat on seat structs
7 years ago
Tony Crisci
fddef4d58e
rename seat handle to seat client
7 years ago
Tony Crisci
a224e74fad
refactor input time_sec to time_msec
7 years ago
Tony Crisci
c01248cf17
Merge branch 'master' into feature/xwm-rewrite
7 years ago
Drew DeVault
4281aefbf8
Merge pull request #324 from acrisci/feature/keyboard-redesign
...
wlr-seat: keyboard redesign
7 years ago
Tony Crisci
c555a66dda
Merge branch 'master' into feature/xwm-rewrite
7 years ago
Tony Crisci
325def3841
xwm: create colormap and visual depth detection
7 years ago
Tony Crisci
be297d9d14
xwm: net wm state
7 years ago
Tony Crisci
6a4290b86a
xwm: moveresize events
7 years ago
emersion
a43acae000
Send server-decoration ack event automatically
7 years ago
Tony Crisci
4a106648c4
xwm: remove incorrect implementation of net wm state
7 years ago
Tony Crisci
0d1dd84a48
xwm: improve activation and dont send focus twice
7 years ago
Tony Crisci
e5ee01254b
xwm: map and unmap notify
7 years ago
Tony Crisci
2ff94d0036
xwm: get rid of displayable surfaces list
7 years ago
emersion
e84d573b91
Complete server-decoration implementation
7 years ago
emersion
e521b0404b
Add server-decoration skeleton
7 years ago
Tony Crisci
79e14f65e0
xwm: fix lists
7 years ago
Tony Crisci
a3f2754668
xwm: add surface to rootston on surface commit
7 years ago
Tony Crisci
1dbe314937
Merge branch 'master' into feature/data-device-selection
7 years ago
Tony Crisci
d33a9f8eaa
wlr-seat: keyboard redesign
7 years ago
emersion
eea532911a
Send output current mode when changed
7 years ago
Tony Crisci
d1dd0a6970
refactor buffer detection
7 years ago
emersion
1cc8f21d8e
Cleanup wlr_gamma_control
7 years ago
emersion
e1d213fccd
Create globals only for enabled outputs in DRM backend
7 years ago
Drew DeVault
c5fff08f8a
Forgot to rename these
7 years ago
Drew DeVault
16f35ecbea
Merge branch 'master' into heghe/wl_list
7 years ago
Drew DeVault
169b68b17c
Rename remaining refs to wlr_list
7 years ago
Scott Anderson
822a9f65a4
Add pointer to backend inside wlr_output
7 years ago
Scott Anderson
9b984253e2
Move egl.h to render/egl.h
7 years ago
Tony Crisci
a87b60e31e
Merge branch 'master' into feature/data-device-selection
7 years ago
Heghedus Razvan
d3f0878d71
Replace list_t with wl_list in wlr_wl_backend
...
Now wlr_backend->outputs is a list of wlr_wl_backend_output instead of
wlr_output.
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
7 years ago
Tony Crisci
eaed6b6d29
wl-output: send layout position
7 years ago
Heghedus Razvan
e1f196a3e9
Replace list_t with wl_list for wlr_input_device
...
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
7 years ago
Heghedus Razvan
1d716241af
Replace list_t with wl_list in wlr_output
...
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
7 years ago
Tony Crisci
b7c622a319
Merge branch 'master' into feature/data-device-selection
7 years ago
Drew DeVault
62371a9974
Merge pull request #257 from emersion/fix-client-cursors
...
[WIP] Fix client cursors
7 years ago
Tony Crisci
19784360f1
bug: fix view centering
7 years ago
Tony Crisci
2d35e20691
data-device: keyboard grabs
7 years ago
Tony Crisci
3f3110452c
wlr-seat: pointer state button info
7 years ago
Tony Crisci
34f27ff691
wlr-seat: selection signal
7 years ago
Tony Crisci
02f4acc69f
data-device: refactor set selections for xwayland
7 years ago
Tony Crisci
df0a8d3abe
wlr-data-device: drag icons
7 years ago
Tony Crisci
a1bfa4a2f2
wlr-data-device: basic drag and drop
7 years ago
Tony Crisci
07259cf8ea
wlr-data-device: source actions
7 years ago
Tony Crisci
25831d287e
wlr-data-device: offer set actions
7 years ago
Tony Crisci
3892acecac
wlr-data-device: basic clipboard
7 years ago
Tony Crisci
6a7560fae0
wlr-data-device interface
7 years ago
emersion
92daa790bb
Allow to update the cursor hotspot without its pixels
7 years ago
Enerccio
f53616ab1c
Fixed wrong function name
...
Apparently I am first guy to ever call this...
7 years ago
Tony Crisci
0a6f54384c
wl-shell: documentation
7 years ago
Tony Crisci
821cf92498
wl-shell: fix popup grab
7 years ago
Tony Crisci
f7e7f6271d
wl-shell: cleanup
7 years ago
Tony Crisci
1b2742d0b2
bug: emit surface new event later
7 years ago
Tony Crisci
fe3c6c929b
wl-shell: popup input handling
7 years ago
Tony Crisci
22a16a59ca
wl-shell: basic pointer grab
7 years ago
Tony Crisci
cd1204f71f
wl-shell: render popups in the right place
7 years ago
Versus Void
a6db47196c
Upload texture on surface commit
7 years ago
Drew DeVault
c39bfe7f84
Merge pull request #206 from emersion/client-cursor
...
Client provided cursors
7 years ago
Tony Crisci
654e2ccd6b
move surface finder functions to wlroots
7 years ago
Timidger
3abf713e35
Fixed include in wlr_keyboard.h
7 years ago
emersion
8a77d1b6a2
Listen to cursor surface commit & destroy events
7 years ago
emersion
9b83caa658
Add wlr_output_set_cursor_surface
7 years ago
emersion
78d3582b70
Add request_set_cursor event
7 years ago