parent
43d0375074
commit
d5d56aea5b
10
src/comms.c
10
src/comms.c
|
@ -28,7 +28,7 @@
|
||||||
#include "e16-ecore_list.h"
|
#include "e16-ecore_list.h"
|
||||||
#include "xwin.h"
|
#include "xwin.h"
|
||||||
|
|
||||||
struct _client
|
typedef struct
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
Window xwin;
|
Window xwin;
|
||||||
|
@ -37,7 +37,9 @@ struct _client
|
||||||
char *version;
|
char *version;
|
||||||
char *info;
|
char *info;
|
||||||
char replied;
|
char replied;
|
||||||
};
|
} Client;
|
||||||
|
|
||||||
|
static void CommsSend(Client * c, const char *s);
|
||||||
|
|
||||||
static Ecore_List *client_list = NULL;
|
static Ecore_List *client_list = NULL;
|
||||||
|
|
||||||
|
@ -343,7 +345,7 @@ CommsDoSend(Window win, const char *s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
CommsSend(Client * c, const char *s)
|
CommsSend(Client * c, const char *s)
|
||||||
{
|
{
|
||||||
if (!c)
|
if (!c)
|
||||||
|
@ -352,6 +354,7 @@ CommsSend(Client * c, const char *s)
|
||||||
CommsDoSend(c->xwin, s);
|
CommsDoSend(c->xwin, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* Unused */
|
||||||
/*
|
/*
|
||||||
* When we are running in multi-head, connect to the master wm process
|
* When we are running in multi-head, connect to the master wm process
|
||||||
* and send the message
|
* and send the message
|
||||||
|
@ -365,7 +368,6 @@ CommsSendToMasterWM(const char *s)
|
||||||
CommsDoSend(RootWindow(disp, Mode.wm.master_screen), s);
|
CommsDoSend(RootWindow(disp, Mode.wm.master_screen), s);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* Unused */
|
|
||||||
/*
|
/*
|
||||||
* When we are running in multi-head, connect to the slave wm processes
|
* When we are running in multi-head, connect to the slave wm processes
|
||||||
* and broadcast the message
|
* and broadcast the message
|
||||||
|
|
|
@ -24,12 +24,6 @@
|
||||||
#ifndef _COMMS_H_
|
#ifndef _COMMS_H_
|
||||||
#define _COMMS_H_
|
#define _COMMS_H_
|
||||||
|
|
||||||
typedef struct _client Client;
|
|
||||||
|
|
||||||
void CommsInit(void);
|
void CommsInit(void);
|
||||||
void CommsSend(Client * c, const char *s);
|
|
||||||
void CommsSendToMasterWM(const char *s);
|
|
||||||
void CommsBroadcast(const char *s);
|
|
||||||
void CommsBroadcastToSlaveWMs(const char *s);
|
|
||||||
|
|
||||||
#endif /* _COMMS_H_ */
|
#endif /* _COMMS_H_ */
|
||||||
|
|
|
@ -41,6 +41,5 @@ void SessionInit(void);
|
||||||
void SessionExit(int mode, const char *params);
|
void SessionExit(int mode, const char *params);
|
||||||
void SessionHelper(int when);
|
void SessionHelper(int when);
|
||||||
void SetSMID(const char *smid);
|
void SetSMID(const char *smid);
|
||||||
void SettingsSession(void);
|
|
||||||
|
|
||||||
#endif /* _SESSION_H_ */
|
#endif /* _SESSION_H_ */
|
||||||
|
|
2
src/x.c
2
src/x.c
|
@ -1119,7 +1119,7 @@ EQueryPointer(Win win, int *px, int *py, Window * pchild, unsigned int *pmask)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ESelectInputChange(Win win, long set, long clear)
|
ESelectInputChange(Win win, unsigned long set, unsigned long clear)
|
||||||
{
|
{
|
||||||
XWindowAttributes xwa;
|
XWindowAttributes xwa;
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,8 @@ void EWindowSync(Win win);
|
||||||
void EWindowSetGeometry(Win win, int x, int y, int w, int h,
|
void EWindowSetGeometry(Win win, int x, int y, int w, int h,
|
||||||
int bw);
|
int bw);
|
||||||
void EWindowSetMapped(Win win, int mapped);
|
void EWindowSetMapped(Win win, int mapped);
|
||||||
void ESelectInputChange(Win win, long set, long clear);
|
void ESelectInputChange(Win win, unsigned long set,
|
||||||
|
unsigned long clear);
|
||||||
|
|
||||||
void EMoveWindow(Win win, int x, int y);
|
void EMoveWindow(Win win, int x, int y);
|
||||||
void EResizeWindow(Win win, int w, int h);
|
void EResizeWindow(Win win, int w, int h);
|
||||||
|
|
Loading…
Reference in New Issue