Git Product home page Git Product logo

Comments (7)

VuiMuich avatar VuiMuich commented on June 9, 2024

Welcome fellow adventurer!

Thanks for reporting this, could you fill us in with some details about OverrideRedirect in xmobar, or provide a link to the related docs? That would be great.

from leftwm.

Sofa44 avatar Sofa44 commented on June 9, 2024

No worries!

Here is the quick-start documentations: https://codeberg.org/xmobar/xmobar/src/branch/master/doc/quick-start.org
Here is where you would find info about OverrideRedirect: https://codeberg.org/xmobar/xmobar/src/branch/master/doc/quick-start.org#user-content-headline-9

It states in the doc:
overrideRedirect If you're running xmobar in a tiling window manager, you might need to set this option to False so that it behaves as a docked application. Defaults to True.

from leftwm.

Souliboi avatar Souliboi commented on June 9, 2024

Bumping this by adding that it causes a memory leakage in the leftwm-worker like discussed in the Discord server and high CPU usage on NixOS with the upstream flake

from leftwm.

Sofa44 avatar Sofa44 commented on June 9, 2024

So how would I go about fixing the memory leakage?

from leftwm.

VuiMuich avatar VuiMuich commented on June 9, 2024

So how would I go about fixing the memory leakage?

A quick workaround might be to leave it on true und set gutters in your theme.

To actually debug, I would start reading the code behind overrideRedirect to get an idea, where it interacts with X11 and next what the interaction ist with it set to false.
In our code base you could follow the command flow of a dock type window, but the information from the above research might help to find the entry point.

Iirc there are some measures against getting into in unfortunate update loop inside the main loop of leftwm-worker, probably the way xmobar "enforces" Dock window type circumvents those.

If you would be interested in fixing this bug, this would be most appreciated!

from leftwm.

Sofa44 avatar Sofa44 commented on June 9, 2024

Sorry for the late reply!

Honestly, school just started, and I probably won't have time for that. I'll try and see if I can find a solution, but I'll probably either set the gutter/margin like you said, or make a script that can toggle it (BTW quick question; Is it possible to change the gutter through a key-map or a command while running leftwm?)

I'll give an update if I find some sort of fix or what the problem is. If not, I'll post my workaround. Thanks

from leftwm.

VuiMuich avatar VuiMuich commented on June 9, 2024

Honestly, school just started, and I probably won't have time for that. I'll try and see if I can find a solution, but I'll probably either set the gutter/margin like you said, or make a script that can toggle it (BTW quick question; Is it possible to change the gutter through a key-map or a command while running leftwm?)

You can bind LoadTheme as an external command to switch between a themefile with and without gutters, or put that in your toggle script.

from leftwm.

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.