1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 10:33:01 +01:00

fix: Fix non-working bell notifications

The problem with the bell notifications only happens when Toxic is
compiled with X11 support, but does not run under X. This commit changes
toxic's behavior such that it behaves identically when not running under an
X session, no matter if it has been compiled with X11 support or not.
This commit is contained in:
Johannes Heimansberg 2020-08-24 08:36:02 +02:00
parent a7466c3142
commit 015dbd9a96
No known key found for this signature in database
GPG Key ID: 6106CE2794050022

View File

@ -302,7 +302,7 @@ static long unsigned int focused_window_id(void)
int is_focused(void)
{
return Xtra.proxy_window == focused_window_id() || Xtra.terminal_window == focused_window_id();
return Xtra.display && (Xtra.proxy_window == focused_window_id() || Xtra.terminal_window == focused_window_id());
}
int init_xtra(drop_callback d)