Drew DeVault
3033f33a1d
Merge pull request #1399 from emersion/fix-wl-backend-zero-vla
...
backend/wayland: fix zero-length VLA
6 years ago
emersion
408e2a77e9
backend/wayland: fix zero-length VLA
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
Drew DeVault
ed1ffddba8
Merge pull request #1396 from emersion/fix-destroyed-subsurface
...
surface: fix destroyed subsurfaces handling
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
4423f88fac
data-device: never cancel the source when offer is destroyed
...
The source could be used in another offer.
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
Ryan Dwyer
eaa852ed77
Merge pull request #1395 from emersion/text-input-log-newline
...
text-input-v3: remove newline in log message
6 years ago
emersion
27d1910bec
text-input-v3: remove newline in log message
6 years ago
Drew DeVault
b5093a940b
Merge pull request #1392 from emersion/disable-static-analysis
...
Disable Clang static analysis
6 years ago
Drew DeVault
90f1a34d2c
Merge pull request #1375 from emersion/tablet-segfault
...
tablet-v2: fix segfault on display destroy
6 years ago
emersion
18e26cba78
Disable Clang static analysis
6 years ago
emersion
9e50e19374
Merge pull request #1391 from buffet/fix-loc-count
...
Fixed loc count in readme
6 years ago
buffet
443dece7d5
Fixed loc count in readme
6 years ago
emersion
88994b18d5
Merge pull request #1390 from ammen99/fix-preferred-read-format
...
output: add wlr_output_preferred_read_format()
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
c70b8f64b7
Merge pull request #1385 from atomnuker/master
...
Fix interlaced mode rejection
6 years ago
Rostislav Pehlivanov
91513c89cd
Fix interlaced mode rejection
6 years ago
emersion
42e8e3ed0a
Merge pull request #1380 from emersion/gtk-primary-selection-multiple-devices
...
gtk-primary-selection: support multiple devices
6 years ago
emersion
b20f4cd495
Merge pull request #1382 from atomnuker/master
...
Skip interlaced modes during drm mode detection
6 years ago
Rostislav Pehlivanov
dc9fdd6385
Skip interlaced modes during drm mode detection
...
Fixes #3167
A better solution could be made if there's a need to.
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
Drew DeVault
040d62de00
Merge pull request #1366 from emersion/render-software-cursors
...
Render software cursors in compositor
6 years ago
emersion
1b9ebcf645
output: make wlr_egl flip the damage
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
emersion
df7d4a71fb
Merge pull request #1368 from ascent12/x11_backend
...
X11 backend improvements
6 years ago
Scott Anderson
d3ee69f76b
backend/x11: Hide cursor with Xfixes
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
d89e868cc9
backend/x11: Add new Xinput events
6 years ago
Scott Anderson
88b2d6fe25
backend/x11: Check for xinput extension
6 years ago
Scott Anderson
9c1b87f210
backend/x11: Move atom initilisation earlier
...
There isn't any real reason to delay this until the backend is started.
6 years ago
Scott Anderson
ab2c57984b
backend/x11: Make header order consistent
6 years ago
Scott Anderson
51a283cbe4
backend/x11: Rename xcb_conn to xcb
...
When the Xlib connection is removed, this _conn suffix is going to be
pointless. I'm removing this preemtively for that.
6 years ago
Drew DeVault
4aff85cc8e
Merge pull request #1373 from emersion/fix-teardown-segfaults
...
xdg-shell: don't destroy xdg role state on role destroy
6 years ago
Drew DeVault
77dfac4fa4
Merge pull request #1372 from emersion/config10
...
Use #if instead of #ifdef for wlroots config data
6 years ago
Drew DeVault
d2d8372cdc
Merge pull request #1369 from ascent12/wayland_backend
...
Wayland backend improvements
6 years ago
emersion
89ec624f81
tablet-v2: fix segfault on display destroy
6 years ago
emersion
95dfbe2962
xdg-shell: don't destroy xdg role state on role destroy
...
ie. don't destroy surface->toplevel on xdg_toplevel destroy. Instead do this on
xdg_surface destroy.
This allows compositors to add toplevel listeners when the surface appears and
remove them when the surface is destroyed.
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
emersion
180151ed09
backend/wayland: handle WL_EVENT_WRITABLE for Wayland socket
...
We need to flush when the connection is writable again. This is important in
case the write buffer becomes full. This is also what Weston does [1].
[1]: https://gitlab.freedesktop.org/wayland/weston/blob/master/libweston/compositor-wayland.c#L2593
6 years ago
Scott Anderson
aaff4b8c00
backend/wayland: Make header order consistent
6 years ago
Scott Anderson
bbce92a923
backend/wayland: Move initilisation code earlier
...
The renderer redesign is going to need the render fd before the backend
is fully started, so we have to move the wl registry code to when the
backend is created instead of when it is started.
We also need to stash the wl_keyboard and emit it to library users
later, once they've added their listeners and started the backend.
6 years ago
Scott Anderson
47545cf550
backend/wayland: Use specific wl_global versions
...
Explicitly use the version we support instead of accepting the
compositor's version.
6 years ago
Scott Anderson
4e03802057
backend/wayland: Move registry into backend
...
Registry was a very small file, and is heavily related to the backend,
so there is not point in keeping them separate.
6 years ago
Drew DeVault
3181c4bec0
Merge pull request #1356 from emersion/egl-renderable-type
...
render: correctly set EGL_RENDERABLE_TYPE
6 years ago
emersion
09550032b7
render: correctly set EGL_RENDERABLE_TYPE
...
This should be set to EGL_OPENGL_ES2_BIT.
Also fixes EGL config attributes in the headless and X11 backends.
6 years ago