https://bugs.kde.org/show_bug.cgi?id=415150
--- Comment #9 from Nate Graham <n...@kde.org> --- So I've run into a bit of a conceptual issue here. I've created new functions KWindowConfig::saveWindowPosition() and KWindowConfig::restoreWindowPosition() in KConfig. We can automatically save the position of apps' main windows by calling the new saveWindowPosition() function from kxmlgui in KMainWindow, but to save the position of *every* window, we'd need to add a new KWindowConfig::saveWindowPosition() function call to every individual KDE app that calls KWindowConfig::saveWindowSize() for sub-windows, dialog windows, settings windows, etc. grep shows 92 such instances throughout the KDE apps I have source checkouts for. So this would be possible and feels most conceptually correct, but it would be a lot of work and in practice the roll-out would probably take months or years. An alternative you be to make KWindowConfig::saveWindowSize() automatically save the window's position as well. This would provide the feature for free for basically all KDE apps that already save the sizes of their windows. However doing this would make the function name inaccurate, and would represent a behavioral change that might be undesirable. Perhaps there are apps that manually save their window positions, though this is speculative and theoretical. Though in practice those would probably be exceptions and we could make them stop manually saving window positions when we find them. The other alternative is to abandon this idea and put work into making KWin do it instead (Bug 15329), which would fix this issue for all KDE app windows as well as all other 3rd-party app windows as well. Apparently that will eventually be possible on Wayland once some protocol is merged upstream, but we don't have enough information on X11 to do it. However perhaps that's something that can be overcome. If I had a nickel for every time a developer told me that something was technically impossible only for someone else to figure out how to get it done, I'd be a rich man! Comments welcome. -- You are receiving this mail because: You are watching all bug changes.