mirror of
https://github.com/davatorium/rofi.git
synced 2025-03-17 17:14:42 -04:00
Don't talk to i3 if i3-mode is 0
This commit is contained in:
parent
07072de251
commit
4efeb421f2
1 changed files with 8 additions and 0 deletions
|
@ -73,6 +73,10 @@ static void exec_mark(const char *mark)
|
|||
{
|
||||
int s, t, len;
|
||||
struct sockaddr_un remote;
|
||||
if(config.i3_mode == 0) {
|
||||
fprintf(stderr, "Cannot use marks without i3 running\n");
|
||||
return ;
|
||||
}
|
||||
|
||||
if ( strlen( i3_socket_path ) > UNIX_PATH_MAX ) {
|
||||
fprintf( stderr, "Socket path is to long. %zd > %d\n", strlen( i3_socket_path ), UNIX_PATH_MAX );
|
||||
|
@ -130,6 +134,10 @@ static char ** get_mark ( )
|
|||
{
|
||||
unsigned int retv_index = 0;
|
||||
char **retv = NULL;
|
||||
if(config.i3_mode == 0) {
|
||||
fprintf(stderr, "Cannot use marks without i3 running\n");
|
||||
return retv;
|
||||
}
|
||||
#ifdef TIMING
|
||||
struct timespec start, stop;
|
||||
clock_gettime( CLOCK_REALTIME, &start );
|
||||
|
|
Loading…
Add table
Reference in a new issue