330 |
else |
else |
331 |
{ |
{ |
332 |
PLUGIN_DEBUG ("GCJ_SetWindow: setting window\n"); |
PLUGIN_DEBUG ("GCJ_SetWindow: setting window\n"); |
333 |
data->xid = g_strdup_printf ("xid %d", (int)(window->window)); |
#if SIZEOF_VOID_P == 4 // We are on a 32-bit architecture. |
334 |
|
data->xid = g_strdup_printf ("xid %d", (int) (window->window)); |
335 |
|
#elif SIZEOF_VOID_P == 8 // We are on a 64-bit architecture. |
336 |
|
data->xid = g_strdup_printf ("xid %ld", (long) (window->window)); |
337 |
|
#else // We are on an architecture with unkown pointer size. |
338 |
|
#error "Unknown pointer size." |
339 |
|
#endif |
340 |
|
|
341 |
send_message_to_appletviewer (data->instance_id); |
send_message_to_appletviewer (data->instance_id); |
342 |
send_message_to_appletviewer (data->xid); |
send_message_to_appletviewer (data->xid); |