Re: where i find a manual for write a wm in gtk3 ?



It does, but the code for that is quite complicated and we've ran into many issues. They're some of the biggest issues holding up the Wayland port of mutter right now.

See https://git.gnome.org/browse/mutter/tree/src/ui/ui.c#n90 for some of the "fun" code you'll have to write to not deadlock GTK+.


On Thu, Feb 27, 2014 at 11:42 AM, Andy Spencer <andy753421 gmail com> wrote:
On 2014-02-27 12:40Z, Jasper St. Pierre wrote:
> Except you can't. GTK+ will deadlock your WM if you try to use it,
> unless you do it very carefully (read: add 5000 lines of code, fake
> out GDK all over the place, and implement an entire confusing state
> machine).
>
> You can't use GTK+ to build a WM.

I thought metacity used GTK+ for things like right click menus at least,
or is the issue a GTK+ 3 thing?

Would it work better to use offscreen windows for the GTK stuff?



--
  Jasper


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