stop raising like dumb

This commit is contained in:
Julien Danjou 2008-02-06 19:48:26 +01:00
parent b2e004b453
commit cdb85ad098
2 changed files with 1 additions and 14 deletions

View File

@ -199,8 +199,7 @@ client_focus(Client *c, int screen, Bool from_mouse)
globalconf.screens[screen].colors_selected[ColBorder].pixel);
XSetInputFocus(globalconf.display, c->win, RevertToPointerRoot, CurrentTime);
if(!from_mouse
|| !globalconf.screens[screen].sloppy_focus
|| globalconf.screens[screen].sloppy_focus_raise)
|| (globalconf.screens[screen].sloppy_focus && globalconf.screens[screen].sloppy_focus_raise))
XRaiseWindow(globalconf.display, c->win);
/* since we're dropping EnterWindow events and sometimes the window
* will appear under the mouse, grabbuttons */

View File

@ -38,16 +38,6 @@ extern AwesomeConf globalconf;
#include "layoutgen.h"
static void
layout_raise_floatings(int screen)
{
Client *c;
for(c = globalconf.clients; c; c = c->next)
if(c->isfloating && client_isvisible(c, screen))
XRaiseWindow(globalconf.display, c->win);
}
/** Arrange windows following current selected layout
* \param screen the screen to arrange
*/
@ -80,8 +70,6 @@ arrange(int screen)
client_focus(c, screen, False);
}
layout_raise_floatings(screen);
/* if we have a valid client that could be focused but currently no window
* are focused, then set the focus on this window */
if((c = focus_get_current_client(screen)) && !globalconf.focus->client)