Need help with window-state-event



How do i check a window is maximized or not?

static gboolean window_state_event_handler(GtkWidget *window,
GdkEventWindowState *event)
{

}

GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
g_signal_connect(window, "window-state-event",
G_CALLBACK(window_state_event_handler), NULL);


I'm completely lost with what to code in the handler function to check
whether a window is maximized or not.
Any help is appreciated..




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]