Skip to content
Snippets Groups Projects
Commit af9e806e authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

Don't get through excluded windows when searching windows ata given position.

(Old svn revision: 12350)
parent 19b00c3b
No related branches found
No related tags found
No related merge requests found
......@@ -245,14 +245,15 @@ clientAtPosition (ScreenInfo *screen_info, int x, int y, Client * exclude)
for (index = g_list_last (screen_info->windows_stack); index; index = g_list_previous (index))
{
c2 = (Client *) index->data;
if (clientSelectMask (c2, 0, WINDOW_NORMAL | WINDOW_DIALOG | WINDOW_MODAL_DIALOG) && (c2 != exclude))
if ((frameX (c2) < x) && (frameX (c2) + frameWidth (c2) > x)
&& (frameY (c2) < y) && (frameY (c2) + frameHeight (c2) > y))
{
if ((frameX (c2) < x) && (frameX (c2) + frameWidth (c2) > x)
&& (frameY (c2) < y) && (frameY (c2) + frameHeight (c2) > y))
if (clientSelectMask (c2, 0, WINDOW_REGULAR_FOCUSABLE)
&& (c2 != exclude))
{
c = c2;
break;
}
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment