bugfix: initialize matched to False, damn it
This commit is contained in:
parent
5c5e9418d7
commit
88b6f17410
8
client.c
8
client.c
|
@ -264,7 +264,7 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
|
||||||
Window trans;
|
Window trans;
|
||||||
Status rettrans;
|
Status rettrans;
|
||||||
XWindowChanges wc;
|
XWindowChanges wc;
|
||||||
ScreenInfo *screen_info = get_screen_info(awesomeconf->display, awesomeconf->screen, NULL);
|
ScreenInfo *screen_info;
|
||||||
awesome_config *current_acf = awesomeconf;
|
awesome_config *current_acf = awesomeconf;
|
||||||
|
|
||||||
c = p_new(Client, 1);
|
c = p_new(Client, 1);
|
||||||
|
@ -288,8 +288,8 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
|
||||||
if(!loadprops(c, awesomeconf->ntags))
|
if(!loadprops(c, awesomeconf->ntags))
|
||||||
{
|
{
|
||||||
Rule *r;
|
Rule *r;
|
||||||
Bool matched, has_rule = False;
|
Bool matched = False, has_rule = False;
|
||||||
for(r = awesomeconf->rules; r; r = r->next)
|
for(r = current_acf->rules; r; r = r->next)
|
||||||
if(client_match_rule(c, r))
|
if(client_match_rule(c, r))
|
||||||
{
|
{
|
||||||
has_rule = True;
|
has_rule = True;
|
||||||
|
@ -299,6 +299,7 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
|
||||||
if(r->screen != RULE_NOSCREEN && r->screen != c->screen)
|
if(r->screen != RULE_NOSCREEN && r->screen != c->screen)
|
||||||
{
|
{
|
||||||
current_acf = &awesomeconf[r->screen - awesomeconf->screen];
|
current_acf = &awesomeconf[r->screen - awesomeconf->screen];
|
||||||
|
tag_client_with_current_selected(c, current_acf);
|
||||||
move_client_to_screen(c, current_acf, True);
|
move_client_to_screen(c, current_acf, True);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -322,6 +323,7 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
screen_info = get_screen_info(current_acf->display, current_acf->screen, NULL);
|
||||||
/* if window request fullscreen mode */
|
/* if window request fullscreen mode */
|
||||||
if(c->w == screen_info[current_acf->screen].width && c->h == screen_info[current_acf->screen].height)
|
if(c->w == screen_info[current_acf->screen].width && c->h == screen_info[current_acf->screen].height)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue