fix vlc bug

This commit is contained in:
Julien Danjou 2007-09-15 20:24:40 +02:00
parent 2c3dc9a4dc
commit 9cdc7c3ef9
2 changed files with 3 additions and 2 deletions

View file

@ -105,7 +105,8 @@ scan(Display *disp, DC *drawcontext, awesome_config *awesomeconf)
for(i = 0; i < num; i++)
{
if(!XGetWindowAttributes(disp, wins[i], &wa)
|| wa.override_redirect || XGetTransientForHint(disp, wins[i], &d1))
|| wa.override_redirect
|| XGetTransientForHint(disp, wins[i], &d1))
continue;
if(wa.map_state == IsViewable || getstate(disp, wins[i]) == IconicState)
manage(disp, drawcontext, wins[i], &wa, awesomeconf);

View file

@ -413,7 +413,7 @@ manage(Display * disp, DC *drawcontext, Window w, XWindowAttributes * wa, awesom
attach(c);
attachstack(c);
XMoveResizeWindow(disp, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
ban(c);
c->isbanned = True;
arrange(disp, drawcontext, awesomeconf);
}