https://bugs.kde.org/show_bug.cgi?id=468783

Reg <nybbles2by...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|NOT A BUG                   |---
     Ever confirmed|0                           |1

--- Comment #10 from Reg <nybbles2by...@gmail.com> ---
(In reply to Nate Graham from comment #9)
> On X11 it's up to apps to store and restore their window positions; KWin
> doesn't and can't do this, due to the way X11 works and what apps expect
> from it.
> 
> On Wayland, it will eventually be possible for KWin to save and restore
> window positions itself; see Bug 15329.

Thanks for pointing me to that. Wow! A 20 year old bug, that was quite a read
going through all those comments.

One quick question as I asked this before I'll just past the question as asked
below:

QUESTION: Is there any way to run a script pre-logging out? That way I could
take a screenshot and gather config info. automatically before the logging out
process. Right now, if I want that I have to do it myself. 

The problem with the logout script running as it is, is that most things have
been removed from the screen before the script can take a screen snapshot. 
That said, it looks to me that the things that are being moved ARE the ones
that are still showing when logout script is run so that might be a good clue
as to the cause.

FOLLOW UP: It's not just for debugging I am asking this. I am software
developer and I do run command line scripts for reasons other than debugging
and it would be incredibly useful to be able to do this. For example, one I can
think of immediately: 

    "If close the apps before the logging out process manually then when I log
in most of those apps that moved (maybe all of them, I'll have to check) come
back in their right place. It's only when I log out without first closing them
that this issue happens."

Hm, maybe that's a nicety that KDE could do for people until there is a proper
fix? That is, log all these apps out like a user manually closing the apps
before any of the other logging out operation occurs because that solves most
if not all of it anyway. My guess is that's probably because the apps have a
chance to record their proper position whereas right now something is changing
first so that when they get logged out they record a wrong position. Maybe this
is a KDE bug after all since a manual operation produces the correct result but
just logging out without first closing the apps does not???

Sorry, I didn't think to mention that previously because it just didn't occur
to me but I regularly log out of my most important apps that I don't want to
change on me, particularly my Jetbrains IDE so that it comes back with all the
windows in the right place. Again, sorry I didn't think to mention this
previously.

But back to my question, is there way to perform an operation before anything
else on a logout? ...because with that I can immediately effect a fix.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to