Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable annoying hotkeys in unity 2d
diff -Naur unity-2d.orig//unity-2d-4.12.0/launcher/app/launcherview.cpp unity-2d/unity-2d-4.12.0/launcher/app/launcherview.cpp
--- unity-2d.orig//unity-2d-4.12.0/launcher/app/launcherview.cpp 2011-09-29 18:12:44.000000000 +0400
+++ unity-2d/unity-2d-4.12.0/launcher/app/launcherview.cpp 2011-11-09 23:00:07.008801565 +0400
@@ -164,7 +164,7 @@
/* If the key is released, and was not being held, it means that the user just
performed a "tap". Unless we're told to ignore that tap, that is. */
if (!m_superKeyHeld && !m_superPressIgnored) {
- Q_EMIT superKeyTapped();
+ //Q_EMIT superKeyTapped();
}
/* Otherwise the user just terminated a hold. */
else if(m_superKeyHeld){
diff -Naur unity-2d.orig//unity-2d-4.12.0/panel/applets/appname/appnameapplet.cpp unity-2d/unity-2d-4.12.0/panel/applets/appname/appnameapplet.cpp
--- unity-2d.orig//unity-2d-4.12.0/panel/applets/appname/appnameapplet.cpp 2011-09-29 18:12:44.000000000 +0400
+++ unity-2d/unity-2d-4.12.0/panel/applets/appname/appnameapplet.cpp 2011-11-09 23:00:37.680803048 +0400
@@ -239,7 +239,7 @@
bool isUnderMouse = rect().contains(mapFromGlobal(QCursor::pos()));
bool isOpened = isOnSameScreen &&
(isUnderMouse
- || KeyboardModifiersMonitor::instance()->keyboardModifiers() == Qt::AltModifier
+ //|| KeyboardModifiersMonitor::instance()->keyboardModifiers() == Qt::AltModifier
|| d->m_menuBarWidget->isOpened()
);
bool showMenu = isOpened && !d->m_menuBarWidget->isEmpty() && isUserVisibleApp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment