Changeset View
Changeset View
Standalone View
Standalone View
src/ViewManager.cpp
Show First 20 Lines • Show All 756 Lines • ▼ Show 20 Line(s) | 737 | { | |||
---|---|---|---|---|---|
757 | // Only happens when using the tab bar close button | 757 | // Only happens when using the tab bar close button | ||
758 | // if (_pluggedController) | 758 | // if (_pluggedController) | ||
759 | // emit unplugController(_pluggedController); | 759 | // emit unplugController(_pluggedController); | ||
760 | } | 760 | } | ||
761 | 761 | | |||
762 | TerminalDisplay *ViewManager::createTerminalDisplay(Session *session) | 762 | TerminalDisplay *ViewManager::createTerminalDisplay(Session *session) | ||
763 | { | 763 | { | ||
764 | auto display = new TerminalDisplay(nullptr); | 764 | auto display = new TerminalDisplay(nullptr); | ||
765 | display->setRandomSeed(session->sessionId() * 31); | 765 | display->setRandomSeed(session->sessionId() | (qApp->applicationPid() << 10)); | ||
766 | 766 | | |||
767 | return display; | 767 | return display; | ||
768 | } | 768 | } | ||
769 | 769 | | |||
770 | const ColorScheme *ViewManager::colorSchemeForProfile(const Profile::Ptr &profile) | 770 | const ColorScheme *ViewManager::colorSchemeForProfile(const Profile::Ptr &profile) | ||
771 | { | 771 | { | ||
772 | const ColorScheme *colorScheme = ColorSchemeManager::instance()-> | 772 | const ColorScheme *colorScheme = ColorSchemeManager::instance()-> | ||
773 | findColorScheme(profile->colorScheme()); | 773 | findColorScheme(profile->colorScheme()); | ||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |