-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
border patch smushes the font #17
Comments
Would be interested to know how you reproduce that issue. The original patch is pretty simple: and the width and height passed to XCreateWindow is the inner dimensions of window and does not include the wndow borders ref. |
this is config.h
and pathches are
|
borderbug.mp4 |
as you can see in video the fonts get squished if i increase the border width i think dmenu tries to preserve the overall dimension of the dmenu window and try to put both that wide border and font in that same size which in theory should be increase with the increase in bw, the fonts get blurry also |
Sure, but we also see that the window does not change size. I can't replicate the behaviour using your config and patch selection. Are you using some form of scaling perhaps? |
yes i am on 14 inch 1080p screen so i have to use some fractional scalling set by Xft.dpi: 133 |
I would say that this would be the answer then. From your recording I think that it is clear that whatever is handling the scaling of windows do not take the border size correctly into account given that the dmenu window always have the same size. It looks like it scales the border + window to the size of the (inner) window, resulting in a squashed look. I would bet that this has to do with that the scaling is intended for reparenting window managers which do not use such a basic border drawn by X. |
so is there something i can do or there is no hope left 😄 |
To be honest I don't think there is much you can do (besides dropping the fractional scaling, which would defeat the point). I'd be interested to know if using no border and having dmenu be managed by the window manager (see the managed patch) if dmenu then comes through with window decorations (like the yellow, green and red buttons in the top right corner). |
when i apply border patch and try to add border width to a greater number the dmenu hight doesnot increase instead it tries to fit that border width in same window size and as result fonts either get cut out or they get stretched in like they are compressed and widens
The text was updated successfully, but these errors were encountered: