stop raising like dumb
This commit is contained in:
parent
b2e004b453
commit
cdb85ad098
3
client.c
3
client.c
|
@ -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 */
|
||||
|
|
12
layout.c
12
layout.c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue