Re: no WM decorations with fvwm2



On Mon, Apr 25, 2005 at 05:45:52 -0400, zentara wrote:
On Mon, 25 Apr 2005 07:26:19 IDT
Dov Grobgeld <dov grobgeld weizmann ac il> wrote:

The following almost works for me under fvwm2:

   if (!$do_windowed) {
       $mw->realize;
       my(@geom) = $mw->window->get_geometry();
       $mw->window->set_override_redirect(1);
       $mw->window->move($win_pos_x-$geom[0], $win_pos_y-$geom[1]);
   }

Unfortunately it still pops up at (0,0) on the screen. I.e. the move
command doesn't work.

Regards,
Dov


Thanks. Yes, Tk uses overrideredirect to do this.  I have found a way to
work around it, by using 'popup', instead of 'toplevel'   The 'move' method 
to work.  Is a 'popup' window going to work like a 'toplevel' in most cases?

Popup window does have override redirect. Thus it will have all the
problems of override redirect windows. It will not honour desktops, it
will not be possible to set it's stacking order and it will not be
possible to minimize it.

You should use the tools the way they are meant to. It's a fvwm problem,
don't fix it in application causing bigger problems. If I started the
application eg. in Ion, it'd do the wrongest possible thing -- and
this time it would be your problem.

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec <bulb ucw cz>

Attachment: signature.asc
Description: Digital signature



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