Skip to content
Snippets Groups Projects
Commit c9d60066 authored by Ali Abdallah's avatar Ali Abdallah
Browse files

Fix compilation error when compiling with --enable-debug=full

parent 30b4737e
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,14 @@ static void egg_idletime_finalize (GObject *object); ...@@ -39,6 +39,14 @@ static void egg_idletime_finalize (GObject *object);
#define EGG_IDLETIME_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EGG_IDLETIME_TYPE, EggIdletimePrivate)) #define EGG_IDLETIME_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EGG_IDLETIME_TYPE, EggIdletimePrivate))
/*
* Undef and use the function instead of the macro
* as the macro is buggy.
*/
#ifdef XSyncValueAdd
#undef XSyncValueAdd
#endif
struct EggIdletimePrivate struct EggIdletimePrivate
{ {
gint sync_event; gint sync_event;
...@@ -398,7 +406,7 @@ egg_idletime_init (EggIdletime *idletime) ...@@ -398,7 +406,7 @@ egg_idletime_init (EggIdletime *idletime)
/* gtk_init should do XSyncInitialize for us */ /* gtk_init should do XSyncInitialize for us */
counters = XSyncListSystemCounters (idletime->priv->dpy, &ncounters); counters = XSyncListSystemCounters (idletime->priv->dpy, &ncounters);
for (i=0; i < (guint) ncounters && !idletime->priv->idle_counter; i++) { for (i=0; i < (guint)ncounters && !idletime->priv->idle_counter; i++) {
if (strcmp(counters[i].name, "IDLETIME") == 0) if (strcmp(counters[i].name, "IDLETIME") == 0)
idletime->priv->idle_counter = counters[i].counter; idletime->priv->idle_counter = counters[i].counter;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment