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

Window storage rework - part 1 #5762

Merged
merged 8 commits into from
Apr 27, 2024
Merged

Window storage rework - part 1 #5762

merged 8 commits into from
Apr 27, 2024

Conversation

vaxerski
Copy link
Member

@vaxerski vaxerski commented Apr 27, 2024

Makes the storage of CWindow and its pointers memory-safe.

Breaks all plugins

part 2 will be moving events/Windows.cpp to members of CWindow

TODO:

  • Testing
  • Wiki (some events' params changed)

cc @fufexan (meson/nix)

Leave a 👍 if everything is working well

@vaxerski vaxerski force-pushed the main branch 2 times, most recently from 7110a04 to 25aec3a Compare April 27, 2024 02:17
@vaxerski vaxerski force-pushed the window-storage-rewrite-pt1 branch from 96c0110 to cf4b635 Compare April 27, 2024 02:18
@Ligthiago
Copy link
Contributor

hyprlandCrashReport1500.txt

Just moving windows

@vaxerski
Copy link
Member Author

should be fixed

@Ligthiago
Copy link
Contributor

yep 👍🏻

@Ligthiago
Copy link
Contributor

Ligthiago commented Apr 27, 2024

No crash, hypr just freeze and become irresponsible:

How to repro:

  1. Make group with 2 or more windows
  2. Set it float
  3. Move with mouse - it become glitchy and hypr just freeze

UPD: No, It's unrelated to this PR, happens in upstream.

@Agent00Ming
Copy link
Contributor

There might be a memory leak..?
image
I'll test some more in the morning (+6hrs). No crashes so far

@vaxerski
Copy link
Member Author

hm, curious, as I've briefly tested at least the windows being removed from all vectors. Maybe it's vram?

@vaxerski
Copy link
Member Author

ah, yea, found

@vaxerski
Copy link
Member Author

fixed

@vaxerski
Copy link
Member Author

alright, thanks everyone, merging :)

@vaxerski vaxerski merged commit bca7804 into main Apr 27, 2024
19 checks passed
@vaxerski vaxerski deleted the window-storage-rewrite-pt1 branch November 18, 2024 14:49
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