aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
AgeCommit message (Collapse)AuthorFilesLines
2012-04-07Move declarations of Resource enums to a separate filePavel Labath1-59/+28
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.
2012-04-07Add new translations to the C locale and fluxbox-nls.hhPavel Labath1-1/+3
2012-04-07Automatically save init file when a resource is modifiedPavel Labath1-29/+20
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)
2012-04-07Rename new config files to <foo>.luaPavel Labath1-1/+1
2012-04-07Attach modifiedSig handlers to the session.screenX.tab.width resourcePavel Labath1-8/+1
2012-04-07Attach modifiedSig handlers to the session.screenX.tab.placement resourcePavel Labath1-3/+3
2012-04-07Attach modifiedSig handlers to the session.screenX.tabs.intitlebar resourcePavel Labath1-1/+1
2012-04-07Attach modifiedSig handlers to the session.screenX.tooltipDelay resourcePavel Labath1-0/+3
ps: previously, one had to restart fluxbox for changes to this resource to take effect.
2012-04-07Attach modifiedSig handlers to session.screenX.menu{Delay,Alpha} resourcesPavel Labath1-4/+4
2012-04-07Attach modifiedSig handlers to session.screenX.(un)focusedAlpha resourcesPavel Labath1-2/+6
2012-04-07Attach modifiedSig handlers to the session.screenX.windowMenu resourcePavel Labath1-11/+4
2012-04-07Attach a modifiedSig handler to the session.cacheMax resourcePavel Labath1-1/+3
2012-04-07Attach a modifiedSig handler to the session.cacheLife resourcePavel Labath1-1/+3
2012-04-07Attach a modifiedSig handler to the session.menuFile resourcePavel Labath1-5/+5
2012-04-07Attach a modifiedSig handler to the session.styleFile resourcePavel Labath1-5/+0
2012-04-07Emit the "modified" signal when a resource value is changed through C++ codePavel Labath1-2/+3
2012-04-07Add RangeTraits class which automatically clamps the value of resourcesPavel Labath1-12/+2
and start using it.
2012-04-07Enable the resource traits classes to hold non-static membersPavel Labath1-3/+2
ps: the Resource class inherits from the Traits class instead of holding it as a member because it's more size-efficient (base classes can have zero size, members cannot).
2012-04-07use Lua::registerInitFunction to simplify some parts of codePavel Labath1-1/+1
2012-04-07Fix a bug in the default root menuPavel Labath1-4/+8
2012-04-07Catch and report errors during the creation of menusPavel Labath1-9/+18
2012-04-07Store menus if smart pointers (RefCount)Pavel Labath1-47/+16
This was originally intended to be a bugfix for an memory error reported by valgrind (accessing freed memory). While debugging it, I found the menu ownership semantics confusing (setInternalMenu() et al.), so I decided to get rid of it and store it in smart pointers everywhere. Looking back, I'm not sure if this was worth all the trouble, but the good news is that the valgrind error disappeared. :)
2012-04-07CustomMenu command now shows lua menusPavel Labath1-2/+2
2012-04-07Convert windowmenu to luaPavel Labath1-17/+20
also, i've restored the autoreloading capability of menus.
2012-04-07A veeeery rough implementation of lua menu parsersPavel Labath1-1/+6
2012-04-07Convert slitlist from a separate file to a regular lua resourcePavel Labath1-2/+1
2012-04-07Make session.screenX.workspace_names a real FbTk::ResourcePavel Labath1-20/+19
instead of the add-on hack it was. This also fixes a lot of problems with saving of config.
2012-04-07Replace ResourceManager with the lua versionPavel Labath1-39/+33
Loading of an init file with the new manager works ok. Saving and restarting is still not completed. This touches many files because i removed the alternative name of resources. Unlike Xrm, lua does not have native support for alt names. It should be fairly easy to add them, but I think that is unnecessary and would be confusing.
2012-04-07Simplify FbTk::Resource template classPavel Labath1-50/+16
by outsourcing the conversion from string/lua to the specific type (and back) to a separate class. This change touches a lot of files because the interface of FbTk::Resource changed slightly. However, the changes are minor.
2012-04-07Specializations of FbTk::Resource<X>::{setFromLua,pushToLua}Pavel Labath1-0/+14
for various values of X.
2012-04-06Allow percentage values for some Window commandsLajos Koszti1-0/+49
2012-01-04Pre-increment non-primitive types.Ryan Pavlik1-2/+2
Found with cppcheck: "Prefix ++/-- operators should be preferred for non-primitive types. Pre-increment/decrement can be more efficient than post-increment/decrement. Post-increment/decrement usually involves keeping a copy of the previous value around and adds a little extra code."
2012-01-04Exceptions should be caught by reference.Ryan Pavlik1-1/+1
Found using cppcheck.
2011-09-14Remove obsolete codePavel Labath1-8/+0
ps: it was already commented out, I'm just deleting it
2011-09-14Fix a small bug in BScreen constructorPavel Labath1-1/+1
it was testing for FbWindow.property() == Success, where it should've tested for == true.
2011-05-10Convert Screen::reconfigureSig to FbTk::SignalPavel Labath1-3/+1
2011-05-10Convert FbTk::Theme::reconfigSig and friends to the new Signal systemPavel Labath1-5/+3
I removed the const versions of reconfigSig() in the process since FbTk::Signal has no const methods anyway.
2011-05-08Can check CARDINAL properties in CLIENT PATTERNSnacitar sevaht1-6/+5
Introduces a new member function, FbWindow::cardinalProperty() This change also changes other code that previously used FbWindow::property() to do the same thing as the new function; this reduces code duplication. There are still some bits of code (Ewmh.cc, extractNetWmIcon()) that use FbWindow::property() to retrieve XA_CARDINAL values, but as the new method is designed for getting a _single_ property, and that code uses FbWindow::property() to retrieve the number of values present, and then grab all of them; it's a different use case. I opted to not try to make cardinalProperty() into some monolithic all-purpose cardinal method; FbWindow::property() works just fine for that. This change also adds an optional (default=NULL) boolean to FbWindow::textProperty and friends that allows the caller to determine whether or not a value was actually retrieved. This was necessary for integrating FbWindow::cardinalProperty with the codebase, and it seemed to fit with FbWindow::textProperty as well. Prior to this change, if you got a return value of "", you wouldn't know if you successfully retrieved the value which happened to be blank, or if you failed to retrieve the value. Now, you can pass the address of a boolean if you so choose in order to differentiate these situations; the same applies to the new FbWindow::cardinalProperty().
2011-04-14bugfix: use 'unsigned long' to feed XChangeProperty, closes #3285968David Coppa1-1/+1
old code crashed on sparc64, pid_t seems to be 32bit on that platform.
2011-03-23compile fix: arguments must match declarationMathias Gumz1-4/+4
Sun CC++ 5.11 complaint on linking about missing symbols 'nextWorkspace()', 'prevWorkspace()' etc.
2011-03-23compile fix: sunCC 5.11 (sunstudio 12) compiles and links againMathias Gumz1-4/+4
biggest change: renaming of 'class Layer' to 'class ResourceLayer' in Layer.hh to handle complaints about 'ambiguous Layer: Layer or FbTk::Layer'. 'ResourceLayer' sounds crappy, but that was the best I could come up with right now.
2011-03-19delete config menu first at shutdownHenrik Kinnunen1-3/+11
2011-03-19bugfix: reposition windows only if they are invisibleMathias Gumz1-4/+19
changing the layout or the number of the attached monitors might lead to invisible windows. only those windows should be positioned to the closest monitor, if they are not visible already.
2011-03-19code deduplication: use RectangleUtil::insideBorder()Mathias Gumz1-4/+1
2011-03-19prepare BScreen::XineramaHeadInfo to be 'RectangleLike'Mathias Gumz1-9/+10
2011-02-24cache result of getWorkspace()Mathias Gumz1-2/+3
2011-02-23renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItemMathias Gumz1-2/+2
2011-01-15small refactoring of FbTk/Menu codeMathias Gumz1-1/+1
* removed useless struct _menu * code deduplication via renderMenuPixmap() * improved documentation: - 'sublevel' actually means 'column' - 'persub' means 'row_per_column'
2011-01-13compile fix: missing symbol (SystemTray::getNetSystemTray()) when configured ↵Mathias Gumz1-1/+4
--disable-toolbar
2010-09-18recovered lost change from 041d586972db4da170123f5468d7b11d4eda8ae5Mathias Gumz1-96/+65
got lost in d3eabeb805fdbd162c0743ed86a67e014e37c097 somehow