Comments (5)
Sorry for the later reply. I tried the awesome from the latest master branch. I have no problems with restoring the clients in floating. However, I think it could happy, because there could be some properties of those clients are not saved by revelation. Therefore those properties will not be restored. Do you give some specific properties to the floating layout?
from awesome-revelation.
Hello,
I've installed this just today, and faced same problem, it easly fixable.
So the idea (PS: all this is just my guessing :D) is that you check if client is "floating" then you save it geometry, but clients in floating layout are not floating! and those when you restore them, you restore them without geometry!
--if awful.client.floating.get(c) then
clientData[c]["geometry"] = c:geometry()
flt = awful.client.property.get(c, "floating")
if flt ~= nil then
clientData[c]["floating"] = flt
awful.client.property.set(c, "floating", false)
end
--end
So just comment this IF / END in "match_clients" function
PS: I don't get why geometry gets a special if, revelation shoudn't worry about this things, it should just restore EVERYTHING, without worying about "floating".
from awesome-revelation.
Hi @ShadOoW ,
Thanks for the solution. It seems to work. Just let me test for a few days.
I agree with you it is better than revelation just restore everything and shouldn't worry about these things. But revelation works by collecting all clients into 'revelation' tag. the geometry of clients are changed when then fit into the 'revelation' tag. After restoring everything. The geometry of clients usually can be arranged by the layout (for most layouts such as tile). But for floating layout, there is no such arrange function. If revelation did not store the geometry of clients, the geometry of clients restored to floating layout is wrong, since the floating layout does nothing!
Cheers,
from awesome-revelation.
Hi @guotsuan sorry for repeating, just to clarify:
if Revelation saves all geometry and then restores all geometry this will have the following effect:
-In floating layout: we get back client size.
-In other layout: geometry is ignored and it won't matter if it was restored or no.
-floated clients in other layout: will have their original size back.
Conclusion: unless i misunderstood something, it seems like that if statement is actually not needed? I've tested this 3 use-cases for 3 days, didn't notice any bug.
Thank you for maintaining this awesome project!
from awesome-revelation.
Hi,
Thanks for all the test. I'm convinced that restore all geometry should be ok. However let me know if you see anything weird happen.
from awesome-revelation.
Related Issues (20)
- Error on awesome-3.5.3 HOT 3
- Windows not restored to original state after running revelation HOT 4
- bring all clients to current tag HOT 8
- Persistent "Revelation" tag HOT 6
- Handle errors better: restore always HOT 6
- hintbox box not worked well with awesome-3.5.6 HOT 3
- error: ./revelation/init.lua:31: module 'gears.timer' not found HOT 9
- Empty letterboxes with awesome master HOT 3
- Revelation not working with 3.5.6 and master branch HOT 6
- Running revelation.init() and beautiful.init("path") HOT 3
- Fails to start on awesome 3.5.6 HOT 2
- unable to click on client in revelation HOT 8
- Weird behavior on multiple screens HOT 17
- awesome-revelation isn't working with awesome upstream HOT 3
- fg and bg not respected in calls to revelation.init
- Hints only mode HOT 4
- awful.tag.history.restore attempts to display revelation tag after it has been deleted HOT 1
- Can't exclude many class ?
- curr_tag_only + minimized clients HOT 1
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 awesome-revelation.