Giter Site home page Giter Site logo

Comments (5)

numirias avatar numirias commented on June 28, 2024

Thanks for reporting!

I think I found a way to reproduce the bug. Will let you know when I got it fixed.

from qtile-plasma.

numirias avatar numirias commented on June 28, 2024

The bug was triggered when windows were added to the layout but the layout's configure() had not yet been called. In that case the screen dimensions were still unknown to the layout and it tried to do math with None values.

Do you mind checking if the patch fixes the problem for you?

from qtile-plasma.

flacjacket avatar flacjacket commented on June 28, 2024

from qtile-plasma.

numirias avatar numirias commented on June 28, 2024

@flacjacket I first thought so, too. But there are legitimate cases where it can happen:

If you have set multiple layouts in your config, say layouts = [VerticalTile(), Plasma()], every time you spawn a new window, the add() method is called on all layouts, even the inactive ones. But configure() is only called on the active one. So the inactive layouts don't know the screen dimensions until they become active.

from qtile-plasma.

nazar-pc avatar nazar-pc commented on June 28, 2024

#11 works for me

from qtile-plasma.

Related Issues (17)

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.