Update SCTK to 0.11.0#1653
Conversation
3dd77d6 to
e284cfe
Compare
|
I tested this out, it seems window decorations won't show up at all, and while fullscreen now works the first time you press it, exiting it dosen't restore the window size/position correctly (2nd half of #1601). Gnome 3.36.4/Wayland. |
I'm aware of all the issue on GNOME here, please wait a bit, since I've fixed them already. Just they haven't reached that branch. You can track them by the patches I've sent here https://github.com/smithay/client-toolkit/pulls I'll ping once I'd say that everything is good to test as well as I've ping the issues I'm closing. For now it's hard to test without all the patches I've sent upstream being applied at the same time. |
e284cfe to
482da39
Compare
|
The major part of patches that I've send upstream was merged. I've finished winit part and created a branch for testing this changes in alacritty/alacritty#4140. If you'll find any issues with that branch let me know. |
chrisduerr
left a comment
There was a problem hiding this comment.
Just some minor bikeshedding about the changelog entries.
Amazing work!Issues:
|
|
Could you check what the size is https://github.com/rust-windowing/winit/pull/1653/files#diff-65ea0109d004c94225653a3937f9c145R97-R100 here? It'll be strange if |
|
Sorry, I'm not sure what your link is supposed to show. |
|
Also, please document that |
Have you seen that https://github.com/kchibisov/winit/blob/7d05df985eb61f777d5806778f7bab1b838e96d6/src/platform/unix.rs#L474 ? |
|
Ah that's good, I was looking at the stable docs for winit I think, my bad. |
|
Another bug: When setting the Theme, the title doesn't show. I tried overriding title_color(), but it changes the button's icons color instead. |
Minus is for the "normal" key while Subtract is for the keypad. Unfortunately I believe not all platforms are aware of this leading to an inconsistent mess. I believe X11 does this wrong for example, even though the keycode names sent by X11are called "minus" and "subtract". |
That's a very old bug, I'm not sure that it ever worked correctly. |
Could you recheck size again? |
c1864f1 to
a141f0c
Compare
|
Ah, it looks like the default theme uses ("sans", 17.0). Maybe the Theme trait should copy that. |
a141f0c to
d831957
Compare
|
Well I made some custom scenarios with |
Thanks. |
53c36ca to
1590826
Compare
|
This is last item for 0.23 release, seems need rebase, but otherwise, nothing is left before merge? |
It's missing a 'review'. At least source level review should be performed. I actually have a bit more Wayland patched pending, which I want to have in 0.23 as well... |
Updates smithay-client-toolkit to 0.11.0. The major highlight
of that updated, is update of wayland-rs to 0.27.0. Switching
to wayland-cursor, instead of using libwayland-cursor. It
also fixes the following bugs:
- Disabled repeat rate not being handled.
- Decoration buttons not working after tty switch.
- Scaling not being applied on output reenable.
- Crash when `XCURSOR_SIZE` is `0`.
- Pointer getting created in some cases without pointer capability.
- On kwin, fix space between window and decorations on startup.
- Incorrect size event when entering fullscreen when using
client side decorations.
- Client side decorations not being hided properly in fullscreen.
- Size tracking between fullscreen/tiled state changes.
- Repeat rate triggering multiple times from slow callback handler.
- Resizable attribute not being applied properly on startup.
Besides those fixes it also adds a bunch of missing virtual key codes,
implements proper cursor grabbing, adds right click on decorations
to open application menu, disabled maximize button for non-resizeable
window, and fall back for cursor icon to similar ones, if the requested
is missing.
It also adds new methods to a `Theme` trait, such as:
- `title_font(&self) -> Option<(String, f32)>` - The font for a title.
- `title_color(&self, window_active: bool) -> [u8; 4]` - The color of
the text in the title.
Fixes rust-windowing#1680.
Fixes rust-windowing#1678.
Fixes rust-windowing#1676.
Fixes rust-windowing#1646.
Fixes rust-windowing#1614.
Fixes rust-windowing#1601.
Fixes rust-windowing#1533.
Fixes rust-windowing#1509.
Fixes rust-windowing#947.
c00020f to
3a71b3f
Compare
This commit implemenets IME handling via text-input-v3 protocol and so winit's IME related interfaces are now implemented. Fixes rust-windowing#952.
3a71b3f to
d6486a9
Compare
|
I've also added IME handling via text input v3, if someone out side of the GNOME can test it, it'll be nice. On GNOME it's hard to test it, since GNOME bugs quite a lot with text-input from my testing, even though I handle every event correctly. GTK apps are working 'kind of fine', because they are not using text-input-v3, but some side channel, like XIM. |
Previously WinitState was carrying a lot of inner mutable data, however we can put entire WinitState into 'Rc<RefCell<_>>' to avoid extensive borrows in callback processing.
84bcb2d to
dee6e42
Compare
5974868 to
a2fc19b
Compare
|
|
I've noticed that already, will fix when will be addressing the pending review. |
chrisduerr
left a comment
There was a problem hiding this comment.
I don't like the theme's foreground flag, since it's not entirely clear and thus makes things a bit difficult, but I don't have any concrete suggestions to improve it.
But since changing that would likely be breaking, it probably makes sense to think about that again.

Updates smithay-client-toolkit to 0.10.0. The major highlight
of that updated, is update of wayland-rs to 0.27.0. Switching
to wayland-cursor, instead of using libwayland-cursor. It
also fixes the following bugs:
XCURSOR_SIZEis0.client side decorations.
Besides those fixes it also adds a bunch of missing virtual keycodes,
implements proper cursor grabbing, adds right click on decorations
to open application menu, and fall back for cursor icon to similar ones,
if the requested is missing.
It also adds new methods to a
Themetrait, such as:title_font(&self) -> Option<(String, f32)>- The font for a title.title_color(&self, window_active: bool) -> [u8; 4]- The color ofthe text in the title.
Fixes #1680.
Fixes #1678.
Fixes #1676.
Fixes #1646.
Fixes #1614.
Fixes #1601.
Fixes #1533.
Fixes #1509.
Fixes #947.