Commit graph

36 commits

Author SHA1 Message Date
Mathias Gumz
e105de7d46 merge Sami Kerola's new build-system 2014-04-11 17:42:40 +02:00
Mathias Gumz
f464f24eb3 fix detection of $HOME folder
usually $HOME is set when fluxbox runs. in some rare scenarios (eg., fuzzying
binaries to detect bugs) one could launch fluxbox by using 'env -i' and thus
eliminating $HOME from the environment. to prevent crashes fluxbox uses now
'getpwuid()' when $HOME is not set to detect the home folder.
2013-06-29 08:39:02 +02:00
Sami Kerola
47b9786533 build-sys: use AC_USE_SYSTEM_EXTENSIONS
The earlier _GNU_SOURCE definitions possibly did not take effect
everywhere where it was intended.
2013-05-26 10:38:10 +01:00
Sami Kerola
73b7958770 build-sys: include config.h to all files using automake
Do not try to be too smart which compilations need config.h, as most of
them will simply because of the config.h has information about system
capabilities.
2013-05-26 10:38:10 +01:00
Ryan Pavlik
5cb7326d22 fluxbox-update_configs.cc: Fix on windows - no kill or sigusr2 2011-10-31 10:54:09 -05:00
Pavel Labath
127ec08ae6 Fix "comparison between signed and unsigned" warning 2011-05-04 20:33:07 +02:00
Pavel Labath
86c9b100f3 Fix VPATH builds 2011-04-18 08:50:44 +02:00
Mathias Gumz
0ef76292c5 changed the way we create the '~/.fluxbox' directory to avoid race conditions
before bringing up the first instance of Fluxbox we prepare the directory
and the files it needs. if the config version of exiting files is lower
than what we expect, we upgrade the config files. after that we bring
up Fluxbox.

the old way was problematic because setupConfigFiles() calls
'fluxbox-update_configs' which does its job in the background while
fluxbox continues to boot. 'fluxbox-update_configs' sends a USR2 signal
to the booting fluxbox (it might even be finished, no one knows) which
triggers 'load_rc()' which triggered 'setupConfigFiles()' again which
might trigger 'fluxbox-update_configs' again (on my machine
'fluxbox-update_configs' was called 3 times and left a pretty crippled
'keys' file when it was done).

bootstrapping before bringing up fluxbox resolves the issue. as a bonus:
no need to send USR2 to fluxbox to reload the config file because fluxbox
has not even tried to read it yet.
2010-09-18 17:51:30 +02:00
Mathias Gumz
c9c741c88d cosmetic 2010-09-18 17:27:28 +02:00
Mathias Gumz
24e4e98dbe updated config version to '13' and adjusted 'fluxbox-update_configs' accordingly
our users should migrate seamlessly to our new windows-cycling behaviour
without losing their current way of doing things. so, 'fluxbox-update_configs'
tries its best to add '(workspace=[current])' wherever it looks like a valid
place for it. such changed lines are marked by '!! FBCV13' at the end and can
be easily spotted in case the updater got it wrong.

addtional changes:

* added '-check' to 'fluxbox-update_configs' to check the version number in
  '~/.fluxbox/init' vs. the version number of 'fluxbox-update_configs'

* moved the update-code for each version into its own function, easier
  housekeeping
2010-09-11 22:04:15 +02:00
Mathias Gumz
1e9dafdc67 fixed the default 'OnTitlebar Mouse1' actions 2010-09-04 14:41:11 +02:00
Mathias Gumz
bc2b21547b implemented 'ActivateTab' action to (re)allow activation of tabs via mouse 2010-08-20 19:01:25 +02:00
Mathias Gumz
e05230ea4b deploy new key-bindings to old keys-files via fluxbox-update_configs 2010-05-05 08:41:48 +02:00
Mathias Gumz
80e8cd071e just use the FbTk API 2009-10-02 08:38:24 +02:00
Mathias Gumz
1b4596ee85 bugfix: stop wiping out ~/.fluxbox/keys 2009-10-02 08:37:44 +02:00
Mathias Gumz
884db973bb cosmetic fixes: removed redundant ';' + some whitespaces 2009-09-30 21:02:24 +02:00
Mathias Gumz
df81e1f774 minor cosmetics 2009-05-25 08:04:41 +02:00
Mathias Gumz
2f9cce3687 compilefix 2009-03-04 20:24:59 +01:00
Mathias Gumz
014ff1f71c dont try to read file when they are actually a directory 2009-03-04 19:54:48 +01:00
Mark Tiefenbruck
68bf9796e8 fix updating of keys file for scrolling on toolbar 2008-09-09 22:10:19 -04:00
Mark Tiefenbruck
08c8c6431f use old focus/raise behavior for default alt+left/right mouse bindings 2008-08-26 09:59:01 -04:00
Mark Tiefenbruck
e5d43edb8e update keys file for changes to NextWindow syntax 2008-08-19 05:48:16 -07:00
Mark Tiefenbruck
2df84f6687 use the same options in Slit and Toolbar placement menus 2008-08-05 17:11:55 -07:00
skiidoo
be3ac3723d updated the copyright where it's easily visible: fluxbox -v and COPYRIGHT.
nls/translators: typo, plus Translation.m.desc never existed. Never.
more consistent keys file comments in fluxbox-update_config.
2008-06-11 07:47:02 +02:00
Mark Tiefenbruck
6cb26c97a9 don't add program icons to tabs for previous users, for backwards compatibility, but leave it as default for new users 2008-04-29 05:51:43 -07:00
Bernhard Walle
d300c62ba0 Fix build with g++ 4.3
This change fixes the build for g++ 4.3. Build verified on openSUSE Factory.
Only missing includes and using directives are added.
2008-03-25 20:59:52 +01:00
Mark Tiefenbruck
0a14d911c6 added key command StartTabbing 2007-12-20 23:07:46 -08:00
Mark Tiefenbruck
406b7e05eb remove `OnTitlebar Mouse2 :Lower', as it interferes with tabbing 2007-12-20 19:47:21 -08:00
markt
38877987c4 update default keys and init files for OnTitlebar code 2007-12-11 19:25:01 +00:00
markt
95f9c2d680 added OnTitlebar modifier to keys file 2007-12-09 20:47:41 +00:00
markt
5d7043320d allow arbitrary window patterns in iconbar 2007-11-12 21:59:43 +00:00
fluxgen
1748e8ec25 added missing mouse3 and space before startresizing 2007-10-22 18:19:11 +00:00
markt
c6a2605d76 replaced ModKey with new key commands StartMoving and StartResizing 2007-10-22 17:45:39 +00:00
markt
a59428d67a merged changes from pre-devel 2007-10-13 21:51:37 +00:00
markt
b735d405f5 allow negative indices in :Workspace <int> 2007-07-07 04:54:34 +00:00
markt
6fdda1a31d added mouse bindings to the keys file 2007-02-09 18:13:01 +00:00