Commit Graph

7 Commits (8252927210f087b78b5608ee0a2ecd7f05821a5e)

Author SHA1 Message Date
Michele Calgaro 8252927210
kdesktop: simplify lock process code. This ensure correct cleanup in case of unexpected termination of the process.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 month ago
Michele Calgaro 5e6907dc18
kdesktop: make sure the saver/lock remains responsive even when invokation has failed.
This could happen for example when a popup menu is open and the saver
autolock timeout expires. Before this commit, both kdesktop and the
X11 server would be in a dirty start and the saver/lock would either not
work anymore or not hide the windows on the screen.
It was necessary to kill and restart kdesktop to restore proper
functionality.

Note: the conditional return value of 0 or 12 at main.cpp:554 is a temporary
measure to prevent the screen to forcibly lock if the user forgets a popup
menu open and the saver timeout expires. Once the issue with input grabbing
is solved, we can remove the conditional return value and simply return an error
in such condition. Same applies to the variable trinity_desktop_lock_failed_grab,
which will no longer be needed in such case.o

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 month ago
Michele Calgaro 51230c05dc
Use TDESimpleConfig
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
3 months ago
Michele Calgaro 0a439ac80b
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 months ago
Michele Calgaro 669c9bc7d8
Use tdestandarddirs.h
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 months ago
Michele Calgaro 2d7d2122cf
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 years ago
Michele Calgaro 145abc15d5
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago