X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Feventh.c;h=861007f4b06eb3da7564797025408f39a993be1b;hp=0a9a57a05bc4a1ca648cbaf5527b4ae8005190c8;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hpb=de22e45179cb3bafa490294d31d47f361047a30a diff --git a/ioncore/eventh.c b/ioncore/eventh.c index 0a9a57a..861007f 100644 --- a/ioncore/eventh.c +++ b/ioncore/eventh.c @@ -1,12 +1,9 @@ /* * ion/ioncore/eventh.c * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2009. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #include @@ -310,8 +307,10 @@ void ioncore_handle_enter_window(XEvent *ev) XEnterWindowEvent *eev=&(ev->xcrossing); WRegion *reg=NULL; - if(ioncore_g.input_mode!=IONCORE_INPUTMODE_NORMAL) + if(ioncore_g.input_mode!=IONCORE_INPUTMODE_NORMAL || + ioncore_g.no_mousefocus){ return; + } if(eev->mode!=NotifyNormal && !ioncore_g.warp_enabled) return;