Commit graph

193 commits

Author SHA1 Message Date
Victoria Brekenfeld
bf8fb0ac24 input: Fix broken confinement check 2024-07-10 22:36:40 +02:00
Michael Aaron Murphy
553c49b42b feat: runtime configurable keybindings 2024-07-01 15:20:23 +02:00
Victoria Brekenfeld
0c11c0f959 input: Fix deadlock holding shell during grab code 2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
3b7bba3add debug: Drop puffin, interactivity, renderdoc 2024-06-26 12:59:33 +02:00
Victoria Brekenfeld
cf0b0f9d2d chore: Move some rendering-related state into the shell 2024-06-26 12:59:33 +02:00
Ian Douglas Scott
f2342f56c1 Update to latest Smithay version 2024-06-19 12:39:16 +02:00
Ryan Brue
b4a712c2bf chore: cargo fmt 2024-05-30 23:05:34 +02:00
PixelDots
b3c606fdf6 Fixes https://github.com/pop-os/cosmic-epoch/issues/346 2024-05-23 17:17:37 +02:00
Ian Douglas Scott
4f076e0753 Update smithay, with xwayland shell, Cow, etc. 2024-05-21 19:31:50 +02:00
Ian Douglas Scott
46fd6ebd61 Fix tablet input
We need to call `add_tablet` for each tablet device, not just if the
capability is new. Also, the tool needs to be added with `add_tool`.

`xournalpp` seems to be working now.
2024-05-15 08:16:43 +02:00
Ian Douglas Scott
36bf611bac fix: Apply scroll_factor to v120 events
I wasn't sure if, or how, scaling should apply to the `scroll_value120`
events. But it seems both sway and kwin just multiply by the scale
factor then round, so that seems reasonable.

This seems to fix https://github.com/pop-os/cosmic-settings/issues/270.
2024-05-10 14:00:45 +02:00
Mattias Eriksson
19ba568f02 Initial support for idle notify and idle ihibit 2024-05-03 14:38:58 +02:00
Ian Douglas Scott
17ddc7ce24 Update smithay
Updates for changes in https://github.com/Smithay/smithay/pull/1391.
2024-04-17 11:59:13 +02:00
Victoria Brekenfeld
5d5a510691 state: Move shell behind RwLock 2024-04-16 18:50:54 +02:00
Victoria Brekenfeld
647deb81f1 shell: Move seats into shell 2024-04-16 18:50:54 +02:00
Ian Douglas Scott
b18a3a8bc7 shell: Touch support for move grab
Touch support is still needed for other grabs. And SSDs (and libcosmic)
need to start move/menu/etc. based on touch.
2024-04-15 11:37:03 +02:00
Victoria Brekenfeld
6ba7242cfc main: Increase soft file limit 2024-04-05 13:49:36 +02:00
Victoria Brekenfeld
fa7926f7c1 input: Move window anywhere with Super-key 2024-04-02 17:22:30 +02:00
Victoria Brekenfeld
cf75bc1952 chore: Update smithay/libcosmic 2024-03-26 18:50:56 +01:00
Victoria Brekenfeld
3cff426805 focus: Fix screencopy 2024-03-26 18:50:56 +01:00
Victoria Brekenfeld
5459f52d5e input: Rework PointerFocus to operate directly on WlSurface 2024-03-26 18:50:56 +01:00
Victoria Brekenfeld
b40d153809 cosmic-screencopy-v2 2024-03-25 16:55:31 +01:00
Victoria Brekenfeld
9f8fc6456c xwayland: Fix stuck focus on XwaylandKeyboardGrabs 2024-03-25 12:51:01 +01:00
Victoria Brekenfeld
8137b96893 input: Fix override-redirect windows not clickable on their own 2024-03-25 12:51:01 +01:00
Victoria Brekenfeld
07f14314a1 input: Explain why we don't focus override-redirect windows 2024-03-25 12:51:01 +01:00
Ryan Brue
fc2173d028 feat: workspace switching touchpad gestures 2024-03-22 12:12:25 +01:00
Victoria Brekenfeld
d341cb8b86 debug: Drop puffin integration 2024-03-21 17:49:06 +01:00
Ryan Brue
929f4fcb05 fix: clamp mouse position just below output size 2024-03-20 17:44:50 +01:00
Victoria Brekenfeld
9cb1adb37c Fix #339 2024-03-07 19:07:29 +01:00
Ian Douglas Scott
a204197e6d Set keyboard LEDs (capslock, numlock, scrollock)
It doesn't seem there's currently a way to iterate over input devices,
so this adds a `Vec` of libinput keyboard devices. When run with the
kms backend.

Not the most elegant solution, but it doesn't seem practical to add a
type generic to `Devices` given how backends are handled, and `Device`
can't be made into a trait object. Another trait could be added, but
this is fine, and technically should perform better (but if it actually
had to iterate over many keyboards, something has gone very wrong).
2024-03-06 13:18:09 +01:00
Victoria Brekenfeld
9540005577 input: Add minimize shortcut 2024-03-04 19:20:52 +01:00
Victoria Brekenfeld
3eb7e5f82e shell: implement minimize 2024-03-04 19:20:52 +01:00
Ian Douglas Scott
3036448c19 Update Smithay, with Window that supports X11 surfaces 2024-02-22 17:49:46 +01:00
Ashley Wulber
5eb5af4675
feat: add tiling variables to cosmic config 2024-02-08 20:25:18 +01:00
Victoria Brekenfeld
226bf7f49d workspace: Add tiling_state 2024-02-07 21:40:23 +01:00
Victoria Brekenfeld
54f2d2c67e chore: Update smithay 2024-02-06 15:31:01 +01:00
Ian Douglas Scott
b46b92611c Change keyboard repeat delay from 200ms to 600ms
This matches Sway, and seems to make it harder to accidentally paste
text twice.

Perhaps this should be configurable in some way (not sure how it's
usually handled). But this is probably a better default.
2024-01-24 01:12:54 +01:00
Ian Douglas Scott
9b98c20da2 Run cargo fmt 2024-01-18 20:27:51 +01:00
Victoria Brekenfeld
35264ca4a6 shell: Lift next_focus to mix-and-match sticky and floating windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
a829978ce9 shell: Lift move_current_element to consider sticky windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
f928f80f09 formatting fixes 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
a333753c96 shell: Lift toggle_stacking(_focused) to handle sticky windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
807f63bb72 shell: Lift/refactor (un)maximize, consider sticky windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
775e0ccbdc input: Simplify surface_under / lift element_under 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
c50607afd5 input: Add unbound shortcut to toggle sticky state 2024-01-02 13:24:07 +01:00
Ian Douglas Scott
cf9ae91e96 Initial support for tablet input 2024-01-02 12:44:10 +01:00
Ian Douglas Scott
45946fc75d Add map_to_output input option for touch devices 2023-12-28 10:37:08 +01:00
Ian Douglas Scott
70bb9b9a2e Initial wl_touch support
`builtin_output` is similar to `get_builtin_output_name` in Sway.

For full support, we need support for touch targets/grabs, touch support
for SSDs, and a way to configure what output is mapped to what input.

But this is usable for apps that support touch on a laptop with a
touchscreen.
2023-12-28 10:37:08 +01:00
Ian Douglas Scott
144f8cbf69 Fix generation of axis_stop events
`axis_stop` should only be sent if the value is `Some(0)`, while this
also sent it for `None`. So every scroll event on one axis generated
stop events for the other.

This fixes scrolling with a touchpad in Alacritty.

Anvil already does this, comparing against `Some(0.0)`.
2023-12-22 01:28:11 +01:00
Victoria Brekenfeld
a8b401b11d input: Only capture Escape, if a grab is active 2023-12-13 16:36:49 +00:00