mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Remove HUP signal handler as it is incorrect. #193, to be re-added later
This commit is contained in:
parent
2bbd589f0d
commit
70f4f3d119
3 changed files with 0 additions and 55 deletions
|
@ -595,13 +595,6 @@ This way it can be used as a drop-in replacement for dmenu. just copy or symlink
|
|||
|
||||
ln -s /usr/bin/dmenu /usr/bin/rofi
|
||||
|
||||
## SIGNALS
|
||||
|
||||
`HUP`
|
||||
|
||||
If in daemon mode, reload the configuration from Xresources. (commandline arguments still
|
||||
override Xresources).
|
||||
|
||||
## THEMING
|
||||
|
||||
With **rofi** 0.15.4 we have a new way of specifying colors, the old settings still apply (for now).
|
||||
|
|
16
doc/rofi.1
16
doc/rofi.1
|
@ -1071,22 +1071,6 @@ ln \-s /usr/bin/dmenu /usr/bin/rofi
|
|||
.
|
||||
.IP "" 0
|
||||
.
|
||||
.SH "SIGNALS"
|
||||
\fBHUP\fR
|
||||
.
|
||||
.IP "" 4
|
||||
.
|
||||
.nf
|
||||
|
||||
If in daemon mode, reload the configuration from Xresources\. (commandline arguments still
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.IP "" 0
|
||||
.
|
||||
.P
|
||||
override Xresources)\.
|
||||
.
|
||||
.SH "THEMING"
|
||||
With \fBrofi\fR 0\.15\.4 we have a new way of specifying colors, the old settings still apply (for now)\. To enable the new setup, set \fBrofi\.color\-enabled\fR to true\. The new setup allows you to specify colors per state, similar to \fBi3\fR Currently 3 states exists:
|
||||
.
|
||||
|
|
|
@ -1716,32 +1716,6 @@ static inline void load_configuration_dynamic ( Display *display )
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Handle sighup request.
|
||||
* Currently we just reload the configuration.
|
||||
*/
|
||||
static void hup_action_handler ( int num )
|
||||
{
|
||||
if ( num == SIGHUP ) {
|
||||
/**
|
||||
* Open new connection to X. It seems the XResources do not get updated on the old
|
||||
* connection.
|
||||
*/
|
||||
if ( find_arg ( "-no-config" ) < 0 ) {
|
||||
Display *display = XOpenDisplay ( display_str );
|
||||
if ( display ) {
|
||||
load_configuration ( display );
|
||||
load_configuration_dynamic ( display );
|
||||
|
||||
// Sanity check
|
||||
config_sanity_check ( );
|
||||
parse_keys_abe ();
|
||||
XCloseDisplay ( display );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void show_error_message ( const char *msg, int markup )
|
||||
{
|
||||
// Create pid file
|
||||
|
@ -1934,12 +1908,6 @@ int main ( int argc, char *argv[] )
|
|||
}
|
||||
}
|
||||
}
|
||||
// Setup handler for sighup (reload config)
|
||||
const struct sigaction hup_action = {
|
||||
.sa_handler = hup_action_handler
|
||||
};
|
||||
sigaction ( SIGHUP, &hup_action, NULL );
|
||||
|
||||
|
||||
// Application Main loop.
|
||||
// This listens in the background for any events on the Xserver
|
||||
|
|
Loading…
Reference in a new issue