[colobot] 295/390: Alt+tab minimize to taskbar (#391, fixes #329)
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit 78795c4b44fc56a145e79e79a607950156372639
Author: krzys-h <krzys_h at interia.pl>
Date: Sun Mar 22 16:10:32 2015 +0100
Alt+tab minimize to taskbar (#391, fixes #329)
---
src/app/app.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/app/app.cpp b/src/app/app.cpp
index b7c1a32..b642cc0 100644
--- a/src/app/app.cpp
+++ b/src/app/app.cpp
@@ -1065,6 +1065,13 @@ Event CApplication::ProcessSystemEvent()
// See issue #427 for details
if(event.key.key == KEY(KP_ENTER))
event.key.key = KEY(RETURN);
+
+ if(event.key.key == KEY(TAB) && ((event.kmodState & KEY_MOD(ALT)) != 0))
+ {
+ GetLogger()->Debug("Minimize to taskbar\n");
+ SDL_WM_IconifyWindow();
+ event.type = EVENT_NULL;
+ }
}
else if ( (m_private->currentEvent.type == SDL_MOUSEBUTTONDOWN) ||
(m_private->currentEvent.type == SDL_MOUSEBUTTONUP) )
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list