diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-02-26 20:24:27 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-02-26 20:24:27 +0000 |
commit | ee5dc46fee6de72dbfd14de447ccf18d9fb9cd7a (patch) | |
tree | 4324d0c21db3b255198b681e836a360b7b0f2123 /ScreenManager.c | |
parent | a0810561f3bb86910ce0f43d9d673d29c576fcbb (diff) |
Don't end up killing init if process selected to be killed terminates before the user selects a signal. Closes #3606072.
Diffstat (limited to 'ScreenManager.c')
-rw-r--r-- | ScreenManager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ScreenManager.c b/ScreenManager.c index 9218909b..646ee2f0 100644 --- a/ScreenManager.c +++ b/ScreenManager.c @@ -173,7 +173,8 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) { for (int i = 0; i < this->panelCount; i++) { Panel* panel = (Panel*) Vector_get(this->panels, i); if (mevent.x > panel->x && mevent.x <= panel->x+panel->w && - mevent.y > panel->y && mevent.y <= panel->y+panel->h) { + mevent.y > panel->y && mevent.y <= panel->y+panel->h && + (this->allowFocusChange || panelFocus == panel) ) { focus = i; panelFocus = panel; Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV - 1); |