mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-24 06:15:57 +03:00
1cbdaee31b
the apps still exit but they do it in a mostly controlled manner. in particular, the server threads except the one processing primary screen events will terminate gracefully. this will be important should the server ever allow HTTP clients to rewrite the configuration file. note that X makes it effectively impossible to continue once the X server disconnects. even if it didn't it would be difficult for synergy to recover. users will have to add synergy to the X display manager's startup script if they expect the server to be restarted. alternatively, we could add code to fork synergy at startup; the child would do the normal work while the parent would simply wait for the child to exit and restart it.
15 lines
228 B
C++
15 lines
228 B
C++
#ifndef XSCREEN_H
|
|
#define XSCREEN_H
|
|
|
|
#include "XBase.h"
|
|
|
|
class XScreen : public XBase { };
|
|
|
|
// screen cannot be opened
|
|
class XScreenOpenFailure : public XScreen {
|
|
protected:
|
|
virtual CString getWhat() const throw();
|
|
};
|
|
|
|
#endif
|