Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify wayland configure event #5780

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tmccombs
Copy link
Contributor

@tmccombs tmccombs commented Jul 4, 2024

Remove the unnecessary PendingEvent struct, and just call functions directly. I think this is easier to reason about, and fits better with the current architecture of SCTK 0.17

Remove the unnecessary PendingEvent struct, and just call functions
directly. I think this is easier to reason about, and fits better with
the current architecture of SCTK 0.17
Copy link
Owner

@wez wez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

On startup, the border frame now matches the window dimensions under weston (which may be a more general side effect of the sctk upgrade, I didn't try to run down when that happened).

However, when I resize the window, it appears to be 1 cell out of sync:

image

is that something that is logically part of this PR? weston only seems to allow me to resize either horizontally or vertically, so I wonder if this is related to the TODO comment about width+height only triggering some work somehow?

window/src/os/wayland/window.rs Show resolved Hide resolved
@tmccombs
Copy link
Contributor Author

is that something that is logically part of this PR?

that is definitely not intentional.

My commit to handle the case where only one dimension is given doesn't seem to help. I'm not sure what the actual problem is yet. Interstingly, I don't get the same problem if I run it in floating mode in sway, and resize it. I'm not sure what the difference is. Maybe sway doesn't let the client resize the window itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants