]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't redeem scroll bars that have been turned off.
authorMartin Rudalics <rudalics@gmx.at>
Tue, 5 Aug 2014 08:25:28 +0000 (10:25 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 5 Aug 2014 08:25:28 +0000 (10:25 +0200)
* w32term.c (w32_redeem_scroll_bar):
* xterm.c (XTredeem_scroll_bar): Revert part of last change by
not redeeming scroll bars that have been turned off.

src/ChangeLog
src/w32term.c
src/xterm.c

index d08cf69af8e9fed75f4d6238471cf842ea7ed99f..a5560f09e0fdd47ad4bb81ceac0a8ce57e2bcc37 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-05  Martin Rudalics  <rudalics@gmx.at>
+
+       * w32term.c (w32_redeem_scroll_bar):
+       * xterm.c (XTredeem_scroll_bar): Revert part of last change by
+       not redeeming scroll bars that have been turned off.
+
 2014-08-05 Dmitry Antipov  <dmantipov@yandex.ru>
 
        * keyboard.c (safe_run_hooks): Follow the convenient style to bind
index 0ded4398949a2df67e960c824a7d86f719bcf987..dfda29fb903993fff5f4beacfa98ef0a167e8fbc 100644 (file)
@@ -4041,7 +4041,7 @@ w32_redeem_scroll_bar (struct window *w)
   if (NILP (w->vertical_scroll_bar) && NILP (w->horizontal_scroll_bar))
     emacs_abort ();
 
-  if (!NILP (w->vertical_scroll_bar))
+  if (!NILP (w->vertical_scroll_bar) && WINDOW_HAS_VERTICAL_SCROLL_BAR (w))
     {
       bar = XSCROLL_BAR (w->vertical_scroll_bar);
       /* Unlink it from the condemned list.  */
@@ -4076,7 +4076,7 @@ w32_redeem_scroll_bar (struct window *w)
     }
 
  horizontal:
-  if (!NILP (w->horizontal_scroll_bar))
+  if (!NILP (w->horizontal_scroll_bar) && WINDOW_HAS_HORIZONTAL_SCROLL_BAR (w))
     {
       bar = XSCROLL_BAR (w->horizontal_scroll_bar);
       /* Unlink it from the condemned list.  */
index b106c51c01c80a29e7bcfa293c6c768590e02213..4ec38cfc5c6c2f9d817641485bb71adfb161c07c 100644 (file)
@@ -5948,7 +5948,7 @@ XTredeem_scroll_bar (struct window *w)
   if (NILP (w->vertical_scroll_bar) && NILP (w->horizontal_scroll_bar))
     emacs_abort ();
 
-  if (!NILP (w->vertical_scroll_bar))
+  if (!NILP (w->vertical_scroll_bar) && WINDOW_HAS_VERTICAL_SCROLL_BAR (w))
     {
       bar = XSCROLL_BAR (w->vertical_scroll_bar);
       /* Unlink it from the condemned list.  */
@@ -5983,7 +5983,7 @@ XTredeem_scroll_bar (struct window *w)
     }
 
  horizontal:
-  if (!NILP (w->horizontal_scroll_bar))
+  if (!NILP (w->horizontal_scroll_bar) && WINDOW_HAS_HORIZONTAL_SCROLL_BAR (w))
     {
       bar = XSCROLL_BAR (w->horizontal_scroll_bar);
       /* Unlink it from the condemned list.  */