#define WM_INTERFACE_NAME "org.enlightenment.wm.proc"
#define WM_METHOD_NAME_INFO "GetVisibleWinInfo"
#define WM_METHOD_NAME_FOCUS "GetFocusProc"
-
+#define WM_DBUS_TIMEOUT 5000
typedef struct _window_info {
unsigned int gid;
}
reply = g_dbus_connection_send_message_with_reply_sync(system_conn, msg,
- G_DBUS_SEND_MESSAGE_FLAGS_NONE, -1, NULL, NULL, &err);
+ G_DBUS_SEND_MESSAGE_FLAGS_NONE, WM_DBUS_TIMEOUT,
+ NULL, NULL, &err);
if (!reply) {
if (err != NULL) {
}
reply = g_dbus_connection_send_message_with_reply_sync(system_conn, msg,
- G_DBUS_SEND_MESSAGE_FLAGS_NONE, -1, NULL, NULL, &err);
+ G_DBUS_SEND_MESSAGE_FLAGS_NONE, WM_DBUS_TIMEOUT,
+ NULL, NULL, &err);
if (!reply) {
_E("reply is null");