SV * newSVGdkWindow(GdkWindow * value) { int n = 0; SV * result; result = newSVMiscRef(value, (value && (gdk_window_get_type(value) == GDK_WINDOW_PIXMAP)) ? "Gtk::Gdk::Pixmap" : "Gtk::Gdk::Window" , &n); if (n && value) gdk_window_ref(value); return result; }
gboolean meta_ui_window_should_not_cause_focus (Display *xdisplay, Window xwindow) { GdkWindow *window; window = gdk_xid_table_lookup (xwindow); /* we shouldn't cause focus if we're an override redirect * toplevel which is not foreign */ if (window && gdk_window_get_type (window) == GDK_WINDOW_TEMP) return TRUE; else return FALSE; }
int clip_GDK_WINDOWGETTYPE(ClipMachine * cm) { C_widget *cwin = _fetch_cw_arg(cm); GdkWindow *win = NULL; CHECKCWID(cwin,GTK_IS_WIDGET); if (cwin && cwin->widget) win = cwin->widget->window; _clip_retni(cm, gdk_window_get_type(win)); return 0; err: return 1; }