https://bugzilla.xfce.org/show_bug.cgi?id=16763

            Bug ID: 16763
           Summary: patch for xfce-shortcuts-grabber.c which wrongly
                    ungrabs keys when updating grabbed ones
    Classification: Xfce Core
           Product: Libxfce4ui
           Version: 4.14.0
          Hardware: All
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 4.14

Created attachment 9800
  --> https://bugzilla.xfce.org/attachment.cgi?id=9800&action=edit
Proposed patch

Hi,

In FreeBSD a bug has been reported with XFCE wrongly managing keyboard
shortcuts [1].

The problem has been identified as xfce-shortcuts-grabber.c, when renewing
grabbed keys on keyboard change wrongly ungrabbing the new key instead of the
old one.

A fellow FreeBSD committer sent a patch which teaches xfce-shortcuts-grabber.c
to remember old keys and ungrab them correctly. His original submission (which
is what we are using in our ports tree at present) can be viewed here [2]

On his suggestion I slightly cleaned up his patch and am posting it here. I'd
like to have it included in the official tree, and will listen for any
suggestions to make it better.

The patch uses a fixed buffer with size 8 for old keys, to keep the patch
simple, avoiding the complications of memory allocation/deallocation.


[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244290

[2] https://reviews.freebsd.org/D24338

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Xfce-bugs mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce-bugs

Reply via email to