Skip to content
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

[swm-gaps] gaps should not be applied to transient windows #75

Closed
lepisma opened this issue Jul 31, 2017 · 11 comments · Fixed by #199
Closed

[swm-gaps] gaps should not be applied to transient windows #75

lepisma opened this issue Jul 31, 2017 · 11 comments · Fixed by #199

Comments

@lepisma
Copy link
Contributor

lepisma commented Jul 31, 2017

From @jakecoble on July 14, 2017 14:44

Transient windows should not have gaps applied to them. This often causes them to shrink unusably small.

Copied from original issue: lepisma/swm-gaps#3

@lepisma
Copy link
Contributor Author

lepisma commented Jul 31, 2017

Did you mean the transient windows like
image these ones (I can see the problem here with >0 inner gap) or windows from floating group? I believe floating group doesn't get any extra padding.

@lepisma
Copy link
Contributor Author

lepisma commented Jul 31, 2017

From @jakecoble on July 14, 2017 22:47

Ah, that explains why I wasn't able to fix the problem – I thought transient windows were a part of the floating group.

@lepisma
Copy link
Contributor Author

lepisma commented Jul 31, 2017

3a79995 skips adding inner gaps to transients. When transient window gravity is set to top, something like the following happens.

image

The correct way to fix this would be to check for transient window gravity and move the y value down if its :top (similarly for other alignments) to align things neatly. Will fix this soon.

@dmb2
Copy link
Contributor

dmb2 commented May 2, 2018

Is this fixed now?

@dmb2 dmb2 changed the title gaps should not be applied to transient windows [swm-gaps] gaps should not be applied to transient windows May 2, 2018
@lepisma
Copy link
Contributor Author

lepisma commented May 2, 2018

The main issue (gaps on transients) is fixed. The adjustment for non center gravity is not because I don't think just adjusting x or y value will do. For example the transient below needs to get its width adjusted too (the main window is firefox in background):

image

They probably need a more extensive handling using the current window width (height) or something. Maybe close this specific issue since its premise is covered.

@podiki
Copy link
Contributor

podiki commented Jan 22, 2019

I still have the issue with shrinking transient windows on the latest version. I think related is making some windows floating (e.g. Steam windows) will have them move (slowly or quickly) in some direction until completely off screen.

@jakecoble
Copy link

jakecoble commented Dec 5, 2019

I still have the issue with shrinking transient windows on the latest version. I think related is making some windows floating (e.g. Steam windows) will have them move (slowly or quickly) in some direction until completely off screen.

I still have this issue as well, but I don't think my initial bug report was well stated – we may be using transient colloquially when it has a specific usage in this case. While the Steam windows in question don't stick around long, I don't know if they're transient according to window managers. I've yet to figure out what is unique about the windows I'm having trouble with.

@jakecoble
Copy link

Appears to be windows with a maximum size set that are having trouble. Suggest closing the issue and I'll open another with the new problem description.

@podiki
Copy link
Contributor

podiki commented Mar 18, 2020

@jakecoble did you find a better way to describe this? Probably we need to find out what properties are different for these types of windows. I noticed it is often for a loading/splash window, like starting Steam, Zoom, I think for some Wine windows too.

@jakecoble
Copy link

@podiki Never did track it down. I'll need to find some way to generate a bunch of windows with different properties for testing this, but I haven't yet found a convenient tool for that.

@podiki
Copy link
Contributor

podiki commented May 4, 2020

@jakecoble This may be solved with fixing #178, basically not applying gaps to windows that are too small to need them. Fixes this for for me for Steam loading/login, Zoom loading at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants