Skip to content

Why only the active border? / hints on finding ALL visible windows. #57

@acidkewpie

Description

@acidkewpie

I may be missing a key point but I don't see why this only addresses the border of the active window. In my case I think I can use this to nicely deal with the fact it's impossible to not show, or at least allocate screen space for, a title bar of some form with stacked i3 tabs. it's possible to squish the title bar down to about 4px and then draw a border around the real window that overlap the space the title bar is drawn in, and make a stacked vs non stacked window look identical... I think...

Digging through code I've updated it to draw a border for every suitable window, but at present (and hopefully this post is the key to me immediately finding the solution somewhere else!) I see no way within the confines of wnck (i.e. sticking with your approach) to find which windows are actually visible on screen across multiple monitors. the "visible()" functions still show true if a workspace as a whole is not visible, and the "active_workspace()" ones naturally only return the active workspace, but all the top ones across the whole screen. There are various tools one could shell out to, but as you've managed to very nicely stay doing your think without doing so, I don't want to break that if possible!

Again, that you only look at the active window feels like my requirements (Well, I don't have requirements, I'm just playing around and amusing myself of course...) might just totally be missing with yours, and drawing ALL visible frames then naturally leaves having to deal with partially hidden frames and such... which could be ... fun... :-s

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions