Switch branches/tags
Nothing to show
Commits on May 20, 2012
  1. Updating readme.

    committed May 20, 2012
  2. Making sure tab text color gets reset/changed.

    There was never a reset for the hasData private variable. This variable
    determines if it will have to update the color, and if it does, it will
    only happen once when unfocused. The problem was that this variable never
    got reset back to false. So the text color only changed once, ever.
    committed May 20, 2012
  3. Two fixes, didn't know why I didn't commit earlier

    First fix: Remove child panel mapping when we are closing out the
    child window. This was insignificant before, but now that we are
    relying on the content of this mapping to get a valid ctlPuttyPanel,
    we need to prune old instances. Otherwise we will be having problems
    with null references.
    Second fix: Changing tabs between a putty tab and a mintty tab does
    not result in the title being changed. It could have been the case
    between mintty windows as well, but I didn't notice it then. Anyway,
    this now updates the window's text when the tabs are being changed.
    committed May 20, 2012
  4. Ensuring a ctlPuttyPanel is retrieved.

    Since a lot of our code depends on a ctlPuttyPanel instance, we've
    been getting it from Content[1]. However, this will not work if there
    is a session tree view that is currently being displayed. As a result,
    we are retrieving the first one from our own mapping, hopefully this
    should be the last of the wrong type, though very unlikely :(.
    committed May 20, 2012
  5. Fixed bug where handle is lost.

    When we call OnHandleDestroyed after killing off the child window.
    The event for the HandleDestroyed event inside of ctlPuttyPanel tries
    to retrieve the child handle and gets 0. As a result, it does not
    remove the child handle from frmSupperPutty.children mapping. Since
    we rely on the size of this dictionary for selecting tabs, we are now
    going off of the end of the tab index. Null pointer :(.
    committed May 20, 2012
  6. Fixed an annoying bug that caused new lines.

    This only exists in mintty. When the window gets minimized, the width
    gets set to 0. So the child mintty window's width get set to 0. This
    somehow caused an "enter key" behavior behavior on the mintty window
    and the prompt goes down one line. I don't even know how I found this
    bug, it's mainly luck :).
    committed May 20, 2012
  7. Adding WS_EXSTYLE constants.

    committed May 20, 2012
Commits on May 19, 2012
  1. Fix null exception in DockContentHandler.

    This happens when putty closes and then it tries to focus on the
    current Pane. The pane no longer exists, so we need to put in a check
    for it.
    committed May 19, 2012
  2. Fix a bug where on minimize/maximize.

    Not sure what is going on here, reverting back to WS_BORDER instead
    of using WS_CAPTION. Still need to fix the bug where the line feed
    gets inserted when minimized and maximized.
    committed May 19, 2012
  3. Replace the window title with the tab title.

    Temporarily remove the old code to see if it causes any problems,
    I have seen none so far. Now the title of the window and the title
    of the tab is synchronized with each other.
    committed May 19, 2012
  4. Removing additional styles from putty.

    This gives a better look/feel on the inner window. At least on
    Win7, there's no more raised border for the inner child window.
    committed May 19, 2012
  5. Removing another compiler warning.

    We were defining the Finalize method, which the compiler gave us a
    warning. Not sure how things worked in previous versions of .NET, but
    a breakpoint inside the Finalize never got hit. Effectively, I am not
    sure if we ever unhooked the WinEvent. I moved the unhook to the
    OnHandleDestroyed method, which gets executed when the panel is closed.
    committed May 19, 2012
  6. Removing the proto string.

    This was causing an annoying warning. It also looks like a few lines
    down that proto is already assigned directly into the SessionData object
    so this variable is not needed for anything temporary.
    committed May 19, 2012
  7. Fix bugs on initial create and null exception.

    For the null exception, it's when the last tab gets closed and the
    code tries to focus on ActiveDocument. Since it no longer exists, a
    null pointer exception is thrown.
    The second bug is on the creation of the first tab. It needs to be
    focused after it is created.
    committed May 19, 2012
  8. Adding hotkey to hide/show top menu.

    Going for the minimal look here. With the new Alt + H hotkey, we can
    now hide the top menu.
    committed May 19, 2012
  9. Adding in state for view menu items.

    So now if the session tree view is opened, there will be a check
    mark right by the option in View. The same goes for the quick connect
    committed May 19, 2012
Commits on May 18, 2012
  1. Tab title color now changes when there's output.

    When there's output in a tab that's not in the foreground, the tab
    title changes its color to red. This requires a modification in
    DockPanel Suite to allow for a change in the text color and a way
    to refresh the content individually when updates were made.
    This also required a change in mintty to output its content on stdout
    when passing in "-l -" option in the command line. You can follow
    the issue at, hopefully
    the patch gets accepted. Otherwise, I will provide the mintty version
    with that change along with this application.
    committed May 18, 2012
Commits on May 15, 2012
  1. Extracted WinAPI functions into its own class.

    Things were getting a bit messy with winapi functions being set
    everywhere and constants being set everywhere. This is an initial
    attempt to refactor out all of that and put it into one place for
    easier usage in the future.
    committed May 15, 2012
  2. Clean up a bit of code.

    committed May 15, 2012
  3. More hacks for focusing on putty.

    Another hack for my quest to have the putty window properly focused.
    This deals with when you maximize/restore and minimize & restore.
    Previously, the putty window will lose focus. Not anymore!
    committed May 15, 2012
  4. Different mutex for putty release/debug.

    This is so that I can have a release version while working on edits
    for the debug version.
    committed May 15, 2012
  5. Ensuring that SuperPutty always show on activate.

    There were instances when using Window + <number> where SuperPutty
    did not activate. This forces it to appear at the top.
    committed May 15, 2012
  6. Making title bar pink in debug mode.

    This is to easily differentiate between a development SuperPutty
    and the normal version of SuperPutty that I am using.
    committed May 15, 2012
Commits on May 14, 2012
  1. Tab selection didn't focus the correct child.

    This was an odd bug and I don't know why refresh() fixes it, but
    it does, so I'm sticking with it :).
    committed May 14, 2012
  2. Allow hiding of the quick connect bar at top.

    This is a visual improvement to increase the viewable area of the
    children window.
    committed May 14, 2012
  3. Finally, an alt tab solution that works!

    At first I tried the WM_ACTIVATE, didn't work because the event
    does not give enough information (or I misused it) to determine
    if you are activated from a child or an external window.
    Then I tried a hook on EVENT_SYSTEM_FOREGROUND, but for some reason,
    the event gets swallowed randomly. So it would sometimes activate
    the child and sometimes it wouldn't.
    The final solution that did work is a SHELLHOOK to detect when a
    window is activated. Using the trick of determining if the activated
    window is a child or not and set the focus properly.
    committed May 14, 2012
  4. Forgot to use the member variable.

    Since it was using a local variable, this could cause the program
    crash, boo!
    committed May 14, 2012
Commits on May 13, 2012
  1. Hook into NCACTIVATE to never allow inactive.

    We send the message manually to draw the window as always active.
    We then short circuit the message by setting the result to true and
    never calling the base WndProc.
    committed May 13, 2012
  2. Adding hacks to keep children windows focused.

    This change hooks into a mouse click on the title bar and resize
    event to keep the children window focused. A further hack needed
    to be done on the title bar click because we can't intercept the
    WH_NCLBUTTONUP event, it gets swallowed up for one reason or
    another. A way around this is to detect MOUSEMOVE after a
    committed May 13, 2012
Commits on May 12, 2012