Comments (3)
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.
Hi, I think it is only possible by implementing it directly in hlwm's source code (something like floatplacement=parentcenter
)
from herbstluftwm.
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)
- smart_window_surroundings and tabbed_max settings conflict with each other HOT 4
- `settings.focus_follows_mouse` should be called `settings.sloppy_focus` HOT 3
- option to make `smart_window_surroundings` only hide if there is only one window on a tag
- Numpad keys binding ? HOT 4
- How do I use conky/any desktop widgets? HOT 2
- Window with em-dash in title causes missing `focus_changed` hook (xconnection.cpp: 347: Can not create text list) HOT 2
- Move window to previous tag HOT 2
- rule to close window HOT 2
- Move floating window in single axis only? HOT 2
- focus seems odd after using a flameshot
- Client border not cleared when urgent client is focused
- Unable to move floating window if sent to another tag while still moving
- Typing in unmanaged window HOT 3
- q3terminal script does not show an empty frame HOT 4
- I would like to be able to use non-english letters (German Umlauts) in keybindings HOT 2
- Move client to tag? HOT 2
- Emacs does not show tabs in initial frame HOT 3
- Moving tabbed windows within the tabbed_max layout HOT 1
- Test fail: Mode_switch disappeared HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from herbstluftwm.