Commit graph

6744 commits

Author SHA1 Message Date
Lcstyle
d7595fab95 fix: bootstrap FrameStatus on session lock surface configure
The session lock configure handler was missing receive_frame() and
request_redraw() calls that the layer surface configure handler has.
Without these, after S3 resume or DPMS wake, the FrameStatus entry
for lock surfaces could be missing, causing the rendering gate to
never reach Ready state — resulting in permanently grey lock screens.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-07 12:40:09 -04:00
Ashley Wulber
e000c71ff2 fix: send redraw request after events
creation events must be handled before processing redraws
2026-05-07 17:39:02 +02:00
edwloef
3928e0d385 wgpu: request devices with SHADER_F16 feature 2026-04-27 15:03:07 +02:00
Hojjat
90d2c418a7 chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
KENZ
aa2a870c35 fix: Forward wayland IME events in SCTK only when single-instance
Some checks failed
Audit / vulnerabilities (push) Has been cancelled
Test / all (ubuntu-latest, 1.88) (push) Has been cancelled
Build / todos_linux (push) Has been cancelled
Build / todos_windows (push) Has been cancelled
Build / todos_macos (push) Has been cancelled
Build / todos_raspberry (push) Has been cancelled
Check / wasm (push) Has been cancelled
Check / widget (push) Has been cancelled
Test / all (ubuntu-latest, beta) (push) Has been cancelled
Document / all (push) Has been cancelled
Format / all (push) Has been cancelled
Lint / all (push) Has been cancelled
Test / all (macOS-latest, 1.88) (push) Has been cancelled
Test / all (macOS-latest, beta) (push) Has been cancelled
Test / all (macOS-latest, stable) (push) Has been cancelled
Test / all (ubuntu-latest, stable) (push) Has been cancelled
Test / all (windows-latest, 1.88) (push) Has been cancelled
Test / all (windows-latest, beta) (push) Has been cancelled
Test / all (windows-latest, stable) (push) Has been cancelled
feature enabled
2026-04-18 16:12:59 -04:00
Ian Douglas Scott
8f10a3bd34 winit: Set WindowAttributesWayland without cctk feature
There doesn't seem to be any reason for this to require the `cctk`
feature?

Fixes the app ID, and therefore icon, for `cosmic-sync-gui`.
2026-04-16 12:59:35 -06:00
boloto1979
64b97077b7 fix(wayland): add mouse cursor entered event to SctkEvent 2026-04-16 12:27:46 -04:00
Ashley Wulber
13b8d3eab6 fix: just use 0 for position of blur rectangle 2026-04-14 23:21:27 -04:00
Ashley Wulber
1bf1e33317 improv(wayland): handle capabilities for ext_background_effect 2026-04-14 18:21:36 -04:00
Ashley Wulber
d2b2715835 feat: ext-background-effect blur 2026-04-14 18:21:36 -04:00
Hojjat
78caabba7e fix: load image synchronously if no callback is set
Some checks failed
Audit / vulnerabilities (push) Has been cancelled
Check / wasm (push) Has been cancelled
Check / widget (push) Has been cancelled
Document / all (push) Has been cancelled
Format / all (push) Has been cancelled
Lint / all (push) Has been cancelled
Test / all (macOS-latest, 1.88) (push) Has been cancelled
Test / all (macOS-latest, beta) (push) Has been cancelled
Test / all (macOS-latest, stable) (push) Has been cancelled
Test / all (ubuntu-latest, 1.88) (push) Has been cancelled
Test / all (ubuntu-latest, beta) (push) Has been cancelled
Test / all (ubuntu-latest, stable) (push) Has been cancelled
Test / all (windows-latest, 1.88) (push) Has been cancelled
Test / all (windows-latest, beta) (push) Has been cancelled
Test / all (windows-latest, stable) (push) Has been cancelled
2026-04-13 21:59:23 +02:00
Mateusz Mikuła
044496f652 Sort using more deterministic algorithm
`hypot` while useful for most of the cases, may break sorting
assumptions like deterministic comparison.
As seen in: https://github.com/pop-os/cosmic-launcher/issues/352

Add and use a new method that trades the performance for more
determinism.
2026-04-13 10:36:11 -04:00
Hojjat
fc6b46342b feat: dnd destination for stack widget 2026-04-10 22:13:43 -04:00
Ian Taylor
37f7eab8a3 Fix bounds check
Previous behavior: images larger that 2048px would have their bottom
right corners transparent because the info didn't get uploaded to the
GPU
2026-04-10 08:58:26 -04:00
Hojjat
7fd263d99e chore: update cosmic-text
Basic shaping falls back to the default SansSerif font if glyphs are
missing
2026-04-06 10:11:59 -04:00
Hojjat
ed9ad80e18 fix: if there's only one focusable item, don't unfocus 2026-04-03 18:59:41 -04:00
Hojjat
42fd5c76bb feat: focus wrap-around
The tab cycles around when we reach the last focusable
2026-04-03 18:59:41 -04:00
Ashley Wulber
2d4ede1597 Revert "chore: use crate for softbuffer"
This reverts commit 375b24c3c4.
2026-04-02 22:50:29 -04:00
Hojjat
42e3afb568 fix: double negative causing windows to never become ready 2026-04-01 21:59:58 -04:00
KENZ
84f3210819 Use base colors iff program style's background color is not opaque for IME preedit 2026-04-01 17:19:38 -04:00
KENZ
594ed5cfbe fix: Forward DeleteSurroundingText event in wayland backend 2026-04-01 17:18:08 -04:00
KENZ
d0ef1f9e85 Implement IME-related methods of SctkWinitWindow for apps using single-instance feature
- At least, following apps are using `single-instance` feature:
  - cosmic-launcher
  - cosmic-app-library
- Once libcosmic text widgets supported the IME, these apps start hitting following methods of SctkWinitWindow which is `todo!()` and will crash at startup:
  - `set_ime_cursor_area()`
  - `set_ime_allowed()`
  - `set_ime_purpose()`
- So, this PR implements these method utilizing following wayland protocols.
  - zwp_text_input_v3
  - zwp_text_input_manager_v3
2026-04-01 17:18:08 -04:00
Ashley Wulber
e4da5002ae fix: a11y_ready state for sctk surfaces 2026-04-01 17:12:17 -04:00
Vukašin Vojinović
04c273a79b chore: add functions for row/column
This matches the libcosmic ones (e.g `row::with_children()`, instead of `Row::with_children()`).
2026-04-01 20:31:22 +02:00
Hojjat
f141c3ce5c fix: support Unicode/non-ASCII scripts in combo_box search 2026-04-01 12:59:26 -04:00
Hojjat
9b2857083e feat: Add rtl support to text input 2026-04-01 12:59:26 -04:00
Hojjat
de2982b37e chore: update cosmic-text 2026-04-01 12:59:26 -04:00
Ashley Wulber
e981b9c312 fix: rustix fs feature 2026-04-01 12:42:44 -04:00
Vukašin Vojinović
375b24c3c4 chore: use crate for softbuffer
This matches upstream iced, and all the things from that tag seem to already be upstream in `softbuffer`.
2026-04-01 10:22:16 -04:00
Hojjat
be453292c6 chore: Update to the latest cosmic-text 2026-03-31 14:54:53 -04:00
Hojjat
bc40cde8cb fix: do not subtract the scroll twice, causing highlight mis-alignment 2026-03-31 14:54:53 -04:00
Hojjat
e1fc659e64 fix: use highlight and cursor from cosmic-text editor
This fixes RTL text in the text_editor widget.
2026-03-31 14:54:53 -04:00
Ashley Wulber
1fdd24ab99 fix: feature gates 2026-03-30 18:47:47 -04:00
Ashley Wulber
d4b0c0482b fix: ensure adapter is created before window is marked visible 2026-03-30 18:47:47 -04:00
Ashley Wulber
5fa8b72a21 fix: mark window ready after adapter created 2026-03-30 18:47:47 -04:00
Ashley Wulber
3b7f0bec0e chore: cleanup platform specific code 2026-03-30 18:47:47 -04:00
Hojjat
a11b828280 Fix RTL relayout being skipped for single-line text 2026-03-26 17:11:26 -04:00
Ashley Wulber
f59d5354bf increment surface version after sync 2026-03-23 20:16:37 -04:00
Ashley Wulber
9b94ee3ec4 fix: scale 2026-03-23 19:12:21 -04:00
laniakea64
c82058e73e fix(markdown): export fields of Row 2026-03-23 13:02:23 -04:00
KENZ
a9bcb00529 Fix the candidate window position of fcitx5 which does't work well with winit's set_ime_cursor_area() 2026-03-23 10:35:45 -04:00
laniakea64
716c75da3f fix(rule): allow changing thickness after creation 2026-03-23 08:18:58 -04:00
Hojjat
70f54c994a feat: add resize() to paragraph 2026-03-20 18:22:51 -04:00
Ashley Wulber
a3a434ac92 fix(wgpu): bounds check for images 2026-03-19 18:24:06 -04:00
wiiznokes
2d41248288 fix windows build 2026-03-18 09:11:54 -04:00
Ashley Wulber
51b0411026 fix(viewport): must use logical size when scale changes 2026-03-17 20:49:44 -04:00
Hojjat
7491547d70 fix(iced): handle scroll events 2026-03-16 15:57:15 -04:00
Hojjat
9b0ebf30bb fix(iced): route all pointer events through SctkEvent::PointerEvent 2026-03-16 15:57:15 -04:00
Ashley Wulber
d79181f443 fix: transform of tiny-skia rotation
reverts changes from upstream that have broken svg rotation
2026-03-16 14:22:56 -04:00
laniakea64
842e3e432c fix(markdown): support the syntax for line breaks inside table cells 2026-03-16 10:14:34 -04:00