Patch 9.0.1303
Problem:    Motif: scrollbar width/height wrong when maximized.
Solution:   Set the width/height when creating the scrollbar. (closes #11946)
Files:      src/gui_motif.c


*** ../vim-9.0.1302/src/gui_motif.c     2023-01-22 21:14:32.613863616 +0000
--- src/gui_motif.c     2023-02-11 19:06:42.811133565 +0000
***************
*** 1695,1701 ****
                XmNtopOffset, y,
                XmNleftOffset, x,
                XmNrightOffset, gui.which_scrollbars[SBAR_RIGHT]
!               ? gui.scrollbar_width : 0,
                XmNheight, h,
                NULL);
      XtManageChild(sb->id);
--- 1695,1701 ----
                XmNtopOffset, y,
                XmNleftOffset, x,
                XmNrightOffset, gui.which_scrollbars[SBAR_RIGHT]
!                                                    ? gui.scrollbar_width : 0,
                XmNheight, h,
                NULL);
      XtManageChild(sb->id);
***************
*** 1788,1796 ****
      int               orient) // SBAR_VERT or SBAR_HORIZ
  {
      Arg               args[16];
!     int               n;
  
-     n = 0;
      XtSetArg(args[n], XmNminimum, 0); n++;
      XtSetArg(args[n], XmNorientation,
            (orient == SBAR_VERT) ? XmVERTICAL : XmHORIZONTAL); n++;
--- 1788,1795 ----
      int               orient) // SBAR_VERT or SBAR_HORIZ
  {
      Arg               args[16];
!     int               n = 0;
  
      XtSetArg(args[n], XmNminimum, 0); n++;
      XtSetArg(args[n], XmNorientation,
            (orient == SBAR_VERT) ? XmVERTICAL : XmHORIZONTAL); n++;
***************
*** 1801,1818 ****
--- 1800,1820 ----
            XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); n++;
            XtSetArg(args[n], XmNbottomAttachment, XmATTACH_OPPOSITE_FORM); n++;
            XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); n++;
+           XtSetArg(args[n], XmNwidth, gui.scrollbar_width); n++;
            break;
  
        case SBAR_RIGHT:
            XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); n++;
            XtSetArg(args[n], XmNbottomAttachment, XmATTACH_OPPOSITE_FORM); n++;
            XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); n++;
+           XtSetArg(args[n], XmNwidth, gui.scrollbar_width); n++;
            break;
  
        case SBAR_BOTTOM:
            XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); n++;
            XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); n++;
            XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); n++;
+           XtSetArg(args[n], XmNheight, gui.scrollbar_height); n++;
            break;
      }
  
*** ../vim-9.0.1302/src/version.c       2023-02-11 16:15:46.140840726 +0000
--- src/version.c       2023-02-11 19:12:03.862899412 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1303,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
116. You are living with your boyfriend who networks your respective
     computers so you can sit in separate rooms and email each other

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230211191331.7F5721C0830%40moolenaar.net.

Raspunde prin e-mail lui