[SOLVED] XFCE keyboard shortcuts don't work anymore [-current]
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
XFCE keyboard shortcuts don't work anymore [-current]
I'm using -current (xfce-4.6.2)
I've noticed that the shortcuts I define aren't working anymore. The ones I define through windowmanager -> keyboard are ok, but the ones through keyboard-> application shortcuts are ignored.
I've just hit this bug today. In case this is of help to anyone, the problem is an invalid free in xfce4-settings-helper/pointers.c. The commit which fixes this is commit 92b0b61cf7cd82861d8a7ff407b0b2b927b4151f in the xfce4-settings git repository.
Code:
commit 92b0b61cf7cd82861d8a7ff407b0b2b927b4151f
Author: Nick Schermer <nick@xfce.org>
Date: Thu Dec 2 18:55:48 2010 +0100
Fix free of invalid memory (bug #6909).
diff --git a/xfce4-settings-helper/pointers.c b/xfce4-settings-helper/pointers.c
index a1a352d..6e37202 100644
--- a/xfce4-settings-helper/pointers.c
+++ b/xfce4-settings-helper/pointers.c
@@ -310,7 +310,7 @@ xfce_pointers_helper_change_feedback (XDevice *device,
gint threshold,
gdouble acceleration)
{
- XFeedbackState *states;
+ XFeedbackState *states, *pt;
gint num_feedbacks;
XPtrFeedbackControl feedback;
gint n;
@@ -323,10 +323,10 @@ xfce_pointers_helper_change_feedback (XDevice *device,
if (G_LIKELY (states))
{
/* get the pointer feedback class */
- for (n = 0; n < num_feedbacks; n++)
+ for (pt = states, n = 0; n < num_feedbacks; n++)
{
/* find the pointer feedback class */
- if (states->class == PtrFeedbackClass)
+ if (pt->class == PtrFeedbackClass)
{
if (acceleration > 0 || acceleration == -1)
{
@@ -351,7 +351,7 @@ xfce_pointers_helper_change_feedback (XDevice *device,
/* create a new feedback */
feedback.class = PtrFeedbackClass;
feedback.length = sizeof (XPtrFeedbackControl);
- feedback.id = states->id;
+ feedback.id = pt->id;
feedback.threshold = threshold;
feedback.accelNum = num;
feedback.accelDenom = denom;
@@ -364,7 +364,7 @@ xfce_pointers_helper_change_feedback (XDevice *device,
}
/* advance the offset */
- states = (XFeedbackState *) ((gchar *) states + states->length);
+ pt = (XFeedbackState *) ((gchar *) pt + pt->length);
}
/* cleanup */
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.