[sugar] Experiments with Metacity

Sayamindu Dasgupta sayamindu
Mon May 19 06:24:00 EDT 2008


On Mon, May 19, 2008 at 3:42 PM, Sayamindu Dasgupta <sayamindu at gmail.com> wrote:
> On Mon, May 19, 2008 at 3:35 PM, Marco Pesenti Gritti
> <mpgritti at gmail.com> wrote:
>> On Mon, May 19, 2008 at 12:00 PM, Sayamindu Dasgupta
>> <sayamindu at gmail.com> wrote:
>>> I tried to do that (maximize() and then set_decorated(False)). As soon
>>> as I set the window to undecorated, it seems to assume fullscreen
>>> properties (with the full screen icon popping up on the top right). Is
>>> there any convention which signifies maximized + undecorated =
>>> fullscreen ?
>>
>> That's really weird... I wonder if metacity is doing some hacks there...
>>
>> Marco
>>
>
> I get the following message in the background:
>
> Window manager warning: Treating resize request of legacy application
> 0x800003 (Journal) as a fullscreen request
>

In metacity/src/core/constraints.c,

 /* Workaround braindead legacy apps that don't know how to
   * fullscreen themselves properly.
   */
  if (meta_rectangle_equal (new, &xinerama_info->rect) &&
      window->has_fullscreen_func &&
      !window->fullscreen)
    {
      /*
      meta_topic (META_DEBUG_GEOMETRY,
      */
      meta_warning (
                  "Treating resize request of legacy application %s as a "
                  "fullscreen request\n",
                  window->desc);
      meta_window_make_fullscreen_internal (window);
    }



I'm not familiar with metacity code, but I think my maximizing and
decoration disabling request is making the size of the activity window
as equal to the size of the screen, which Metacity is interpreting as
a fullscreen request.
I'll do a custom build of Metacity with this disabled and see how it works out.
Cheers,
Sayamindu

-- 
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]



More information about the Sugar-devel mailing list