[GRASS5] monitor resize

I have a question. I remember I was able to resize the XDRIVER
monitor by dragging the edge of the window with mouse. But now I
cannot, maybe from 6.0 (?). Is this intended (then why?) or a
window manager problem?

It should work. Try with another WM; are you using Fluxbox or something
more exotic?

Hamish

____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

On Sat, Aug 20, 2005 at 07:59:07PM -0700, Hamish wrote:

> I have a question. I remember I was able to resize the XDRIVER
> monitor by dragging the edge of the window with mouse. But now I
> cannot, maybe from 6.0 (?). Is this intended (then why?) or a
> window manager problem?

It should work. Try with another WM; are you using Fluxbox or something
more exotic?

Resizing is disabled if you are using an interactive command
such as i.points etc. It get's enabled again once you leave the
command.

Markus

I tried twm, WindowMaker, Fluxbox, evilwm, ion, wmi2, ...

twm, evilwm, wmi2: resizing works
WindowMaker, Fluxbox, ion: resizing doesn't work

It depends on which WM I use. Does this mean that some WMs ignore the
USSize hint? Or is the USSize hint supposed to not allow WM to resize the
window? If this is the latter case, I think XDRIVER should be fixed.

Huidae Cho

On Sat, Aug 20, 2005 at 07:59:07PM -0700, Hamish wrote:

> I have a question. I remember I was able to resize the XDRIVER
> monitor by dragging the edge of the window with mouse. But now I
> cannot, maybe from 6.0 (?). Is this intended (then why?) or a
> window manager problem?

It should work. Try with another WM; are you using Fluxbox or something
more exotic?

Hamish

____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

Huidae Cho wrote:

I tried twm, WindowMaker, Fluxbox, evilwm, ion, wmi2, ...

twm, evilwm, wmi2: resizing works
WindowMaker, Fluxbox, ion: resizing doesn't work

It depends on which WM I use. Does this mean that some WMs ignore the
USSize hint? Or is the USSize hint supposed to not allow WM to resize the
window? If this is the latter case, I think XDRIVER should be fixed.

When a client connects, the WM_NORMAL_HINTS property is updated to
include minimum and maximum size settings (PMinSize, PMaxSize) equal
to the current window size, to prevent the window from being resized
while a client is using it. Once the client disconnects, the min/max
size settings are removed.

With some window managers, the min/max settings appear to "stick".
As a quick test:

1. Start the monitor with the "-s" switch, which prevents mon.select
from being run; at that point, the min/max size settings will never
have been applied.

2. Try resizing the monitor.

3. Run "d.mon select=...", which will connect to the monitor, causing
the min/max size settings to be applied and removed.

4. Try resizing the monitor again.

--
Glynn Clements <glynn@gclements.plus.com>

1. d.mon -s start=x0
2. d.mon select=x0
3. Resizing works!

But,

1. d.mon -s start=x0; d.mon select=x0
2. Resizing doesn't work!

But!

1. d.mon -s start=x0; sleep 1; d.mon select=x0
2. Resizing works!

It's interesting! Maybe, WM doesn't have enough time to do something
when select is executed immediately after start.

Do you have any idea?

Huidae Cho

On Tue, Aug 23, 2005 at 10:56:06PM +0100, Glynn Clements wrote:

Huidae Cho wrote:

> I tried twm, WindowMaker, Fluxbox, evilwm, ion, wmi2, ...
>
> twm, evilwm, wmi2: resizing works
> WindowMaker, Fluxbox, ion: resizing doesn't work
>
> It depends on which WM I use. Does this mean that some WMs ignore the
> USSize hint? Or is the USSize hint supposed to not allow WM to resize the
> window? If this is the latter case, I think XDRIVER should be fixed.

When a client connects, the WM_NORMAL_HINTS property is updated to
include minimum and maximum size settings (PMinSize, PMaxSize) equal
to the current window size, to prevent the window from being resized
while a client is using it. Once the client disconnects, the min/max
size settings are removed.

With some window managers, the min/max settings appear to "stick".
As a quick test:

1. Start the monitor with the "-s" switch, which prevents mon.select
from being run; at that point, the min/max size settings will never
have been applied.

2. Try resizing the monitor.

3. Run "d.mon select=...", which will connect to the monitor, causing
the min/max size settings to be applied and removed.

4. Try resizing the monitor again.

--
Glynn Clements <glynn@gclements.plus.com>

Huidae Cho wrote:

1. d.mon -s start=x0
2. d.mon select=x0
3. Resizing works!

But,

1. d.mon -s start=x0; d.mon select=x0
2. Resizing doesn't work!

But!

1. d.mon -s start=x0; sleep 1; d.mon select=x0
2. Resizing works!

It's interesting! Maybe, WM doesn't have enough time to do something
when select is executed immediately after start.

Do you have any idea?

The difference between the second and third cases suggests that it's a
bug in the WM, as being able to resize should only depend upon the
current settings, not previous settings.

The properties start off with just USSize set. When a client connects,
they change to PSize|PMinSize|PMaxSize; when it disconnects, it
reverts to just PSize.

The one thing which will definitely fix it is to bypass the calls to
set_size(). But then the responsibility for ensuring that the window
isn't resized while a client is connected falls to the user.

--
Glynn Clements <glynn@gclements.plus.com>