Commit graph

1024 commits

Author SHA1 Message Date
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
1216cd0b67 Add unset method to input grab traits
Fixes https://github.com/pop-os/cosmic-comp/issues/403.
2024-04-15 18:53:09 +02:00
Ian Douglas Scott
d16a9e387d Remove outdated TODO comment 2024-04-15 11:37:03 +02:00
Ian Douglas Scott
f2efc5d56f shell: Fix MoveGrab with touch not on output pointer is on 2024-04-15 11:37:03 +02:00
Ian Douglas Scott
2c5c32ad4e shell: Fix resize grab unsetting 2024-04-15 11:37:03 +02:00
Ian Douglas Scott
2961291d26 shell: Fix moving floating windows with touch 2024-04-15 11:37:03 +02:00
Ian Douglas Scott
bddfba464c shell: Add touch support to ResizeSurfaceGrab
Seems to work well with GTK.
2024-04-15 11:37:03 +02:00
Ian Douglas Scott
1da3c7c41e shell: Touch support for ResizeForkTarget/ResizeForkGrab
This seems to be working, though it's quite difficult to actually hit the
small target with touch.
2024-04-15 11:37:03 +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
Ryan Brue
895ea6aec1 fix: send pending activated instead of current activated to toplevel_info 2024-04-11 16:30:03 +02:00
Victoria Brekenfeld
11a8265145 toplevel-info: Also send workspace info for new windows 2024-04-11 13:28:49 +02:00
Ryan Brue
f85911020a fix: reduce size of top snap range 2024-04-11 13:28:19 +02:00
Ian Douglas Scott
f83d80d471 Exclude DnD surfaces from workspace capture
Fixes https://github.com/pop-os/cosmic-workspaces-epoch/issues/25.
2024-04-11 12:36:03 +02:00
Ian Douglas Scott
2ff8a2d200 moving: Show snapping_indicator only on current output
Without this check, a floating window that is dragged near an edge
between monitors causes snapping indicators to show on both, since the
window intersects both.
2024-04-11 11:49:12 +02:00
Ian Douglas Scott
de544e1d31 Update smithay to latest commit 2024-04-09 11:26:36 +02:00
Jeremy Soller
dd970b8c64 Use loginctl lock-session instead of running cosmic-greeter 2024-04-08 09:43:17 -06: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
Ian Douglas Scott
7cd13ec6a9 Correctly handle window geometry loc in Focus::under
`Focus::under` replaced code in 4 places, that were inconsistent in how
they handled this. This seems to be more correct, in each case.
2024-04-02 17:12:28 +02:00
Ian Douglas Scott
418954a34b Fix SSD width to use toplevel "geometry"
We really need to do something about the term "geometry" being
overloaded.
2024-04-02 17:12:28 +02:00
Ian Douglas Scott
c957d673ba CosmicStack: Share Focus type with CosmicWindow
There's probably more duplicated logic that can be abstracted, but this
removes a bit of redundancy at least.
2024-04-02 17:12:28 +02:00
Ian Douglas Scott
26d2556be0 Initial touch support for SSD 2024-04-02 17:12:28 +02:00
Ian Douglas Scott
18d48665ef CosmicWindow: Define Focus::{under, cursor_shape}
Handling of `PointerTarget::motion` should be unchanged.
`PointerTarget::enter` previously was comparing `loc - geo` rather than
`loc`. The generic version could accommodate that, but I assume this was
incorrect, and the position sent to `enter` wasn't handled correctly.
2024-04-02 17:12:28 +02:00
Ian Douglas Scott
d34662661b CosmicWindow: Use Option<Focus> instead of a Focus::None
Slighter harder to convert to a `u8`, but allows matching over only the
non-None variants, and is more idiomatic.
2024-04-02 17:12:28 +02:00
Ian Douglas Scott
9e5ce71e1c Run cargo fmt 2024-04-02 17:12:28 +02:00
Victoria Brekenfeld
e287af1f84 chore: Update smithay 2024-04-02 16:07:41 +02:00
Victoria Brekenfeld
3da08ed22d stack: Adjust decorations to window geometry 2024-03-28 18:21:44 +01:00
Victoria Brekenfeld
10940a723f floating: Don't drop stack on themselves 2024-03-28 17:25:09 +01:00
Victoria Brekenfeld
6416299d58 shell: Send on_commit to sticky windows as well 2024-03-28 13:10:28 +01:00
Victoria Brekenfeld
b371a26362 shell: Fix surface_under for sticky windows as well 2024-03-28 13:10:10 +01:00
Victoria Brekenfeld
62e82837f7 Don't consider gestures animating. Fixes #391 2024-03-28 12:34:46 +01:00
Victoria Brekenfeld
daf669e656 Fix Text for the floating stacks hint is gone #387 2024-03-27 18:10:33 +01:00
Victoria Brekenfeld
5449858e70 Fix #385 2024-03-27 17:48:50 +01: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
Ian Douglas Scott
4579cca6fa Fix Workspace::minimize for tiled fullscreen applications
Using `is_tiled()` here doesn't work for fullscreen windows, since
`is_tiled()` returns `false` for them.

This (plus the previous changes for supporting minimize) seems to fix
the behavior of `SDL_MINIMIZE_ON_FOCUS_LOSS` in XWayland applications
(https://github.com/pop-os/cosmic-comp/issues/231). Wine had a similar
issue, though I haven't tested it yet.

It doesn't seem ideal visually that the fullscreen window becomes tiled
then minimized itself, but that's less of a problem.

May need to check if this is an issue with any other uses of `is_tiled()`
or `is_floating()`.
2024-03-26 09:28:18 +01:00
Victoria Brekenfeld
b40d153809 cosmic-screencopy-v2 2024-03-25 16:55:31 +01:00
Victoria Brekenfeld
973cfed87b shell: Handle unmapped windows correctly 2024-03-25 12:51:01 +01:00
Victoria Brekenfeld
aaa40df963 stack: Fix crash by (temporarily) ignoring assert 2024-03-25 12:51:01 +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
Victoria Brekenfeld
55eb2fe88e xwayland: Globally track stacking order 2024-03-25 12:51:01 +01:00
Victoria Brekenfeld
6858238bd6 shell: Unify element_for_(x11_|wl_)surface 2024-03-25 12:51:01 +01:00
Muha Aliss
dbe2a073ef Turkish translation added 2024-03-25 12:50:31 +01:00
MrKomodoDragon
272fd5b719 Add the XF86AudioMicMute keyboard event to config.ron 2024-03-23 07:41:54 -06:00
Ian Douglas Scott
f53e5a971d Optimize tiny-skia, rustybuzz, tty-parser in dev builds
Cosmic-comp seems to spend a lot of CPU time here, particularly in debug
builds. The Iced tiny-skia render probably could use some optimization,
but it's expected that software rendering without optimization will
perform quite poorly.

Optimizing just these crates doesn't seem to add measurably to build
time but does help noticeably.
2024-03-22 21:54:45 +01:00