Age | Commit message (Collapse) | Author | Files | Lines |
|
the deleted function was never used, otherwise it would generate an error with other compilers as
well. icc noticed that it was nonsensical even when it wasn't used and complained.
|
|
|
|
|
|
instead of submenus. This is more in line (no pun intended :P) with how the old menu files worked.
|
|
|
|
|
|
The reason for this is that I need to access those enums from fluxbox-update_configs and I don't
want to #include and link everything in src.
I also merged Slit::Placement, Toolbar::Placement and FbWinFrame::TabPlacement into one enum.
|
|
|
|
This resource is a bit special, so I forgot to add an autosave call to it.
|
|
|
|
by adding the ability to automatically check for modifications at specified intervals.
Using inotify() would be better, but that's not always present.
|
|
|
|
As we integrate lua more and more into the core of fluxbox, it's going to progressively harder to
update all things that reference to the old state.
Furthermore, I would like to completely drop the reconfiguration at some point, after I'm
finished with making sure that all resources use the modifiedSig signal to update automatically.
|
|
|
|
The idea is that connecting to a signal doesn't change it's state or the state of the object
owning the signal (even though it needs to add the functor to the list for later reference).
Emitting, on the other hand, is usually done as a result of a state change and therefore remains
non-const.
Additional benefit of this arrangement is that objects can export const references to signals to
allow connecting, while keeping the ability to emit to themselves.
|
|
|
|
|
|
as far as i can tell, they weren't doing anything and I observed no issues after removing them.
|
|
I mostly do this to avoid code duplication between fluxbox and fluxbox-update_configs.
|
|
previously, init was autosaved only when a resource was modified using the menu. I have also
included modifications through lua code.
To avoid wasting resources, the file is not saved immediately, but with a 5 second delay (to
enable saving a bunch of changes in one go)
|
|
without this it wasn't possible to construct a Slot returning void from functors returning some
real value because the compiler would complain about "return statement with a value in a function
returning void".
Theoretically, this may produce some unexpected type conversions, because static_cast is slightly
stronger than implicit cast, but I judge the risk to be negligable (the alternative would be to
provide explicit specializations for slots returning void - too much typing)
|
|
|
|
connectSlot
I do this to avoid compiler ambiguity between the two versions of connect()
|
|
as it's no longed needed
|
|
|
|
this was already present in the old menu files, but I did not notice, because generally the title
is same as the label in the parent menu. Now menu title is set by the 'title' property, which
falls back to 'label' if it's empty.
|
|
This way, global variables set by the scripts don't persist between hard reconfigures.
I also cleaned up the reconfig-handling code in fluxbox.cc. Instead of three reconfig functions
(real_reconfig, timed_reconfig, reconfig) we have just one.
|
|
keybindings are now added like this
some_keymode['Ctrl F1'] = 'RootMenu'
This should be more intuitive and it allows things like this
foo['Ctrl F1'] = bar['Mod1 F2']
|
|
|
|
I uncoupled the binding lookup from actual adding. This will make it easier to add functions for
removing bindings.
|
|
hopefully, i have now updated all files that contain config file names.
|
|
|
|
new keymodes are created (in lua) by calling newKeyMode() and activated by calling
keymode:activate()
|
|
These can be used by functions to check the saneness of arguments. They throw an exception on
error. In the future, I might add more informative error messages.
|
|
an equivalent of rawsetfield, but for "read only" tables.
|
|
without them, gcc would compare them by converting them to bool first, which is not exactly what
one would expect. Frankly, I'm surprised it even worked without this.
|
|
|
|
keybindings are added by calling the addBinding method of default_keymode. It keys two
parameters: the keys to which the action is bound to and the action itself. The action can be
specified as a string (which is passed to CommandParser) or as a lua function.
Support for multiple keymodes is forthcoming. For the time being, I removed the BindKey and
KeyMode commands, as they will take a bit different form.
|
|
|
|
I'm doing this because I want to have access to keybindings from lua and for that I need more
flexible ownership semantics.
|
|
it is too easy too shoot yourself in the foot with it, other smart pointers also don't allow such
assignments. If you do want to assign to a RefCount pointer, use reset().
ps: assignment between two RefCounts remains possible, of course.
|
|
|
|
|
|
|
|
|
|
|
|
ps: previously, one had to restart fluxbox for changes to this resource to take effect.
|
|
|
|
|
|
|