Sloppy focus.

SVN revision: 14875
This commit is contained in:
sebastid 2005-05-20 18:46:32 +00:00 committed by sebastid
parent bbe5d45ce7
commit 9fd4cc15e7
4 changed files with 8 additions and 5 deletions

View File

@ -8,7 +8,7 @@ _NET_CLIENT_LIST [X]
_NET_CLIENT_LIST_STACKING [X]
_NET_CLOSE_WINDOW [ ]
_NET_CURRENT_DESKTOP [ ]
_NET_DESKTOP_GEOMETRY [ ]
_NET_DESKTOP_GEOMETRY [?] /* Listen to _NET_DESKTOP_GEOMETRY requests */
_NET_DESKTOP_LAYOUT [ ]
_NET_DESKTOP_LAYOUT_S [ ]
_NET_DESKTOP_NAMES [ ]

View File

@ -28,8 +28,9 @@ typedef enum _E_Stacking
typedef enum _E_Focus_Policy
{
E_FOCUS_CLICK = 0,
E_FOCUS_MOUSE = 1
E_FOCUS_CLICK,
E_FOCUS_MOUSE,
E_FOCUS_SLOPPY
} E_Focus_Policy;

View File

@ -30,7 +30,8 @@ e_focus_idler_before(void)
void
e_focus_event_mouse_in(E_Border* bd)
{
if (e_config->focus_policy == E_FOCUS_MOUSE)
if ((e_config->focus_policy == E_FOCUS_MOUSE)
|| (e_config->focus_policy == E_FOCUS_SLOPPY))
e_border_focus_set(bd, 1, 1);
bd->raise_timer = NULL;

View File

@ -250,9 +250,10 @@ _e_opt_focus_policy_set(char **params)
value = 0;
if (!strcmp(params[0], "MOUSE")) value = E_FOCUS_MOUSE;
else if (!strcmp(params[0], "CLICK")) value = E_FOCUS_CLICK;
else if (!strcmp(params[0], "SLOPPY")) value = E_FOCUS_SLOPPY;
else
{
printf("focus must be MOUSE or CLICK\n");
printf("focus must be MOUSE, CLICK or SLOPPY\n");
exit(-1);
}
data = e_ipc_codec_int_enc(value, &bytes);