#define WNCK_I_KNOW_THIS_IS_UNSTABLE
#include <libwnck/libwnck.h>
#include <gtk/gtk.h>

int
main(int argc, char *argv[])
{
    WnckScreen *scr;
    WnckWindow *win;
    int x, y, width, height;

    gtk_init(&argc, &argv);

    scr = wnck_screen_get_default();
    while(gtk_events_pending()) gtk_main_iteration();
    win = wnck_screen_get_active_window(scr);
    wnck_window_get_geometry(win, &x, &y, &width, &height);

    printf("x: %d, y: %d, width: %d, height: %d\n", x, y, width, height);

    return(0);
}
