[GRASS-dev] [GRASS GIS] #2191: d.menu R_panel_restore() filling with garbage from the X buffer

#2191: d.menu R_panel_restore() filling with garbage from the X buffer
-------------------------------+--------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: Display | Version: svn-develbranch6
Keywords: d.menu, D_popup() | Platform: Linux
      Cpu: x86-64 |
-------------------------------+--------------------------------------------
Hi,

there's a Xdriver rendering bug when calling d.menu, after it is complete
it should restore the monitor to how it was before the module started, but
there's something wrong in R_panel_restore() in
grass6/lib/display/popup.c. Instead of restoring the saved rectangle it
restores X-buffer junk.

i.ask and d.barscale use similar R_panel_*() calls and they work fine.
Coords in the panel's .tmp/ file looks ok AFAICT. It's pretty simple
function usage but I can't seem to see what's wrong.

example for r.li.setup:
{{{
d.mon x0
d.erase
d.menu bcolor=aqua tcolor=black << EOF
.T 20
.L 20
Next select area with mouse
           [ Ok ]
EOF
}}}

bug is present in at least grass versions 6.4.2-6.5svn.

?

thanks,
Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2191&gt;
GRASS GIS <http://grass.osgeo.org>