Permalink
Switch branches/tags
Commits on Apr 29, 2017
  1. Fix #25682: Ignore "shift" when the hotkey is ":"

    aginor committed Apr 29, 2017
    This adds a second part, during the hotkey creation from an event,
    to the hack around colons. It also ensures that the right field is
    compared when checking for existing matching hotkeys for keyboard-based
    hotkeys.
  2. Merge pull request #1003 from wesnoth/composed_hotkeys

    aginor committed Apr 29, 2017
    Composed hotkeys
Commits on Apr 28, 2017
  1. Pipe raw SDL events throught the GUI2 event system for hotkeys

    aginor committed Apr 28, 2017
    This adds support for passing raw SDL events throught the GUI2
    event system in order to allow for hotkey creation in the GUI2 hotkey
    dialog. The dialog in turn uses the raw SDL event to query the hotkey
    subsystem whether it's a suitable event to create a hotkey from or not.
    
    The first suitable event is used to create a hotkey.
  2. Fix 24681: Proper filtering of modifiers when handling hotkeys

    aginor committed Apr 8, 2017
    This adds proper handling for composition of input and also handles
    raw key up/down properly when there are modifiers applied to the
    keyboard that stops composition.
  3. Fix #24681: Use composed hotkeys where appropriate and revert help to…

    aginor committed Mar 10, 2017
    … be ':'
    
    This enables textinput events in SDL and adds handling of them. The events
    are processed for hotkeys if the length of the hotkey string is 1 (which is the
    case for all straightforward hotkeys).
Commits on Jan 3, 2017
  1. Fix the check for timeout command options

    aginor committed Jan 3, 2017
    The check to see whether the timeout command is capable of sending
    SIGKILL was broken. This fixes the check, which in turn will ensure
    that tests are always terminated. This will resolve travis deciding
    that the entire build has timed out.
Commits on Dec 28, 2016
  1. Fix CMAKE build

    aginor committed Dec 28, 2016
    This fixes the broken includes that stopepd the IEEE 754 check from compiling.
Commits on Nov 19, 2016
  1. Ensure that callers of int_to_color get an opaque colour instead of a…

    aginor committed Nov 19, 2016
    … fully transparent colour.
  2. Define a bitmask for and bitshift for SDL colors

    aginor committed Nov 19, 2016
    This defines, and starts to use, bitmasks for SDL colours. They are primarily defined here so that they can be used in more places in future changes.
Commits on Oct 3, 2016
  1. Remove SDL_GPU #idfefs and library

    aginor committed Oct 3, 2016
    Commands run:
    find . -type f -name "*.hpp" | xargs coan source --replace --no-transients -U"SDL_GPU"
    find . -type f -name "*.cpp" | xargs coan source --replace --no-transients -U"SDL_GPU"
    
    This was followed by grepping and a bit of manual editing to remove
    defunct TODO items and the empty sdl/gpu.hpp file.
Commits on Aug 13, 2016
  1. Merge pull request #748 from wesnoth/staging-event-handlers

    aginor committed Aug 13, 2016
    Staging area for event handlers
Commits on Aug 5, 2016
  1. Merge pull request #717 from wesnoth/bug24553fix

    aginor committed Aug 5, 2016
    Fix bug #24553: Prevent the display from drawing over the storyscreen.
Commits on Aug 1, 2016
  1. Merge branch 'monte-carlo-damage-calculation' of https://github.com/j…

    aginor committed Aug 1, 2016
    …yrkive/wesnoth into jyrkive-monte-carlo-damage-calculation
Commits on Jul 29, 2016
  1. Fix bug #24553: Prevent the display (and others) from drawing over th…

    aginor committed Jul 29, 2016
    …e storyscreen.
    
      This also adds a call to stop flips during a full redraw as a consequence of a window event.
Commits on Jul 28, 2016
  1. Fix crash by reintroduce splice.

    aginor committed Jul 28, 2016
    This fixes a crash that would be caused by memory incorrectly being freed
    when removed from a list. Relying on splice stops that from happening.
    
    This also fixes an exit condition when deleting handlers as depth could
    sometimes not be decremented.
    
    Finally, checks are made to made sure that an sdl_handler is either
    exclusively in the global context or a different context, ensuring
    that they cannot be in both.
Commits on Jul 22, 2016
  1. Merge pull request #709 from jyrkive/fix-event-context-crash

    aginor committed Jul 22, 2016
    Fix undefined behavior on destroying an event context
Commits on Jul 18, 2016
  1. Merge pull request #696 from wesnoth/Vultraz-event_handling_fixes

    aginor committed Jul 18, 2016
    Refactored event contexts to use lists instead of vectors
Commits on Jul 17, 2016
  1. Ensure that focus handling stays the same as before the fix

    aginor committed Jul 17, 2016
  2. Fix crash in context destructor

    aginor committed Jul 17, 2016
    This fixes a crash that was seen when the context destructor was calling
    either leave or leave_global while iterating over the list. The current iterator
    handle would be invalidated and further calls to it would return invalid values.
  3. Move the global event context onto the general event queue.

    aginor committed Jul 17, 2016
    This moves the global event context onto the general event queue
    and creates it through RAII instead.
  4. Change const_iterator to iterator in an attempt to appease travis.

    aginor committed Jul 17, 2016
  5. Add a destructor to the context class.

    aginor committed Jul 17, 2016
    This adds a destructor to the context class to ensure that any joined
    event_handlers leave the context before it is deallocated.
    It also changes the preferences to explicitly leave the global event
    context as it is destroyed instead of when the event handler is
    destroyed during _exit().
    Also replace std::list.splice with push_back and erase(iterator) in
    an attempt to avoid compile errors on older versions of gcc.
Commits on Jul 16, 2016
  1. Update changelog

    aginor committed Jul 16, 2016
  2. Merge pull request #697 from wesnoth/flickerfix

    aginor committed Jul 16, 2016
    Hacky fix for the flickering when a screen is fully redrawn.
Commits on Jul 15, 2016
  1. Use RAII instead of lock->unlock directly.

    aginor committed Jul 15, 2016
  2. Hacky fix for the flickering when a screen is fully redrawn.

    aginor committed Jul 15, 2016
    The fix supresses the call to flip() while a full redrawn
    is performed. The flip calls are instead deferred to
    then next draw-cycle.
Commits on Jul 14, 2016
  1. Fix crashes in the focus cycling code.

    aginor committed Jul 14, 2016
    This ensures that the focus_handler is correctly initialised and
    that cycle_focus() iterates over the current handlers correctly.
  2. Merge branch 'event_handling_fixes' of https://github.com/Vultraz/wes…

    aginor committed Jul 14, 2016
    …noth into Vultraz-event_handling_fixes
Commits on Jul 11, 2016
  1. Fix bug #24762: Avoid modifying the event handlers at the wrong time

    aginor committed Jul 11, 2016
    This resurrects the old check that was used to determine when it was
    safe to create the buttons. It avoids it happening as a result of an
    actual draw-all event, instead only happening when the GUI is being
    updated.
Commits on Jul 9, 2016
  1. Fix bug #24762: Recreate buttons GUI buttons on a full redraw

    aginor committed Jul 9, 2016
    This re-creates the main display-gui() buttons on a full redraw to take
    into account that the theme expects them to be out of sync. As a
    consequence I have also been forced to refactor how said buttons are
    managed and introduced a new method to join the same event context
    as another component.