This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository e16-keyedit.
View the commit online.
commit 2bddb03c4ea9a5c03a4e3c6f9acdb4c1a6d28768
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Dec 8 14:23:44 2023 +0100
Some trivial name changes
---
ipc.c | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/ipc.c b/ipc.c
index f44985b..d3219b5 100644
--- a/ipc.c
+++ b/ipc.c
@@ -37,7 +37,7 @@ typedef struct {
static Display *dpy = NULL;
static Window root_win = None;
static Window comms_win = None;
-static Window my_win = None;
+static Window my_msg_win = None;
static Client *e_client = NULL;
static GdkWindow *gdkwin = NULL;
static GdkWindow *gdkwin2 = NULL;
@@ -55,7 +55,7 @@ CommsSetup(void)
root_win = (str) ? strtoul(str, NULL, 0) : DefaultRootWindow(dpy);
gdk_error_trap_push();
- my_win = XCreateSimpleWindow(dpy, root_win, -10, -10, 1, 1, 0, 0, 0);
+ my_msg_win = XCreateSimpleWindow(dpy, root_win, -10, -10, 1, 1, 0, 0, 0);
XSync(dpy, False);
if (gdk_error_trap_pop())
return 1;
@@ -109,7 +109,7 @@ CommsFindCommsWindow(void)
}
static Client *
-MakeClient(Window win)
+ClientCreate(Window win)
{
Client *cl;
@@ -214,20 +214,18 @@ CommsFilter(GdkXEvent *gdk_xevent, GdkEvent *event __UNUSED__,
int
CommsInit(void (*msg_receive_func)(char *msg))
{
- Window win;
-
- if (CommsSetup())
+ if(CommsSetup())
return 1;
- comms_win = win = CommsFindCommsWindow();
- if (win == None)
+ comms_win = CommsFindCommsWindow();
+ if (comms_win == None)
return 1;
- e_client = MakeClient(win);
+ e_client = ClientCreate(comms_win);
- gdkwin = gdk_window_foreign_new(win);
+ gdkwin = gdk_window_foreign_new(comms_win);
gdk_window_add_filter(gdkwin, CommsFilter, NULL);
- gdkwin2 = gdk_window_foreign_new(my_win);
+ gdkwin2 = gdk_window_foreign_new(my_msg_win);
gdk_window_add_filter(gdkwin2, CommsFilter, NULL);
gdk_window_set_events(gdkwin, GDK_STRUCTURE_MASK);
msg_receive_callback = msg_receive_func;
@@ -257,7 +255,7 @@ CommsSend(const char *s)
for (i = 0; i < len + 1; i += 12)
{
- snprintf(ss, sizeof(ss), "%8x", (int)my_win);
+ snprintf(ss, sizeof(ss), "%8x", (int)my_msg_win);
for (j = 0; j < 12; j++)
{
ss[8 + j] = s[i + j];
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.