Replaced X event notifying via add_fd(). Now all X events could be reported

without possible stealing from fltk. Prevous, add_handler(), would send only
unknown events for fltk which leave us without really important ones, like selection events
used by XSETTINGS manager.

Added XSETTINGS support (yet unfinished) which will make evoke as XSETTINGS manager.
This commit is contained in:
Sanel Zukan
2007-09-18 14:06:09 +00:00
parent 00f5f2d59a
commit ad69c2fc2c
7 changed files with 265 additions and 11 deletions

View File

@ -14,10 +14,12 @@
#define __EVOKESERVICE_H__
#include "Log.h"
#include "Xsm.h"
#include <edelib/List.h>
#include <edelib/String.h>
#include <FL/x.h>
#include <FL/x.h>
#include <pthread.h>
struct EvokeClient {
@ -46,6 +48,7 @@ class EvokeService {
private:
bool is_running;
Log* logfile;
Xsm* xsm;
char* pidfile;
char* lockfile;
@ -73,6 +76,9 @@ class EvokeService {
bool init_splash(const char* config, bool no_splash, bool dry_run);
void init_autostart(bool safe);
void init_xsettings_manager(void);
void stop_xsettings_manager(void);
int handle(const XEvent* ev);
Log* log(void) { return logfile; }