mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
Fix a newly exposed bug, i3 indicating an active window that does not exists
This commit is contained in:
parent
3a14ec9746
commit
fb56250d18
1 changed files with 7 additions and 2 deletions
|
@ -647,9 +647,14 @@ void monitor_active ( workarea *mon )
|
||||||
&& type == XA_WINDOW && count > 0 )
|
&& type == XA_WINDOW && count > 0 )
|
||||||
{
|
{
|
||||||
XWindowAttributes *attr = window_get_attributes ( id );
|
XWindowAttributes *attr = window_get_attributes ( id );
|
||||||
|
// Window might not exists anymore.
|
||||||
|
// This could very well be a bug in i3.
|
||||||
|
if ( attr != NULL )
|
||||||
|
{
|
||||||
monitor_dimensions ( screen, attr->x, attr->y, mon );
|
monitor_dimensions ( screen, attr->x, attr->y, mon );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue