mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-22 22:13:25 +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:
parent
a7466c3142
commit
015dbd9a96
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user