Discussion:
FVWM: keeping window visible when increasing font size
José Romildo Malaquias
2011-09-30 22:45:07 UTC
Permalink
Hello.

When using a terminal like gnome-terminal, I can increase or decrease
the size of the font it uses with the key combinations (<Control><+> and
<Control><-> with the gnome-terminal).

When increasing the font size, the terminal window is resized without
changing the position of its top left corner. Eventually part of the
window may fall off the screen in its left and/or bottom sides, if there
is not enough screen space for the whole window. Then I have to
manually move the window in order to get it fully visible again.

This move could be done automatically though, as I have seen with other
window managers (like xfwm4 and enlightenment DR16), and it makes it
very confortable to increase the font size of the terminal. It could
work also with other windows too, like gvim, for instance.

Is it possible to have this behaviour in fvwm?

Romildo
Thomas Adam
2011-10-01 00:16:37 UTC
Permalink
This post might be inappropriate. Click to display it.
José Romildo Malaquias
2011-10-01 17:14:23 UTC
Permalink
Post by Thomas Adam
Post by José Romildo Malaquias
Hello.
When using a terminal like gnome-terminal, I can increase or decrease
the size of the font it uses with the key combinations (<Control><+> and
<Control><-> with the gnome-terminal).
When increasing the font size, the terminal window is resized without
changing the position of its top left corner. Eventually part of the
window may fall off the screen in its left and/or bottom sides, if there
is not enough screen space for the whole window. Then I have to
manually move the window in order to get it fully visible again.
This move could be done automatically though, as I have seen with other
window managers (like xfwm4 and enlightenment DR16), and it makes it
very confortable to increase the font size of the terminal. It could
work also with other windows too, like gvim, for instance.
Is it possible to have this behaviour in fvwm?
Not without writing a function to do so to then resize/move the window back
again. You can use FvwmEvent to listen for configure_window.
I have verified that many actions generates the configure_window event,
like moving or resizing a window with the mouse or keyboard. Is it
possible to distinguish a configure_window event originated from
changing the font size of the window (a terminal window, for instance)
from the other cases?

I am interested in fixing the window position only when the problem is
caused by a change in the font size.

Romildo
Thomas Adam
2011-10-01 17:17:21 UTC
Permalink
Post by José Romildo Malaquias
I have verified that many actions generates the configure_window event,
like moving or resizing a window with the mouse or keyboard. Is it
possible to distinguish a configure_window event originated from
changing the font size of the window (a terminal window, for instance)
from the other cases?
No.
Post by José Romildo Malaquias
I am interested in fixing the window position only when the problem is
caused by a change in the font size.
Then you're going to have to do something cleverer, I'm afraid. FVWM
isn't at fault here in how it's handling XTerm.

-- Thomas Adam

Loading...