Commit graph

996 commits

Author SHA1 Message Date
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
Ian Douglas Scott
39ebf39e4f Update libcosmic/iced 2024-03-22 21:54:45 +01:00
Victoria Brekenfeld
7234a81672 stack: Don't force constant redraws 2024-03-22 18:22:58 +01:00
Ryan Brue
3837e56382 floating mouse tiling: add corner tiling, implement designs 2024-03-22 17:04:57 +01:00
Ryan Brue
fc2173d028 feat: workspace switching touchpad gestures 2024-03-22 12:12:25 +01:00
Victoria Brekenfeld
f1d8225ddb kms: Disable frame time prediction (for now) 2024-03-21 17:49:30 +01:00
Victoria Brekenfeld
d341cb8b86 debug: Drop puffin integration 2024-03-21 17:49:06 +01:00
W
b5cbe0207f i18n(sr-Cyrl): Update translation 2024-03-21 13:18:03 +01:00
W
2d9f9a05f7 i18n(sr-Latn): Update translation 2024-03-21 13:18:03 +01:00
Ian Douglas Scott
a1c8b3aa3e Add support for profiling using tracy 2024-03-20 23:55:21 +01:00
Ryan Brue
929f4fcb05 fix: clamp mouse position just below output size 2024-03-20 17:44:50 +01:00
Ryan Brue
a4f3006313 feat: maximize/half tiling drag zones 2024-03-20 11:51:53 +01:00
Ian Douglas Scott
658a88da8c Fix building with debug feature 2024-03-19 10:47:37 +01:00
Louis Dispa
e625a22783
fix: Avoid crash on malformed keymap config (#361)
* fix: Crash on malformed config
* fix: Have default mappings when missing config

---------

Co-authored-by: Victoria Brekenfeld <4404502+Drakulix@users.noreply.github.com>
2024-03-18 11:36:33 +01:00
Victoria Brekenfeld
c685440155 theme: Revert theming of tiling overview (fix #347) 2024-03-11 17:07:39 +01:00
Victoria Brekenfeld
e959e4f1ac tiling: Fix flickering on overview (fix #345) 2024-03-11 16:18:49 +01:00
Victoria Brekenfeld
e3159f92d1 Fix #344 2024-03-11 16:06:15 +01:00
Victoria Brekenfeld
9cb1adb37c Fix #339 2024-03-07 19:07:29 +01:00
Victoria Brekenfeld
e7f746ccee shell: resize_request better handle tiled windows 2024-03-07 16:54:19 +01:00
Victoria Brekenfeld
20123927e0 shell: menu_resize handle sticky windows 2024-03-07 16:53:25 +01:00
Victoria Brekenfeld
36b759ea18 xwayland: Handle sticky windows on configure 2024-03-07 12:31:08 +01:00
Victoria Brekenfeld
153ed8d0a5 workspace: Re-maximize windows when changing tile mode 2024-03-07 12:22:39 +01:00
Victoria Brekenfeld
d65016b4d4 moving: Unset tiling-state after dragging to non-tiled output 2024-03-06 17:38:44 +01:00
Victoria Brekenfeld
01c69cb7ea shell: Unset resizing state properly 2024-03-06 16:29: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
a8846ed2b8 floating: Make sure new windows don't overflow output size 2024-03-05 16:55:30 +01:00
Victoria Brekenfeld
b1a4e1682c ssd: Add minimize button to header bar 2024-03-05 16:37:01 +01:00
Victoria Brekenfeld
e008437f59 tiling: Fix rendering of too small tiles 2024-03-05 13:54:41 +01:00
Victoria Brekenfeld
4695da04f9 tiling: Fix missing cursor offset for window geometry 2024-03-05 13:54:24 +01:00