Commit graph

6678 commits

Author SHA1 Message Date
Ashley Wulber
14cefe034e fix(pane_grid): layout typo 2026-03-03 01:44:43 -05:00
Ashley Wulber
4516691f35 chore: update deps 2026-03-02 13:35:31 -05:00
Ashley Wulber
b479f3e87f fix: is_subsurface gated by wayland feature 2026-03-02 10:55:39 -05:00
mariinkys
0df654c14a fix: keyboard events fire twice 2026-03-02 10:28:52 -05:00
Hojjat
0424b4ae42 fix: pop up size not configuring correctly 2026-03-02 09:47:45 -05:00
Hojjat
4259b64bfc fix: tiny-skia rendering 2026-03-02 09:46:54 -05:00
Ashley Wulber
f7dc180371
fix: subsurface improvements
this fixes a couple issues in the greeter
2026-02-27 17:23:10 -05:00
Ashley Wulber
2a680eeb32
fix: do not scale position of rotated svg 2026-02-27 17:22:13 -05:00
Ashley Wulber
4f80a7ad9e
fix: text bounds calculation 2026-02-27 17:21:20 -05:00
Ashley Wulber
59fbf68c54
fix: clean up dnd rectangles reference to window on close 2026-02-25 17:47:30 -05:00
Ashley Wulber
73369a18eb
fix: more drag destinations 2026-02-23 16:36:45 -05:00
Ashley Wulber
86f985086f
chore: drag destinations for responsive widget 2026-02-23 14:50:01 -05:00
Ashley Wulber
686c6afb8d
fix(sctk): popup initial configure ack handling 2026-02-20 18:15:28 -05:00
Eduardo Flores
8cfe449315 fix(macOS): change super_key to meta_key for 'q' press
The super key was deprecated in favor of the meta key, adding this change to reflect that.
2026-02-20 17:20:49 -05:00
Ashley Wulber
c2739eed7c
fix: ellipsize 2026-02-19 22:49:48 -05:00
Hojjat
cc670e1966
feat: add Ellipsize to widgets 2026-02-19 22:36:03 -05:00
Jeremy Soller
f2ef716ad5
Add Ellipsize to buffer line layout 2026-02-19 22:02:34 -05:00
Ashley Wulber
c1edb81084
fixes: various fixes and cleanup 2026-02-19 17:01:13 -05:00
Ashley Wulber
b4346ff3ca
a11y refactor 2026-02-04 15:38:07 -05:00
Ashley Wulber
c40264a6ed
fix: wgpu panics 2026-02-04 15:37:28 -05:00
Ashley Wulber
37572b76f9
wip; wgpu fix
this avoids enumerating adapters if possible
2026-02-04 09:42:26 -05:00
Ashley Wulber
e2918e0de9
wip 2026-02-03 16:45:44 -05:00
Stephan Buys
a489a6b790
iced: propagate pane drag destinations 2026-01-28 14:18:29 -05:00
Frederic Laing
1fb7e08f23
fix Wayland layer-shell protocol violation: "must ack the initial configure before attaching buffer" 2026-01-28 14:10:58 -05:00
Hendrik Hamerlinck
9b636e281b
fix: prevent crashes from SVG rendering 2026-01-28 14:10:53 -05:00
Ashley Wulber
484aa0a532
fix: layer shell surface resize typo 2026-01-28 12:01:02 -05:00
Ashley Wulber
fd2220775b
fix: skip resize if size is unchanged 2026-01-28 12:01:02 -05:00
Ian Douglas Scott
70b9736dc7
iced/winit: Add surface id to OverlapNotify events 2026-01-28 12:01:02 -05:00
Ian Douglas Scott
49f1c2250b
winit/wayland: Add action to update layer shell input zone 2026-01-28 12:01:01 -05:00
Ian Douglas Scott
ea4f704f0f
winit/wayland: input_zone for layer, instead of pointer_interactivity
This is a more general version of the same thing, at matches what is
used for popups and subsurfaces.
2026-01-28 12:01:01 -05:00
Ian Douglas Scott
20e60ffde6
winit/wayland: Allow Vec for input_zone 2026-01-28 12:01:00 -05:00
Ian Douglas Scott
621713fe15
wayland: Fix handling of discrete/value120 scroll events
- Should test `!= 0`, not `> 0`; can scroll in either direction
- Test both vertical and horizontal
- Use `value120` scroll if present (in which case, discrete is 0)

I guess events should really have both line and pixel scroll, since some
widgets want to use the pixel scroll values for input devices that have
both? But I guess winit and Iced both need to be changed for that...
2026-01-28 12:01:00 -05:00
Ashley Wulber
329c4c0a84
fix(sctk): set_reactive on positioner if version allows 2026-01-28 12:00:33 -05:00
Ashley Wulber
7993a572b0
fix(wayland): window resize forces corner radius update 2026-01-28 11:59:57 -05:00
Ashley Wulber
bc85d82426
chore(wayland): window state handling 2026-01-28 11:59:26 -05:00
Ashley Wulber
e73bbddbca
feat(wayland): corner-radius protocol support 2026-01-27 17:17:08 -05:00
Ashley Wulber
54a69a0523
feat(wayland): shortcut inhibit 2026-01-27 17:00:24 -05:00
Ashley Wulber
8e7b7e586f
feat: subsurface reposition 2026-01-27 16:26:11 -05:00
Ashley Wulber
4eb7f9b2fe
fix(wayland popup): apply input region 2026-01-27 16:26:11 -05:00
Ian Douglas Scott
9e45bd2378
winit/sctk: Update cursor position on touch event
Ideally pointer should be seperate from touch, but this should match how
Iced handles input in normal winit windows.

d475ae5b45/winit/src/window/state.rs (L165-L170)

With this, touch input for applets seems to work as expected in general.
2026-01-27 16:26:10 -05:00
Ian Douglas Scott
5924fea0b1
Revert "subsurface_widget: Handle viewport and set source rectangle"
This reverts commit 15547dec8f83af1ea6dbed1964302400fc17c257 from
https://github.com/pop-os/iced/pull/227.

This is causing issues in `cosmic-workspaces`. It seems I didn't test it
properly outside the examples here... and this misinterpreted exactly
what the (undocumented) `viewport` argument means (Iced's `image` widget also
needed a fix to handle viewports properly since our fork:
https://github.com/iced-rs/iced/pull/2752).

It should be possible to fix, but revert for now.
2026-01-27 16:26:10 -05:00
Ian Douglas Scott
7a1f8b3472
examples/sctk_subsurface_img: Toggle image/subsurface with key 2026-01-27 16:26:10 -05:00
Ian Douglas Scott
58f6ea3f08
subsurface_widget: Handle viewport and set source rectangle
This is needed to crop subsurface when needed, instead of rendering
overlapping other things. And to offset while scrolling.
2026-01-27 16:26:09 -05:00
Ian Douglas Scott
d0b4d0e9c9
examples: Add sctk_subsurface_img
Test scrolling. Single color buffers in `sctk_subsurface` aren't good
for comparing it, and `sctk_subsurface_gst` isn't working on latest gst
with explicit sync (and AppSync isn't accepting the dmabuf when I try to
modify it.)
2026-01-27 16:26:09 -05:00
Ian Douglas Scott
5865264964
examples: Update gstreamer 2026-01-27 16:26:08 -05:00
Ian Douglas Scott
e702c43f71
examples: Update sctk_subsurface_gst to compile again 2026-01-27 16:26:08 -05:00
Ashley Wulber
29b41e9776
chore(sctk): reduce severity of log messages 2026-01-27 16:20:42 -05:00
Ashley Wulber
e4f8120eed
improv(sctk): setup error handling 2026-01-27 16:20:36 -05:00
Ashley Wulber
9668aeba1f
fix: nested popup destruction 2026-01-27 16:08:23 -05:00
Ian Douglas Scott
78153e6240
fix(winit): Cleanup surface_subsurfaces on parent window removal 2026-01-27 16:08:16 -05:00