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

fix(runtime-wry): window edge not working after setting resizable false and decorated false dynamically #10211

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

Legend-Master
Copy link
Contributor

@Legend-Master Legend-Master commented Jul 6, 2024

Not sure if it's related with #10205

after setting resziable false and decorated false dynamically
@Legend-Master Legend-Master requested a review from a team as a code owner July 6, 2024 03:23
@Legend-Master
Copy link
Contributor Author

I'm not sure if we also want to disable it on fullscreen and maximize or is it something the user should do manually

@FabianLars
Copy link
Member

I'm not sure if we also want to disable it on fullscreen and maximize or is it something the user should do manually

I think we used to do that 🤔

@Legend-Master
Copy link
Contributor Author

Legend-Master commented Jul 6, 2024

Looking at the code it seems to be handled by amr's code already, didn't test it though seems like it's working

"tauri-runtime-wry": "patch:bug"
---

Fix window edge not working after setting resizable false and decorated false dynamically
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure I understand the problem, if decoration is false and resizable is false, window edge should not work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shouldn't the edges of an undercoated window with resize disabled receive events and being clickable?

Copy link
Member

Choose a reason for hiding this comment

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

yeah it should, is it not receiving these events?

Copy link
Contributor Author

@Legend-Master Legend-Master Jul 8, 2024

Choose a reason for hiding this comment

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

no, that part is blocked by the top level resize window and not interactable at all

Copy link
Member

Choose a reason for hiding this comment

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

ah I see where the bug is, I will push a better fix

Copy link
Member

Choose a reason for hiding this comment

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

@Legend-Master could you give 14af33b a test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't seem to work, after setting both resize and decoration to false, the entire window becomes not interactable

Copy link
Member

@amrbashir amrbashir Jul 8, 2024

Choose a reason for hiding this comment

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

I retested and seemed like I can click just fine, outside and inside the resize region.

Copy link
Member

Choose a reason for hiding this comment

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

nvm, I was mislead by the hover effect, I reverted my changes

Copy link
Member

Choose a reason for hiding this comment

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

kinda weird that HTTRANSPARENT didn't work, will need to research it more I guess. Your solution is fine for now.

@amrbashir amrbashir merged commit afb102c into tauri-apps:dev Jul 8, 2024
36 checks passed
@Legend-Master Legend-Master deleted the resize-false-undecorated branch July 8, 2024 13:51
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.

3 participants