Re: Getting XID of a Meta.Window



On Thu, May 3, 2012 at 10:09 PM, Amy C <mathematical coffee gmail com> wrote:
> Hi all,
>
> I'm trying to get the XID of a Meta.Window. (This is on order to
> convert it into a GDK window so that I can call `set_decorations` and
> remove window decoration for maximised windows. I know you can set
> this in the metacity theme XML file, but I'm trying to do it with
> JS/gobject introspection. I don't know how to convert it into a GTK
> window (which has a convenient
> `gtk_window_set_hide_titlebar_when_maximized` function that would  be
> exactly what I wanted)).

You can't create a GTK+ window from an XID anyway.

> On examining the Mutter sources it appears that I can get to the
> window's actor and access the 'x-window' property:
>
>    mutterWindow.get_compositor_private()['x-window']
>
> However, this is not the window's XID (confirmed by using xwininfo on
> the window).
>
> Is there some way to get the window's XID, or otherwise convert it
> into a G[DT]K window?

No.

I think the best thing you could set out to do would be to fork out to
xprop to remove decorations, unfortunately.

> cheers!
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-shell-list

-- 
  Jasper


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