Coder Social home page Coder Social logo

Make CSDs optional/hidden by default about dwl HOT 8 CLOSED

djpohly avatar djpohly commented on August 23, 2024 6
Make CSDs optional/hidden by default

from dwl.

Comments (8)

djpohly avatar djpohly commented on August 23, 2024

Glad to see you're giving it a try! I'm all for canning CSDs in dwl - looking at xdg_decoration_manager from wlroots, I hope it won't be too complicated. Interested in putting together a PR?

from dwl.

cedws avatar cedws commented on August 23, 2024

I'll have a look but I can't promise anything - sadly don't know much about Wayland protocols or wlroots. I need to read Drew DeVault's book at some point.

from dwl.

Ordoviz avatar Ordoviz commented on August 23, 2024

For the moment you can disable the title bar in Firefox by navigating to Customize… in the menu and unchecking Title Bar.

from dwl.

cedws avatar cedws commented on August 23, 2024

@djpohly I see you made a commit for this 😃 I was struggling anyway, so thanks.
It doesn't appear to work yet, maybe it's still WIP. Comparing with cage's code, I think you need to call getxdecomode straight away in the createxdeco handler.

from dwl.

djpohly avatar djpohly commented on August 23, 2024

Ah, yep, the protocol description seems to indicate that we have to send an xdg_toplevel_decoration.configure event right away. Fixing now - thanks!

The recent commit added support for xdg_decoration. Firefox, however, appears to support only the older KWin server_decoration protocol (which is considered obsolete by wlroots). I still hope to support it in dwl, but it might be trickier to get working right.

from dwl.

cedws avatar cedws commented on August 23, 2024

Firefox, however, appears to support only the older KWin server_decoration protocol (which is considered obsolete by wlroots)

That's kind of strange, unless the xdg_decoration protocol is relatively new. If sticking with the suckless theme then maybe implementing support for server_decoration isn't worth it - but that has obvious downsides.

from dwl.

djpohly avatar djpohly commented on August 23, 2024

This is, I hope, fixed in commit 9071ce6. Could everyone test your variously decorated programs with the latest Git to see if client-side decorations still show up anywhere (and if they do, check sway as well)?

from dwl.

cedws avatar cedws commented on August 23, 2024

Sorry, would love to test it when I get time. You have probably validated it yourself too 👍

from dwl.

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.