GithubHelp home page GithubHelp logo

Cleaner approach to decorations about labwc HOT 4 CLOSED

xi avatar xi commented on June 16, 2024 1
Cleaner approach to decorations

from labwc.

Comments (4)

Consolatis avatar Consolatis commented on June 16, 2024 1

Nice write-up of the current situation, thanks for that.

I think one use-case missing in the above list is people that want to *always* have full SSD decorations around the windows, even if they additionally use client side ones.

Just throwing another random idea around: We do have the If action, we could add a query argument for the current SSD state, e.g. CSD|borders|full|none. That in combination with a SetDecorations action which directly addresses the different states should allow users to use it for any scenario they want.

Something like:

<!-- Use borders by default for non-csd views -->
<windowRule identifier="*">
	<action name="If">
		<query decorations="csd" />
		<else>
			<action name="SetDecorations" decorations="borders" />
		</else>
	</action>
</windowRule>

or

<!-- Use full decorations by default, even for CSD views -->
<windowRule identifier="*">
	<action name="SetDecorations" decorations="full" />
</windowRule>

from labwc.

Vladimir-csp avatar Vladimir-csp commented on June 16, 2024

Please add an option to preserve window size for SetDecorations and ToggleDecorations.

from labwc.

Consolatis avatar Consolatis commented on June 16, 2024

The window size (the underlying client generated surface) should be kept (unless the window is snapped to some edge / region or maximized), so I assume you are referring to modifying the window size when changing the SSD decoration state?

from labwc.

Vladimir-csp avatar Vladimir-csp commented on June 16, 2024

Yes. Preserve window's external dimensions.

from labwc.

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.