Git Product home page Git Product logo

Comments (3)

ItsDrike avatar ItsDrike commented on August 27, 2024

Hi, thanks for reporting this, I've been aware of it for a while, just haven't had time to investigate it before.

After bisecting, I was able to track this down to bca7804b, where vaxry completely rewrote CWindow pointers to make them memory safe, breaking all plugins in the process.

I did attempt to fix it, but I'm not very familiar with smart pointers in C++ and this breaks pretty much all functions in the plugin, as we use CWindow a lot, so there's dozens of errors. That means this will likely require a significant rewrite. If you feel up to it, I will accept a PR with a fix, otherwise, this will probably take a while.

from hyprland-dwindle-autogroup.

seratg avatar seratg commented on August 27, 2024

I see, thanks for the hints!

I could probably look into it on the weekend.

Cheers.

from hyprland-dwindle-autogroup.

ItsDrike avatar ItsDrike commented on August 27, 2024

Hey, after some work, I managed to push f526bed, which at least gets the plugin to build with 0.40.0, however it's far from usable.

The grouping behavior sometimes just doesn't work. This is consistent for each window where it didn't work. Based on the logs, it seems to be because that window has a deny flag set for groupping. However, this flag shouldn't be set for it, and when the plugin is unloaded, groupping works, even though this deny flag check is actually only present in Hyprland's original createGroup function, which this plugin just calls, so I'm very confused with what's going on with that.

Additionally, while ungroupping with just a single window does seem to work, if you try and ungroup multiple windows, Hyprland will crash completely. Based on logs, this crash seems to be occuring somewhere in the logic for collecting dwindle nodes, which however doesn't make sense to me, as this logic shouldn't be any different from what it originally was.

Probably just needs some more in depth debugging here, I will take a better look at this at some point, but no promises on when. Of course, if you want, you can still do the PR fixing this, I might get to this before the weekend, but if not, feel absolutely free to tackle it.

from hyprland-dwindle-autogroup.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.