Changed search pattern to focus window by name to case-insensitive.

Summary: Sometimes a window has a name that's not like the application name, for example.  chromium-browser application will have a window name: Chromium-browser.  Most users will try to match the window name with "chromium-browser", but it wont work b/c the e's window name match is case sensitive.  Most users, would not know that the window name of chrome is "Chromium-browser", so it is pretty much impossible for them to setup a focus-to-window-name binding properly.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2645
This commit is contained in:
Toan Pham 2015-06-11 14:38:10 -04:00 committed by Mike Blumenkrantz
parent ba39887b26
commit 09d9384f1d
1 changed files with 1 additions and 1 deletions

View File

@ -1141,7 +1141,7 @@ window_jump_to(const char *params)
EINA_LIST_FOREACH(l, ll, ec)
{
if (!ec->icccm.name) continue;
if (strcmp(ec->icccm.name, params)) continue;
if (strcasecmp(ec->icccm.name, params)) continue;
/* Jump to the screen the window is on if it isn't on the current screen but
* only if we don't have to warp the pointer anyway */
current_zone = e_zone_current_get();