-
Notifications
You must be signed in to change notification settings - Fork 597
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
client: keep ontop/fullscreen/above/below when setting the others #2512
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2512 +/- ##
==========================================
- Coverage 84.32% 84.32% -0.01%
==========================================
Files 479 479
Lines 33277 33261 -16
==========================================
- Hits 28062 28048 -14
+ Misses 5215 5213 -2
|
Ref: #2047 (comment) |
Shall we merge this or fix some deeper issues and get this as a side effect? |
Let's wait for @psychon to approve/review it. I think it is a good start, and awesome itself would still behave the same. Note that hacks similar to #667 (comment) might break due to this, e.g. if you expect "fullscreen" to be unset when "ontop" gets set etc, but I think that's fine / easy to fix then. |
Fine by me, if you want to stay around and fix the resulting problems. @Elv13 Is this allowed in a minor release or is this possibly-breaking enough to need to wait for v5? |
Oh and what will be your answer to the incoming bug reports saying stuff like "I tried to set a client below, but nothing happened"? |
Good point. |
I think the current API can be implemented on top of the new one but deprecated. I can take care of that part if you submit such API changes. Adding convoluted maintenance heavy code to support our legacy features is something I have done a lot ;) (just see that ugly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would also add a test to be sure what the next "deeper fix" will not break it again
@actionless
Do you mean to keep the current behavior on the Lua side, based on this PR / removal / internal change? |
@blueyed yes, that sounds more logical to me |
@Elv13 was the current behavior documented somewhere to deserve to be preserved? for me it looks more like a bug |
@actionless looking back at the last time I modified the maximize behavior because people reported "bugs" about it, I can say that changing these things quickly becomes a rabbit hole. People will notice and wont be very happy. Right now the design of this feature is "broken" in the sense people can't make it behave like they want. The only reason few notice is because the tiled client tweak their indices in the client list to avoid the bug(s) from being visible. I think it should be fixed properly because "random" changes in behavior will just cause more open issues with more user requests and more changes to accommodate the user whose favorite behavior broke, then more bugs due to the added complexity. |
@Elv13 that's the reason why i insisting on having the test for it -- so it will turn it from undefined state to somehow defined (if not in docs then in tests, which is even better in maintenance point of view) |
@actionless as long as we wait for after 4.3 is released I am ok with trying. However all comments near the end of #2047 still stand. Doing this a few days before releasing 4.3 is too risky. |
i know about z-index thing, i think we were discussing that even more times longer ago however speaking of this particular issue (especially not the actual diff but amended version proposed by @blueyed in the comment above): however i agree what resetting below state on fullscreen could be expected by some people |
Fixes #667.
This does not break any test.
It should have a new test though when accepted.
Order is handled internally here:
awesome/stack.c
Lines 125 to 156 in 57e05cd
Note that e.g.
client.get.visible
allows for getting the clients by stacking order already.