aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
AgeCommit message (Collapse)AuthorFilesLines
2016-07-30reconfigTheme's on loading a new styleThomas Lübking1-0/+1
Also reconfigure menus (recursively) on style load The most critical call is the shape update - the menus often become cut-off, preventing mouse interaction with lower items, but also colors are not applied correctly to menus w/o updating them. BUG 1022 is most likely this and only a misinterpretation (for the mentioned items are those with lacking color updates on style updates) BUG: 1146 BUG: 1017 CCBUG: 1022
2016-06-26keep cmd menus off struts when the mouse is in itThomas Lübking1-2/+7
the mouse is likely the trigger, so the popup would cover the trigger item. The present behavior of the iconbar suggests such behavior is desired.
2015-01-16Fix leak in ClientPatternTestCmdMathias Gumz1-21/+13
Coverity-scan points to the leaking ClientPattern. The rest is just cosmetics.
2015-01-16Refactor: move some menu-creation functions to MenuCreatorMathias Gumz1-1/+1
Another patch to trim down the code that needs to be part of BScreen
2015-01-03Fix clang warning 'expression with side effects'Mathias Gumz1-4/+6
2013-05-26build-sys: include config.h to all files using automakeSami Kerola1-5/+0
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-01-31Adds 'ClientPatternTest' commandMathias Gumz1-7/+75
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.
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."
2011-10-31FbCommands.cc: Implement ExecuteCmd for WindowsRyan Pavlik1-5/+17
2011-02-24moved Menu placement into ScreenPlacement::placeAndShowMenu()Mathias Gumz1-28/+12
2011-01-06bugfix: do not assume ':number.screen' as the result of 'DisplayString()'Mathias Gumz1-4/+15
a newer xlib recently changed the result of 'DisplayString()' a little bit: instead of returning ':0.0' or ':1.0' it yields ':0' or ':1'. our code to transform this string into something that includes the currently used Screen worked only on something like ':0.0'. we now find the '.' after the ':' and strip that part away.
2010-09-17bugfix: avoid naive use of 'putenv' by providing 'FbTk::App::setenv()'Mathias Gumz1-34/+5
to quote from 'man putenv': The string pointed to by string becomes part of the environment, so altering the string changes the environment. so, using putenv like { std::string foo("FOO=bar"); putenv(foo.c_str()); } is wrong and leads to a potentially corrupted environment. valgrind complaint correctly. FbTk::App seems to be the appropriate place to hold '::seten()' because it alters the environment of the application.
2010-09-09minor cleanupMathias Gumz1-4/+1
2010-09-08introduced FbTk::BidiStringMathias Gumz1-1/+1
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
2009-10-01simpler codeMathias Gumz1-4/+1
2009-09-30cosmetic fixes: removed redundant ';' + some whitespacesMathias Gumz1-1/+1
2008-09-21Changed icon list signal in BScreen to use the new signal systemHenrik Kinnunen1-2/+3
2008-09-08update workspace names atoms/resources when adding a new workspaceMark Tiefenbruck1-3/+0
also removed unnecessary items from default init file
2008-06-20allow restart with no argument from fluxbox-remoteMark Tiefenbruck1-1/+8
2008-06-06allow window menu items in ordinary menusMark Tiefenbruck1-0/+2
2008-05-14don't save rc in SetStyle command if loading the style failsMatteo Galiazzo1-4/+5
2008-05-13implement smarter reloading for custom menusMark Tiefenbruck1-5/+12
2008-05-12refactor menu reloading, added FbTk::AutoReloadHelperMark Tiefenbruck1-5/+5
2008-05-11reuse some menu pointers instead of using delete/newMark Tiefenbruck1-13/+12
2008-05-11remove some more useless codeMark Tiefenbruck1-1/+1
2008-05-02remove some unnecessary argumentsMark Tiefenbruck1-1/+1
2008-04-21some fixes for gcc 3.4Thomas Orgis1-1/+1
2008-01-25cosmeticsMathias Gumz1-1/+1
2008-01-11make FbTk::Command a template class, split parsing information out of ↵Mark Tiefenbruck1-30/+30
ObjectRegistry
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-19remove reassoc argument from FluxboxWindow::deiconifyMark Tiefenbruck1-2/+2
2007-12-16changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>Mark Tiefenbruck1-27/+29
2007-12-13added FbTk::CommandRegistry, decentralized command parsing, and made them ↵markt1-2/+108
auto-register
2007-12-11only allow one open menu at a timemarkt1-8/+1
2007-11-23somewhat fixed DeiconifyCmdmarkt1-2/+1
2007-11-12allow arbitrary window patterns in iconbarmarkt1-13/+5
2007-10-24introduced workspacename for ClientPattern, and some miscellaneous cleanupmarkt1-3/+3
2007-10-22replaced ModKey with new key commands StartMoving and StartResizingmarkt1-9/+0
2007-10-13merged changes from pre-develmarkt1-0/+30
2007-10-13deiconify windows via :Deiconify in reverse ordermathias1-2/+2
2007-07-24fix ToggleDecor for fullscreen and decorationless windows, plus some other ↵markt1-1/+1
cleanup
2007-06-29updates for compiling with gcc 4.3markt1-0/+5
2007-06-09small fix for the /bin/sh issue .. just using /bin/zsh nowmathias1-3/+1
2007-06-06fix for the following problem:mathias1-1/+4
on *bsd /bin/sh is not just a symlink to /bin/bash as on most linux's but a real standalone shell. and it behaves differently from "bash -c" behavior .. it doesnt exec the command given but waits till the command finishes. as a result a lot of "rogue" a flying around. solution is now ( $SHELL or /bin/sh ) -c exec <cmd>
2007-05-04fix infinite loop caused by deiconify commandmarkt1-2/+5
2007-04-19fixed crash when CustomMenu doesn't point to a real filemarkt1-0/+2
2007-03-21hidemenus hide custommenus and fix custommenu memleakmarkt1-2/+5
2007-03-16fixed a little bug with placing new menusmarkt1-0/+1
2007-03-16added custommenu commandmarkt1-0/+11
2007-02-09added mouse bindings to the keys filemarkt1-0/+9