Squashed commit of the following:

apps/graphics/twm4nx:  Other toolbar buttons need to be disabled while resizing.  Lots of problems if you decide to iconify or exit while resizing.  CResize now disables all buttons except for the RESIZE button while resizing.

    apps/graphics/twm4nx:  Add an event and logic to support notification of changes in the size of a window to NxTerm.

    Various updates to adapt to change in boardctl() interface.

    apps/graphics/twm4nx:  Correct an error in the NxTerm resize logic

    apps/graphics/twm4nx:  Update debug output when failures to send a message occur.  The returned value of -1 is not interested, need to show the errno value instead.

    apps/graphics/twm4nx:  Correct the maximum size of a message.  Recent changes caused message send failures because a message exceed that previous maximum size.

    apps/graphics/twm4nx:  Fix routing of redraw events.
This commit is contained in:
Gregory Nutt 2019-05-16 13:51:57 -06:00
parent 11fc2e4621
commit e76bfbb74e
17 changed files with 249 additions and 57 deletions

View file

@ -116,7 +116,8 @@ static void nxwndo_redraw(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
if (g_nxterm_vars.hdrvr)
{
struct boardioc_nxterm_redraw_s redraw;
struct boardioc_nxterm_ioctl_s iocargs;
struct nxtermioc_redraw_s redraw;
/* Inform the NX console of the redraw request */
@ -124,7 +125,10 @@ static void nxwndo_redraw(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
redraw.more = more;
nxgl_rectcopy(&redraw.rect, rect);
(void)boardctl(BOARDIOC_NXTERM_REDRAW, (uintptr_t)&redraw);
iocargs.cmd = NXTERMIOC_NXTERM_REDRAW;
iocargs.arg = (uintptr_t)&redraw;
(void)boardctl(BOARDIOC_NXTERM_IOCTL, (uintptr_t)&iocargs);
}
else
{