#583652 xfwm4: Opening of gvim windows is out of the screen partially (bottom part)

Package:
xfwm4
Source:
xfwm4
Description:
window manager of the Xfce project
Submitter:
Gregory Hainaut
Date:
2010-12-15 18:42:03 UTC
Severity:
normal
#583652#5
Date:
2010-05-29 08:13:42 UTC
From:
To:
Hi,

When opening a gvim windows, the bottom part is out the screen which is
cumbersome to use the integrated command line.
The behavior appear only 4.6.2-1. I downgrade xfwm4 to 4.6.1-1 and the bug goes
away. Still the bug can be in vim because it seems to work with others
application.

Step to reproduce the problem.
1/ Open a terminal (xfce4-terminal).
2/ Increase the windows terminal size because the size of the windows gvim
seems related to the size of the terminal.
3/ Move the terminal in the up of the screen to ensure the gvim windows will be
open in the bottom of the screen.
4/ Launch gvim from the terminal
5/ Bottom of gvim windows is hidden.

Note: I attached a screenshot of the bottom of my screen. On the left the gvim
windows cut. On the middle the terminal. On the right a standard full gvim
windows.

Cheers,

#583652#10
Date:
2010-05-29 09:24:40 UTC
From:
To:
Hmmh, seems I can't reproduce that, but I do notice weird behaviors with
gvim windows run from a terminal

Basically, it seems that it tries to inherit the window size from the
terminal. Depending on how you configured smart placement in xfwm4, that
might be related.

Here, the smart placement is configured to be active even for small
windows. What is your smart placement setting? (in settings manager,
window manager tweaks, placement)

Cheers,

#583652#15
Date:
2010-05-29 09:55:38 UTC
From:
To:
On Sat, 29 May 2010 11:24:40 +0200 Yves-Alexis Perez <corsac@debian.org> wrote:

Well I try to play with smart placement.

I used the option "at center of the screen". When smart placement is on
large. It disable the smart placement, and so the windows is at the
center of the screen so no a problem. When it is enabled for small size
I have the issue.

For the moment I will disable the smart placement. The issue seems to
occured when the smart placement tools place the gvim windows in the
bottom.

Cheers

#583652#20
Date:
2010-05-29 10:17:44 UTC
From:
To:
Fwiw, I use “Under the mouse cursor” and the size at minimum, and it
doesn't trigger (meaning, if there's not enough room to place the gvim
window, it'll overlap the terminal window, not go outside the screen).

Something which might be worth investigating is if you had at one point
another screen plugged in and detected? Maybe it would confuse xfwm? Or
is it reproducible even just after starting X, without anything else
plugged in?

Cheers,

#583652#25
Date:
2010-05-30 12:07:11 UTC
From:
To:
Hi,

Not sure if I understand correctly. I have only one monitor. So I
unplugged it in the startup. Launch my PC, wait enough and replug it.
Still same behavior.

I also done a test with a new fresh user and a fresh vim configuration.
Same issue.

Additional note, it need some space between the terminal and the bottom
of the screen.

I do not know if it could help. When I open a thunar window,
it is in the good place (aka not off-screen). If I maximize the vim
window, then it is go back to the screen. Screen size seems to be fine.

Well I have found something strange. It is possible to configure menu
bar/tools bar etc... in gvim.

When I disable everything. My window is good. In this situation gvim
windows is smaller than the terminal one.
When I enable some bars. My windows is bad. The size of the part
offscreen seems equal of the bars. And gvim window is bigger than the
terminal one.

IMHO it is probably worth it to investigate the inheritance size of
window.

Cheers.

#583652#30
Date:
2010-12-15 18:39:10 UTC
From:
To:
Hi,

Here additional information from anothers user. Like him, I hide a
bottom taskbar. Hope it can help.

Cheers,
Gregory

*****************************************************

When opening gvim as a large window (gvim -geom 180x70) its smart
placed below the taskbar at the bottom of the screen. If the taskbar is
set to autohide, gvim will drop off the screen. Maybe 10 pixels are
lost, if started with a file (gvim /etc/services) then i lose the tail
of the 'p' in 'Top' in the bottom right corner.

When starting xterm as a large window (xterm -geom 100x100) its placed
accurately within the screen and above the taskbar. Starting xterm as a
small window places it centrally as expected, depending on the slider
configuration for window smart placement.

Interestingly when gvim is started as a small window, same size as
xterm (-geom 30x20), its not centrally placed, but smart placed around
the edge of the screen, as I have a lot of windows open. When a small
gvim is placed along the bottom it still is shifted down behind the
taskbar, but not as far as a large window is.

It seems as though xfce does not know the exact size of the gvim window
to place it accurately and to know whether to smart place it or not.