From 9a529dc63647fc8691ea9dc0aab8d778081a9ca3 Mon Sep 17 00:00:00 2001
From: Ziusudra <ziusudra@gmail.com>
Date: Sun, 16 Dec 2012 15:51:27 -0700
Subject: [PATCH 7/9] Update SIGWINCH when setting terminal size
- wasn't happening when size change came from menu
---
src/apps/terminal/TermView.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp
index 8da3c92..e087546 100644
a
|
b
|
TermView::_InitObject(const ShellParameters& shellParameters)
|
613 | 613 | |
614 | 614 | // set the shell parameters' encoding |
615 | 615 | ShellParameters modifiedShellParameters(shellParameters); |
616 | | |
| 616 | |
617 | 617 | const BCharacterSet* charset |
618 | 618 | = BCharacterSetRoster::GetCharacterSetByConversionID(fEncoding); |
619 | 619 | modifiedShellParameters.SetEncoding(charset ? charset->GetName() : "UTF-8"); |
… |
… |
TermView::SetTermSize(int rows, int columns)
|
847 | 847 | offset + rows + 2); |
848 | 848 | } |
849 | 849 | |
| 850 | fFrameResized = true; |
| 851 | _UpdateSIGWINCH(); |
| 852 | |
850 | 853 | return rect; |
851 | 854 | } |
852 | 855 | |