debian/changelog
author Ryan C. Gordon
Mon, 21 Aug 2017 00:42:06 -0400
changeset 11334 749cb40916f2
parent 10657 9b0144c1a492
child 11473 f0f6af2b086a
permissions -rw-r--r--
x11: specify event mask for buttons when grabbing pointer (thanks, Stas!).

This fixes a strange corner case (notes appended below), and should be
safe to do anyhow.

Fixes Bugzilla #3674.

"I did more tests.
It appears the bug only happens if there is
another window on the screen that has "always
on top" property. For me it is xawtv - it is
always opened in a screen corner. Closing
xawtv or removing "always on top" property
from it makes the problem to go away.
Plus, it doesn't appear like the buttons are
not delivered at all. It appears that instead
the button presses are delivered on some mouse
positions, but not delivered when you move the
mouse to other part of the window... So this is
really weird and is likely somewhere deep in the
Xorg.
Maybe somehow it happens that the cursor is
actually above the xawtv window, but, because
my app uses grab, it is not visible there, and
in that case the events are not delivered to
my app?
But with my patch the button events are
always delivered flawlessly, it seems.

Hmm, and that indeed seems to explain my problem:
if the mask is set properly and my app uses
grab, then, even if the mouse is above some
other window, the events would still be delivered
to the grabbing app, which is what actually wanted
because my app uses relative mouse mode, so it
doesn't know the pointer can cross some other window
(my app draws the pointer itself).
So my current theory is that my patch only enforces
the mouse grab, which otherwise can be tricked by
some other window preventing the button events
delivery (but motion events are still delivered
via xinput2, which makes it all look very obscure)."
     1 libsdl2 (2.0.5ubuntu1) UNRELEASED; urgency=low
     2 
     3   * Updated SDL to version 2.0.5
     4 
     5  -- Sam Lantinga <slouken@libsdl.org>  Mon, 28 Nov 2016 07:32:52 -0800
     6 
     7 libsdl2 (2.0.4ubuntu1) UNRELEASED; urgency=low
     8 
     9   * Updated SDL to version 2.0.4
    10 
    11  -- Sam Lantinga <slouken@libsdl.org>  Thu, 07 Jan 2016 11:02:39 -0800
    12 
    13 libsdl2 (2.0.3) UNRELEASED; urgency=low
    14 
    15   * Updated SDL to version 2.0.3
    16 
    17  -- Sam Lantinga <slouken@libsdl.org>  Sun, 9 Mar 2014 10:35:54 -0800
    18 
    19 libsdl2 (2.0.2) UNRELEASED; urgency=low
    20 
    21   * Updated SDL to version 2.0.2
    22 
    23  -- Sam Lantinga <slouken@libsdl.org>  Sun, 9 Feb 2014 2:55:59 -0800
    24 
    25 libsdl2 (2.0.1) UNRELEASED; urgency=low
    26 
    27   * Updated SDL to version 2.0.1
    28 
    29  -- Sam Lantinga <slouken@libsdl.org>  Wed, 23 Oct 2013 16:31:38 -0800
    30 
    31 libsdl2 (2.0.0) UNRELEASED; urgency=low
    32 
    33   * SDL is now a native debian package.
    34   * Removed udeb package
    35   * Disabled DirectFB support by default, to avoid runtime dependencies
    36 
    37  -- Sam Lantinga <slouken@libsdl.org>  Fri, 15 Feb 2013 08:55:04 -0800
    38 
    39 libsdl2 (2.0.0~20130127-1) UNRELEASED; urgency=low
    40 
    41   * New upstream snapshot.
    42 
    43  -- Sam Hocevar <sho@debian.org>  Wed, 30 Jan 2013 23:01:12 +0100
    44 
    45 libsdl2 (2.0.0~20130103-1) unstable; urgency=low
    46 
    47   [ Manuel A. Fernandez Montecelo ]
    48   * debian/control:
    49     - Updating maintainers/permissions:
    50       - Add myself and Felix Geyer
    51     - Update Build-Depends:
    52       - Remove a few obsolete items
    53       - Add items added lately to libsdl1.2, such as libts (touch screen)
    54         support
    55     - Add "libsdl2-dbg", analog to libsdl1.2-dbg
    56     - Change "XC-Package-Type: udeb" to "Package-Type"
    57   * debian/compat: set level 9
    58   * debian/source/format: Set to "3.0 (quilt)"
    59     - Remove README.source, not needed with new format
    60   * debian/sdl2-config.1: Fix typo, "progams"->"programs"
    61   * debian/libsdl2-dev.install:
    62     - Remove "usr/lib/*/*.la", discouraged
    63     - Add man pages: "usr/share/man/man3/*"
    64   * debian/libsdl2-dev.manpages: add file to install local "sdl2-config.1"
    65   * debian/sources: Removed, possible obsolete file from long ago?
    66   * debian/copyright:
    67     - Upstream updated to zlib/libpng
    68     - Copyright-file format conversion to 1.0
    69     - Complete revamp and detailed research about copyright and licenses used,
    70       it's very messy but hopefully complete
    71 
    72   [ Felix Geyer ]
    73   * Simplify debian/rules by using dh(1).
    74 
    75  -- Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>  Sun, 27 Jan 2013 16:40:49 +0100
    76 
    77 libsdl2 (2.0~20120220c-1) experimental; urgency=low
    78 
    79   * Upstream version was renamed to 2.0 (Closes: #669367).
    80   * New upstream snapshot (Closes: #671506).
    81   * This package no longer conflicts with libsdl-1.2.
    82   * debian/rules: add multiarch support (Closes: #669364).
    83 
    84   * debian/patches/fix_joystick_misc_axes.diff: fix a joystick remapping
    85     bug causing some axes to malfunction.
    86   * debian/patches/external_header_paths.diff: provide additional CFLAGS
    87     so that headers such as SDL_syswm.h can be included (Closes: #669363).
    88 
    89  -- Sam Hocevar <sho@debian.org>  Thu, 17 May 2012 19:03:59 +0200
    90 
    91 libsdl-1.3 (1.3.0~20111204-1) experimental; urgency=low
    92 
    93   * Initial upload from upstream snapshot.
    94 
    95  -- Sam Hocevar <sho@debian.org>  Sun, 04 Dec 2011 14:35:05 +0100
    96