Commit Graph

1021 Commits

Author SHA1 Message Date
Victor Berger 885fd0cff2 github actions 2020-04-12 22:36:57 +02:00
Chandler Newman d92aa6dafe
Only listen to removal signal for own session (#182) 2020-04-12 17:00:19 +02:00
Sergey Smirnykh f966e28fe5
Update wayland-client & wayland-egl (#181)
Update wayland-client to 0.25.0
Add wayland-egl 0.25.0
2020-04-12 13:11:10 +02:00
Victor Brekenfeld e0fadac487
Merge pull request #176 from Smithay/fix/anvil/udev_without_egl
anvil: Fix udev build without egl
2020-04-11 14:43:33 +02:00
Victor Brekenfeld 2b5c0448eb anvil: Fix udev build without egl 2020-04-11 13:47:01 +02:00
Victor Brekenfeld cd25b1d222
Merge pull request #174 from Smithay/reformat
Reformat codebase
2020-04-11 13:46:37 +02:00
Victor Brekenfeld f6b3d630ce rustfmt 2020-04-10 19:18:58 +02:00
Victor Berger 8f4a9c172b Update CI Ubuntu version 2020-04-10 19:16:52 +02:00
Victor Brekenfeld cceb9dabf4
Merge pull request #143 from Smithay/drm-next
drm-rs 0.4
2020-04-10 16:59:32 +02:00
Victor Berger d30d901771 Update raw_drm example 2020-04-10 16:59:01 +02:00
Victor Brekenfeld e8e8667d89 Upgrade to the upcoming drm-rs 0.4 2020-04-10 16:58:49 +02:00
Sergey Smirnykh e798259be9 Calculate pointer location correctly 2020-04-08 15:21:21 +02:00
Sergey Smirnykh 3bc1c728a8 Remove excess type conversions 2020-04-08 15:21:21 +02:00
Sergey Smirnykh 9e1bce7c66 Unhide cursor for now 2020-04-08 15:21:21 +02:00
Sergey Smirnykh 73345375ac Update winit dependency to version 22.0 2020-04-08 15:21:17 +02:00
Dorota Czaplejewicz 178a447394 winit: Don't resize in resize handler
The resize handler with a window resize request causes oscillations between two window sizes (presumably the inner and the outer). While it's not clear what part of the stack causes it, checking `window.get_inner_size()` already presents the correct size.

Either way, changing the same property in its change handler is a recipe for feedback loops as this one and should be avoided whenever possible, and then carefully fortified too.
2020-04-06 10:35:27 +02:00
Victor Berger 1b5537d537 Restore logind as a default feature 2020-04-05 20:03:09 +02:00
Jonas Platte b8c20ebf30
Update wayland-rs to 0.25 (#171)
Update wayland-rs to 0.25 and calloop to 0.5

Co-authored-by: Victor Berger <victor.berger@m4x.org>
2020-04-05 19:01:08 +02:00
Victor Brekenfeld fbe20d6c1f
Merge pull request #170 from Smithay/vberger/fix-libinput-device-drop
backend.libinput: fix tracking of removed devices
2020-04-01 18:24:41 +02:00
Victor Berger 63702a308a backend.libinput: fix tracking of removed devices 2020-04-01 11:03:54 +02:00
Ivan Molodetskikh e42ccc8aee
wayland: fix deadlock in SurfaceData::cleanup (#166) 2020-02-16 16:38:07 +01:00
Victor Berger a60e1cd7fd
Merge pull request #156 from YaLTeR/resize
anvil: implement the Resize request
2020-02-12 22:57:32 +01:00
Ivan Molodetskikh e1396d2e1a
anvil.shell: add our own ResizeEdge
It mirrors the one in wl_shell_surface and lets us not depend on it.
2020-02-11 11:06:36 +03:00
Victor Berger 517070d079
Merge pull request #158 from YaLTeR/fix-wl-shell-initial-size
anvil.shell: don't send first configure to WlShell
2020-02-09 17:07:49 +01:00
Ivan Molodetskikh c0d0d0d2b8
anvil.shell: respect min and max size in resize 2020-02-08 18:36:09 +03:00
Ivan Molodetskikh e76f9f14ed
anvil.shell: store min_size and max_size 2020-02-08 13:51:12 +03:00
Ivan Molodetskikh 097445bc20
shell.xdg: fix two copy-paste errors 2020-02-08 13:51:12 +03:00
Ivan Molodetskikh adbab32bd8
anvil.shell: update location on top-left resizing 2020-02-08 13:51:11 +03:00
Ivan Molodetskikh 60ca2f9c88
anvil.shell: don't send first configure to WlShell
It doesn't need it, and it also takes the (0, 0) size literally, which
makes everything try to be the smallest size possible initially.
2020-02-08 09:53:50 +03:00
Ivan Molodetskikh 09d7f597d4
anvil.shell: refresh toplevels on commit
This updates the toplevel state in the WindowMap as soon as it's
committed. It will be used to update the toplevel location on top-left
resize, but this is a better approach in general than the current
update-every-drawn-frame. I think we should update the WindowMap state
as soon as possible, and only when necessary.
2020-02-08 08:47:14 +03:00
Ivan Molodetskikh ab45cdecdc
anvil.window_map: add refresh_toplevel 2020-02-08 08:47:14 +03:00
Ivan Molodetskikh 9eb51b8439
shell.xdg: add XdgRequest::AckConfigure
This will be used for convenient resize state tracking.
2020-02-08 08:47:14 +03:00
Ivan Molodetskikh 223b523f80
anvil.window_map: add WindowMap::find 2020-02-08 08:47:14 +03:00
Ivan Molodetskikh 6d36375f27
anvil.window_map: implement Clone for Kind 2020-02-08 08:47:14 +03:00
Ivan Molodetskikh 33a9e242ed
wayland.shell: implement Clone for toplevels 2020-02-08 08:47:13 +03:00
Ivan Molodetskikh ca7e91a98c
anvil.shell: implement the Resize request
Currently doesn't move the window when resizing left or top.
2020-02-08 08:47:13 +03:00
Ivan Molodetskikh 546ff48af5
anvil.window_map: add WindowMap::geometry 2020-02-03 16:54:11 +03:00
Ivan Molodetskikh 9fd9db82ae
anvil.shell: store geometry in SurfaceData 2020-02-03 16:54:11 +03:00
Ivan Molodetskikh ebb3a05502
anvil: make get_size and contains_point methods
This removes the need to store them as generic members, and will ease
the addition of new methods.
2020-02-03 16:54:11 +03:00
Ivan Molodetskikh 533a006bd1
anvil.window_map: fix bbox computation
It said max_y = y + w instead of y + h.
2020-02-03 16:54:11 +03:00
Ivan Molodetskikh 5814626dbe
anvil.window_map: rename input_bbox to bbox
Since this value turns out to be more useful than for just input fast
path.
2020-02-03 16:54:10 +03:00
Victor Berger 7fa7fe03be
Merge pull request #155 from YaLTeR/fix-dimensions
anvil: retrieve buffer dimensions on commit
2020-02-03 14:53:35 +01:00
Victor Berger 719295931b
Merge pull request #153 from YaLTeR/move
Implement the Move request
2020-02-03 14:53:06 +01:00
Ivan Molodetskikh a224f774ee
anvil: store buffer dimensions separately
Before this change, the texture size was used for the dimensions.
However, the texture is not created until the next rendered frame, which
means that frequently size was returned as zero, resulting in pointer
focus artifacts. With this change, the dimensions are retrieved
immediately on surface commit.
2020-02-03 12:56:59 +03:00
Ivan Molodetskikh 825995687a
anvil: add BufferUtils
A helper struct which currently contains only a method for retrieving
buffer dimensions. Will be used for getting the buffer dimensions early,
before rendering, to always have up-to-date size which is not zero.
2020-02-03 12:56:59 +03:00
Ivan Molodetskikh 46348367b1
backend.egl: add egl_buffer_dimensions
Allows to retrieve just the dimensions, without creating images and
whatnot.
2020-02-03 12:41:35 +03:00
Ivan Molodetskikh fab0b7a05f
seat: remove ClickGrab.pending_focus
It was unused.
2020-02-03 12:31:39 +03:00
Ivan Molodetskikh 32613f3cd6
anvil.shell: check that grab is correct in Move
Check that the grab had a focus and it was the same client as this
surface.
2020-02-03 12:31:39 +03:00
Ivan Molodetskikh d8495d81f2
anvil.shell: check that there's a grab before Move
If there's no click grab then the request is invalid.
2020-02-03 12:31:38 +03:00
Ivan Molodetskikh 03392bf7d1
seat: add GrabStartData to PointerGrab
Stores the data about the event that started the grab. Will be useful
for things like move and resize requests.
2020-02-03 12:31:38 +03:00