From: terencehill Date: Wed, 15 Dec 2010 19:16:38 +0000 (+0100) Subject: check whether stop ctrl-tab selection only at the mouse click X-Git-Tag: xonotic-v0.5.0~358 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0a855bdf80a0631c7d702ad7381582c119490334;p=xonotic%2Fxonotic-data.pk3dir.git check whether stop ctrl-tab selection only at the mouse click --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index e7273bae1..f4ebdec55 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1514,14 +1514,14 @@ void HUD_Panel_Mouse() if(mouseClicked) { - if (tab_panel != -1) - { - //stop ctrl-tab selection - tab_panel = -1; - reset_tab_panels(); - } if(prevMouseClicked == 0) { + if (tab_panel != -1) + { + //stop ctrl-tab selection + tab_panel = -1; + reset_tab_panels(); + } HUD_Panel_Highlight(); // sets highlightedPanel, highlightedAction, panel_click_distance, panel_click_resizeorigin // and calls HUD_Panel_UpdatePosSizeForId() for the highlighted panel if (highlightedPanel != -1)