Commit graph

856 commits

Author SHA1 Message Date
Victoria Brekenfeld
ffd99de7ef winit: Close properly, if the window closes 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
e4298df306 menu: Don't display tiling state for sticky windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
c3ecbeee3b render: Fix OR window and sticky X11 windows stacking order 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
f928f80f09 formatting fixes 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
0ac12ce202 shell: Handle fullscreen of sticky windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
97a13ea515 shell: Lift/Refactor (interactive) resize to consider sticky windows 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
d0136194f4 xdg-popup: Unconstrain sticky window popups as well 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
e67e139e15 focus: Allow sticky windows in focus_stacks, allow dialogs to stay on top 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
10c196a080 shell: Lift recalculate to consider sticky_layer 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
769b7d6996 shell: Refactor move_request, 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
5681447508 shell: Consider sticky_layer animation state 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
Victoria Brekenfeld
d2e394b957 menu: Allow toggling sticky state 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
e0d207fbe1 shell: Make element_for_(wl_)surface consider sticky windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
d503e44ca8 shell: refactor single visible_output 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
414cbfef2d shell: Drop unused maximize mode 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
00a87e021b render: Handle sticky windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
98f877359f state: Send frame/dmabuf_feedback/presentation events to sticky windows 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
cf21d2689a shell: Add new sticky_layer 2024-01-02 13:24:07 +01:00
Victoria Brekenfeld
35766a372b screencopy: Fix copying to opaque shm formats 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
Jeremy Soller
b41a5c74af
Merge pull request #259 from jokeyrhyme/super-escape-runs-cosmic-greeter
fix: Super+Escape locks screen per Pop!_OS convention
2023-12-30 12:09:53 -07:00
Jeremy Soller
3a02cd5038
Merge pull request #260 from jokeyrhyme/spawn-cosmic-term-and-cosmic-screenshot
fix: use `cosmic-term` and `cosmic-screenshot` by default
2023-12-30 12:08:57 -07:00
Ron Waldon-Howe
2834551ffb fix: use cosmic-term and cosmic-screenshot by default 2023-12-31 05:00:53 +11:00
Ron Waldon-Howe
f366a5dc87 fix: Super+Escape locks screen per Pop!_OS convention 2023-12-31 04:52:04 +11: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
Ian Douglas Scott
ad3a917151 Update Smithay 2023-12-22 01:28:11 +01:00
Ian Douglas Scott
aa9ec52e62 cosmic: Provide CosmicConfigEntry impl, use _ in property names
It seems to derive `CosmicConfigEntry`, we need to use `_` in property
names, because `_` isn't mapped to `-` and there doesn't seem to be a
mechanism like `#[serde(rename)]`.

It seems good to be consistent anyway. So this seems good to change,
unless we really like using `-` for names on disk, then cosmic-panel
needs to be changed.

`CosmicConfigEntry` also requires `PartialEq`, which is easy enough to
add.

This will break existing input settings, which will have to be
re-applied with the new locations. Cosmic-settings also need to be
updated for this.
2023-12-21 09:48:16 +01:00
Victoria Brekenfeld
d4d51192b5 sec_context: Fix None drm_node 2023-12-20 09:56:31 +01:00
FAlexei
20160403ac Add Russian translation 2023-12-18 13:23:45 +01:00
Ian Douglas Scott
6eb8b82440 Fix use of ImportNotifier
Somehow when updating to this API, I missed the call to `successful`.

This doesn't seem to make a difference for most clients since
`create_immed` is normally used. But should correct anything using
`create`.
2023-12-14 23:56:08 +01:00
Victoria Brekenfeld
a8b401b11d input: Only capture Escape, if a grab is active 2023-12-13 16:36:49 +00:00
Ian Douglas Scott
53de98a068 Fix build with debug feature 2023-12-13 00:08:30 +01:00
Ian Douglas Scott
f70d33d3cb Update Smithay; high-res scroll 2023-12-12 22:09:56 +01:00
Ian Douglas Scott
656996503c workspace-management: Implement move_to_workspace request
Needed for `cosmic-workspaces`.
2023-12-12 21:39:34 +01:00
Victoria Brekenfeld
75990ff056 menu: Add stack tab specific menu 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
58a024ba67 menu: Cleanup default items 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
1dfaef4874 stack: formatting cleanup 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
c90fff7177 shell: Fix rare animation glitch 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
2e08bde657 input: Allow Escape to cancel grabs 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
e347076145 move_grab: End correctly when removed externally 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
131ab8fe9e menu: Respect output bounds 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
02a6290067 xdg-shell: Fix menu offset 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
8c4d77e43c shell: Add window menu 2023-12-12 18:39:41 +01:00
Victoria Brekenfeld
edfb0edda7 grabs: Add ReleaseMode for menu-initiated grabs 2023-12-12 18:39:41 +01:00