x11: Rename function fetching the D-Bus connection
You'd expect a "get" function to return the variable in question. This doesn't, and simply sets a global variable.
This commit is contained in:
parent
247de41ce1
commit
65fa874c3a
|
@ -63,7 +63,7 @@ unsigned g_x11_screen;
|
|||
#define MOVERESIZE_Y_SHIFT 9
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
static void dbus_get_connection(void)
|
||||
static void dbus_ensure_connection(void)
|
||||
{
|
||||
DBusError err;
|
||||
int ret;
|
||||
|
@ -663,7 +663,7 @@ bool x11_connect(void)
|
|||
}
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
dbus_get_connection();
|
||||
dbus_ensure_connection();
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue