How to reproduce:
ssh -X user@host firefox
(or some other X application).- Maximise the window.
- Close the application.
- Open the application in Awesome WM (tried only locally, but should also work remotely).
Result: The window is still maximised.
Since I never use the maximise functionality in Awesome, and often use it in other window managers, I'd like to unset the maximisation whenever I open X applications in Awesome.
I tried this:
{ rule = { class = "Firefox" },
properties = { tag = tags[math.min(2, screen.count())][2],
maximized_vertical = false, maximized_horizontal = false } },
Firefox does start in tag 2, but it's still maximised. Any idea how to unset the maximisation, for Firefox specifically, but even better for all X applications?
Best Answer
Converted Comment from @ewhac into an answer:
Firefox is not the only application to preserve its own window settings on exit (for example, the Pan newsreader does this). It looks an awful lot like there's a race condition between Awesome setting up the window, and the application restoring its saved settings.
As such, you may be stuck doing it with a timed trigger as the previous commenter noted, or doing it by hand (the default key mapping for toggling window maximization in Awesome is MOD + m).