GithubHelp home page GithubHelp logo

Comments (3)

t-wissmann avatar t-wissmann commented on September 21, 2024 1

Implementing it is not so easy as one may think. You need to add a Client* transientFor = nullptr; attribute in client.h. Then, in Client::init_from_X(), you need to read the WM_TRANSIENT_FOR property and save the result in transientFor. Then, in the implementation of parentcenter, one can place it in the center of transientFor->last_size_. (the above description is just a sketch)

from herbstluftwm.

t-wissmann avatar t-wissmann commented on September 21, 2024

Hi, I think it is only possible by implementing it directly in hlwm's source code (something like floatplacement=parentcenter)

from herbstluftwm.

kriansa avatar kriansa commented on September 21, 2024

I see. I'll try to take a stab at it this weekend and see how it goes. I was just reading the code and it doesn't seem complicated, although I'm not experienced with X or Xlib. I was looking at client.cpp class and I couldn't find a way to easily get the "parent window" (if that concept even exists), would you help me pointing out where should I look to get that?

Edit: There's a reference for parent_frame. For tiling windows that will suffice, but floating ones would have no frames, right?

from herbstluftwm.

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.