Loading ...
Sorry, an error occurred while loading the content.

Status line obscured by Gnome panel

Expand Messages
  • Tony Houghton
    I ve run into a small problem with GTK vim 62 under Gnome 2.4 with metacity window manager on Linux. When I maximise the window with certain sizes of font, the
    Message 1 of 4 , Jan 31, 2004
    View Source
    • 0 Attachment
      I've run into a small problem with GTK vim 62 under Gnome 2.4 with
      metacity window manager on Linux. When I maximise the window with
      certain sizes of font, the bottom half of the status line gets obscured
      by my Gnome panel. I made a quick and dirty patch (see below) to fix it
      for me, but I'm not sure whether it's correct for other platforms.

      --- vim62/src/gui.c 2003-05-17 20:46:27.000000000 +0100
      +++ vim62th/src/gui.c 2004-01-27 23:26:12.000000000 +0000
      @@ -1211,7 +1211,7 @@

      gui.num_cols = (pixel_width - gui_get_base_width()) / gui.char_width;
      gui.num_rows = (pixel_height - gui_get_base_height()
      -#if !defined(FEAT_GUI_PHOTON) && !defined(FEAT_GUI_MSWIN)
      +#if 0 /* !defined(FEAT_GUI_PHOTON) && !defined(FEAT_GUI_MSWIN) */
      + (gui.char_height / 2)
      #endif
      ) / gui.char_height;
      --
      TH * http://www.realh.co.uk
    • Bram Moolenaar
      ... I suspect this is a problem in your window manager. I just tried it out with KDE 3.1, and the Vim window immediately resizes when I switch between hiding
      Message 2 of 4 , Feb 1, 2004
      View Source
      • 0 Attachment
        Tony Houghton wrote:

        > I've run into a small problem with GTK vim 62 under Gnome 2.4 with
        > metacity window manager on Linux. When I maximise the window with
        > certain sizes of font, the bottom half of the status line gets obscured
        > by my Gnome panel. I made a quick and dirty patch (see below) to fix it
        > for me, but I'm not sure whether it's correct for other platforms.
        >
        > --- vim62/src/gui.c 2003-05-17 20:46:27.000000000 +0100
        > +++ vim62th/src/gui.c 2004-01-27 23:26:12.000000000 +0000
        > @@ -1211,7 +1211,7 @@
        >
        > gui.num_cols = (pixel_width - gui_get_base_width()) / gui.char_width;
        > gui.num_rows = (pixel_height - gui_get_base_height()
        > -#if !defined(FEAT_GUI_PHOTON) && !defined(FEAT_GUI_MSWIN)
        > +#if 0 /* !defined(FEAT_GUI_PHOTON) && !defined(FEAT_GUI_MSWIN) */
        > + (gui.char_height / 2)
        > #endif
        > ) / gui.char_height;

        I suspect this is a problem in your window manager. I just tried it out
        with KDE 3.1, and the Vim window immediately resizes when I switch
        between hiding the panel or not. It appears Vim adjusts its size to the
        available room correctly.

        --
        A)bort, R)etry, D)o it right this time

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
        \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
      • Mikolaj Machowski
        ... This is problem of window manager, not Vim. -- LaTeX + Vim = http://vim-latex.sourceforge.net/ Vim-list(s) Users Map: (last change 1 Feb)
        Message 3 of 4 , Feb 1, 2004
        View Source
        • 0 Attachment
          Dnia Sunday 01 of February 2004 16:20, Bram Moolenaar napisaƂ:
          > Tony Houghton wrote:
          > > I've run into a small problem with GTK vim 62 under Gnome 2.4 with
          > > metacity window manager on Linux. When I maximise the window with
          > > certain sizes of font, the bottom half of the status line gets obscured
          > > by my Gnome panel. I made a quick and dirty patch (see below) to fix it
          > > for me, but I'm not sure whether it's correct for other platforms.
          >
          > I suspect this is a problem in your window manager. I just tried it out
          > with KDE 3.1, and the Vim window immediately resizes when I switch
          > between hiding the panel or not. It appears Vim adjusts its size to the
          > available room correctly.

          This is problem of window manager, not Vim.
          --
          LaTeX + Vim = http://vim-latex.sourceforge.net/
          Vim-list(s) Users Map: (last change 1 Feb)
          http://skawina.eu.org/mikolaj/vimlist
          Are You There?
        • Tony Houghton
          ... [Patch snipped] ... It does seem to be window-manager specific. Metacity hides the bottom frame edge of all maximised windows, and in the case of gvim it
          Message 4 of 4 , Feb 1, 2004
          View Source
          • 0 Attachment
            In <200402011520.i11FKkIK014454@...>, Bram Moolenaar wrote:

            > Tony Houghton wrote:
            >
            > > I've run into a small problem with GTK vim 62 under Gnome 2.4 with
            > > metacity window manager on Linux. When I maximise the window with
            > > certain sizes of font, the bottom half of the status line gets obscured
            > > by my Gnome panel. I made a quick and dirty patch (see below) to fix it
            > > for me, but I'm not sure whether it's correct for other platforms.

            [Patch snipped]

            > I suspect this is a problem in your window manager. I just tried it out
            > with KDE 3.1, and the Vim window immediately resizes when I switch
            > between hiding the panel or not. It appears Vim adjusts its size to the
            > available room correctly.

            It does seem to be window-manager specific. Metacity hides the bottom
            frame edge of all maximised windows, and in the case of gvim it seems to
            think there's more space than there really is for some reason.

            --
            TH * http://www.realh.co.uk
          Your message has been successfully submitted and would be delivered to recipients shortly.