Created
November 9, 2011 18:44
-
-
Save mk0x9/1352470 to your computer and use it in GitHub Desktop.
Disable annoying hotkeys in unity 2d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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