Commit graph

8 commits

Author SHA1 Message Date
Mathias Gumz
bd519dd952 Remove various unused variables
Clang and Gcc-4.9 complaint about some unused variables here
and there. And who are we to not make a compiler happy :)
2015-01-03 18:43:44 +01:00
Paul Tagliamonte
34656ac622 Returning EXIT_FAILURE on exit in fluxbox-remote. 2013-06-18 18:02:38 +02:00
Mathias Gumz
dc47491533 Adds 'ClientPatternTest' command
ClientPatterns might be tricky to get right. Instead of fiddling around in
either the keys-file or the apps-file and restarting fluxbox to see if the
changes had any effect / matched the right windows, 'ClientPatternTest' and
the fluxbox-remote should make this easier:

    $> fluxbox-remote "clientpatterntest (title=.*vim*)"

This causes fluxbox to store the list of matched windows in the
_FLUXBOX_ACTION_RESULT property onto the rootwindow. This property might
then be read by:

    $> xprop -root _FLUXBOX_ACTION_RESULT

or

    $> fluxbox-remote result

The format of the list is:

    win_id \t title_of_window \n

win_id is '-1' when fluxbox wasn't able to parse the given ClientPattern.
win_id is '0' when there are no windows matching the given ClientPattern.
2013-01-31 09:14:06 +01:00
nacitar sevaht
2f166eb4ae fluxbox-remote now properly returns exit status
The previous check relied upon the (undocumented) return value of
XChangeProperty to determine the exit status; at least, on my gentoo system,
the function seems to return 1 even when it fails to change the property
due to contrived, and invalid, parameters.  However, setting an error
handler allows proper detection of this case.  So, now the return status
properly indicates whether or not the property was changed (but not
whether fluxbox liked the command!).
2011-05-08 07:47:02 +02:00
Mark Tiefenbruck
9c105111d2 remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
markt
ae3c304239 some security fixes for fluxbox-remote, and a minor change for the gvim fix 2007-07-03 22:56:46 +00:00
mathias
24c023192f minor cosmetics to fluxbox-remote, display of usage 2007-07-03 19:04:46 +00:00
markt
b70f4c144c fix updating of systemtray and kde dockapps in slit on background change
added fluxbox-remote.cc
2007-07-03 18:50:53 +00:00