In the default rc.lua configuration file that's installed with the awesome window manager (x11-wm/awesome-3.3.4), there's an option to quit the window manager. When you do, all windows are forced-closed, which means if you were editing a text file and had unsaved changes, etc., these changes would be lost. I think it would be nicer if the window manager attempted to close each window first, just as if the window had been closed manually, so that if the app wants to ask the user for confirmation before exiting, it can. This is fairly simple to implement, and I've done so, and shall attach a patch to the rc.lua config file in a minute or so. Reproducible: Always
Created attachment 222653 [details, diff] Patch to implement closing of windows before quitting awesome
I forgot to mention - I'm not sure whether the rc.lua config file is created by Gentoo, or is the one provided by Awesome itself. If the latter, I'd be fine with submitting the request to its creators instead of Gentoo.
Created attachment 222657 [details, diff] Patch to attempt to implement requested functionality Sorry, that first patch didn't even compile. Here's a new one that does. It turns out it isn't that simple to implement either - the c:kill() line doesn't wait for the client to be killed. If I can figure out a way to make this work, I'll submit an actual working patch...
please report to upstream
Done: http://awesome.naquadah.org/bugs/index.php?do=details&task_id=738
(In reply to comment #5) > Done: > > http://awesome.naquadah.org/bugs/index.php?do=details&task_id=738 RESOLVED UPSTREAM, I'd say. Or RESOLVED UPSTREAM WONTFIX :) Using x11-misc/wmctrl is probably the best solution.
(In reply to comment #6) > (In reply to comment #5) > > Done: > > > > http://awesome.naquadah.org/bugs/index.php?do=details&task_id=738 > > RESOLVED UPSTREAM, I'd say. Or RESOLVED UPSTREAM WONTFIX :) > Using x11-misc/wmctrl is probably the best solution. Correct. Upstream has marked this as WONTFIX there: >Closed by Uli Schlachter (psychon) >Sunday, 15 August 2010, 19:16 GMT+1 >Reason for closing: Won't implement >Additional comments about closing: It's not the window manager's job to kill apps. So marking here as CANTFIX.