summaryrefslogtreecommitdiffstats
path: root/opensuse/tdebase/dont-always-start-kaccess.diff
diff options
context:
space:
mode:
authorRobert Xu <[email protected]>2011-11-10 18:04:39 -0500
committerRobert Xu <[email protected]>2011-11-10 18:04:39 -0500
commit21fcfa3348213aa87f0e3aef62ca4720c6d31cb7 (patch)
tree2cfb64c59322628e613ed0895e3c3694d3abe6bd /opensuse/tdebase/dont-always-start-kaccess.diff
parent8667643bff14a60d8571c599efd3e48bed3e3b12 (diff)
downloadtde-packaging-21fcfa3348213aa87f0e3aef62ca4720c6d31cb7.tar.gz
tde-packaging-21fcfa3348213aa87f0e3aef62ca4720c6d31cb7.zip
initial commit to suse branch: eclipse integration
Diffstat (limited to 'opensuse/tdebase/dont-always-start-kaccess.diff')
-rw-r--r--opensuse/tdebase/dont-always-start-kaccess.diff66
1 files changed, 0 insertions, 66 deletions
diff --git a/opensuse/tdebase/dont-always-start-kaccess.diff b/opensuse/tdebase/dont-always-start-kaccess.diff
deleted file mode 100644
index f50747274..000000000
--- a/opensuse/tdebase/dont-always-start-kaccess.diff
+++ /dev/null
@@ -1,66 +0,0 @@
-Index: kcontrol/access/kcmaccess.cpp
-===================================================================
---- kcontrol/access/kcmaccess.cpp.orig
-+++ kcontrol/access/kcmaccess.cpp
-@@ -103,10 +103,57 @@ void ExtendedIntNumInput::slotSliderValu
-
- static bool needToRunKAccessDaemon( KConfig *config )
- {
-- // We always start the KAccess Daemon, if it is not needed,
-- // it will terminate itself after configuring the AccessX
-- // features.
-- return true;
-+ KConfigGroup bell( config, "Bell" );
-+
-+ if (!bell.readBoolEntry("SystemBell", true))
-+ return true;
-+ if (bell.readBoolEntry("ArtsBell", false))
-+ return true;
-+ if (bell.readBoolEntry("VisibleBell", false))
-+ return true;
-+
-+ KConfigGroup keyboard( config, "Keyboard" );
-+
-+ if (keyboard.readBoolEntry("StickyKeys", false))
-+ return true;
-+ if (keyboard.readBoolEntry("SlowKeys", false))
-+ return true;
-+ if (keyboard.readBoolEntry("BounceKeys", false))
-+ return true;
-+ if (keyboard.readBoolEntry("Gestures", true))
-+ return true;
-+ // Find out whether the gestures are activated by default in the X configuration or not.
-+ int major = XkbMajorVersion;
-+ int minor = XkbMinorVersion;
-+ if (XkbLibraryVersion(&major, &minor))
-+ {
-+ int opcode_rtrn;
-+ int error_rtrn;
-+ int xkb_opcode;
-+ if (XkbQueryExtension(qt_xdisplay(), &opcode_rtrn, &xkb_opcode, &error_rtrn,
-+ &major, &minor))
-+ {
-+ if(XkbDescPtr xkbdesc = XkbGetMap(qt_xdisplay(), 0, XkbUseCoreKbd))
-+ {
-+ if(XkbGetControls(qt_xdisplay(), XkbAllControlsMask/*XkbAccessXKeysMask*/, xkbdesc ) == Success )
-+ {
-+ if(xkbdesc->ctrls->enabled_ctrls & XkbAccessXKeysMask)
-+ {
-+ XkbFreeClientMap(xkbdesc,0,True);
-+ return true;
-+ }
-+ }
-+ XkbFreeClientMap(xkbdesc,0,True);
-+ }
-+ }
-+ }
-+
-+ KConfigGroup mouse( config, "Mouse" );
-+
-+ if (mouse.readBoolEntry("MouseKeys", false))
-+ return true;
-+
-+ return false; // don't need it
- }
-
- QString mouseKeysShortcut (Display *display) {