Coder Social home page Coder Social logo

Comments (5)

guotsuan avatar guotsuan commented on July 2, 2024

Sorry for the later reply. I tried the awesome from the latest master branch. I have no problems with restoring the clients in floating. However, I think it could happy, because there could be some properties of those clients are not saved by revelation. Therefore those properties will not be restored. Do you give some specific properties to the floating layout?

from awesome-revelation.

ShadOoW avatar ShadOoW commented on July 2, 2024

Hello,

I've installed this just today, and faced same problem, it easly fixable.
So the idea (PS: all this is just my guessing :D) is that you check if client is "floating" then you save it geometry, but clients in floating layout are not floating! and those when you restore them, you restore them without geometry!

             --if awful.client.floating.get(c) then
                clientData[c]["geometry"] = c:geometry()
                flt = awful.client.property.get(c, "floating")
                if flt ~= nil then
                    clientData[c]["floating"] = flt
                    awful.client.property.set(c, "floating", false)
                end

            --end

So just comment this IF / END in "match_clients" function

PS: I don't get why geometry gets a special if, revelation shoudn't worry about this things, it should just restore EVERYTHING, without worying about "floating".

from awesome-revelation.

guotsuan avatar guotsuan commented on July 2, 2024

Hi @ShadOoW ,

Thanks for the solution. It seems to work. Just let me test for a few days.

I agree with you it is better than revelation just restore everything and shouldn't worry about these things. But revelation works by collecting all clients into 'revelation' tag. the geometry of clients are changed when then fit into the 'revelation' tag. After restoring everything. The geometry of clients usually can be arranged by the layout (for most layouts such as tile). But for floating layout, there is no such arrange function. If revelation did not store the geometry of clients, the geometry of clients restored to floating layout is wrong, since the floating layout does nothing!

Cheers,

from awesome-revelation.

ShadOoW avatar ShadOoW commented on July 2, 2024

Hi @guotsuan sorry for repeating, just to clarify:

if Revelation saves all geometry and then restores all geometry this will have the following effect:
-In floating layout: we get back client size.
-In other layout: geometry is ignored and it won't matter if it was restored or no.
-floated clients in other layout: will have their original size back.

Conclusion: unless i misunderstood something, it seems like that if statement is actually not needed? I've tested this 3 use-cases for 3 days, didn't notice any bug.

Thank you for maintaining this awesome project!

from awesome-revelation.

guotsuan avatar guotsuan commented on July 2, 2024

Hi,

Thanks for all the test. I'm convinced that restore all geometry should be ok. However let me know if you see anything weird happen.

from awesome-revelation.

Related Issues (20)

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.