mwm iconbox issue

mwm iconbox issue

Post by Chris Beut » Fri, 18 Sep 2009 08:11:27


After the last successful (for me) posting, thought I'd try
out the other problem which has us stumped. We've opened a
ticket with Red Hat on this one without much luck yet, perhaps
the general Motif community has some ideas or suggestions.

Environment again is a Red Hat Enterprise 5.2 system, Motif
version is 2.3.1 (openmotif-2.3.1-2.el5), and we've reproduced
it on Red Hat V5.3 as well.

Our legacy application launches a few monitoring windows on
an X display, and in the past (on DEC's Tru64 UNIX) we ran
these apps on the Motif window manager mwm. Since lots of
xterm windows are normally launched, we set the system up
to use the mwm iconBox feature to gather up all the icons
so that the screen isn't cluttered.

When we brought this environment forward to Linux and OpenMotif,
we can get the iconBox created as before, but the icons are
obscured. The lower right quadrant of each icon pixmap in the
iconbox are covered by an obscuring feature, and we can't figure
out why. This includes the "default" icon pixmap that mwm assigns
to apps like "xterm". If we disable the iconbox feature, the
icons are not obscured when the window is minimized, so this
situation is unique to the use of the iconbox.

So can anyone reproduce this? All we do is create a simple
Mwm resource file in the home directory of our test account
with the following single line:

Mwm*useIconBox: True

Then under Red Hat, we create a $HOME/.Xclients file which
simply sets up the X window screen, launches an xterm, and
execs mwm as follows:

xterm -n xterm -T xterm -geometry 80x25+0+500 -ls -fn 7x14 &
xsetroot -solid black
xset -c s off
exec mwm

We login after setting the "session" option on the login
screen to use this "default" setting rather than Gnome or KDE.
We've tried this on 3 different PCs (Compaq, Dell, HP) and
different graphics adapters and see the same thing - the icon
pixmap for the xterm has its lower right quadrant "obscured".
If you launch other xterms or apps from that xterm, those icons
in the iconbox have the same issue.

Any ideas???

Thanks,
Chris
 
 
 

mwm iconbox issue

Post by Chris Sore » Mon, 05 Oct 2009 01:11:56


Yes, I'm seeing the same behavior in OpenMotif-2.3.0.

I think this is supposed to be a "feature" indicating whether
the window is currently maximized. If you minimize the window does the
iconbox pixmap fill all the way out? The behavior is buggy and
inconsistent, for example the pixmap icons change the lower
right corner status if I minimize then maxmimize the iconbox itself.

The current Motif developers are at openmotif.org. You'd probably have
better luck raising this issue there. That's probably what Red Hat
would do for it anyway...

 
 
 

mwm iconbox issue

Post by Chris Beut » Wed, 07 Oct 2009 08:24:13

Chris,

Thanks for the posting and duplicating this, I'll prod the developers.
You were correct, I see the same thing - the icons are OK when the
window is minimized. I wonder what behavior they were really shooting
for there...

Regards,
Chris
 
 
 

mwm iconbox issue

Post by Chris Sore » Sun, 11 Oct 2009 04:44:59


From the source code comments:

* Description:
* -----------
* Make an graphic context for "greying" the icons in the icon
* box that are not in the MINIMIZED_STATE.

Not entirely clear they got what they were going for. The source
code hasn't been touched in the seven years since they got it from The
Open Group, as you can see here:

http://www.yqcomputer.com/

(the filenames are WmIcoWmIconBox.c and WmIcoWmIconBox.h)

It does look like they are doing bugfixes though, since five of the
CVS comments say "Fixed bug..."
 
 
 

mwm iconbox issue

Post by Chris Sore » Sun, 11 Oct 2009 04:48:12

>

Oops bad paste on those filenames! The actual filenames are
WmIconBox.c and WmIconBox.h - sheesh...
 
 
 

mwm iconbox issue

Post by Chris Beut » Wed, 14 Oct 2009 07:48:51

Chris,

Thanks for the pointers. A bug report has been posted on
this via Red Hat already.

http://www.yqcomputer.com/

Regards,
Chris
 
 
 

mwm iconbox issue

Post by Chris Sore » Tue, 27 Oct 2009 04:38:44


I just tried commenting out the one call to MakeFadeIconGC() in
WmIconBox.c, and it does NOT solve the problem.