aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.cc
AgeCommit message (Collapse)AuthorFilesLines
2016-08-26Fix autohiding/raising timer logicsThomas Lübking1-41/+33
Trying to control a timer bound to an unconditional toggle, caused by opposing events does not work. <- That's a period. The toolbar implementation would act too seldom, the slit to often. Instead, fire the timer whenever the state does not match the event and bind it to a function that queries the pointer position and acts accordingly.
2016-08-26add autoraising to toolbar and slitThomas Lübking1-0/+11
2016-08-26add commands to toggle toolbar and slit layerThomas Lübking1-0/+7
toggle(Toolbar|Slit)Above toggles the resp. item between its regular and the AboveDock layer (ie. above everything, even visible on active fullscreen windows) Also required step for autoraising. REQUEST: 222
2016-07-30flag slit for reconfiguration and act on showThomas Lübking1-3/+14
According to Peter Ganzhorn, there's a transparency issue when using an autohiding slit, but I don't use a slit at all. However, the explanations in the bug do make sense and this is just an alternative approach on the problem (that does not require interim showing) BUG: 1132
2015-01-15Refactor menu code: be more explicit and compactMathias Gumz1-28/+26
This commit is a preparation step for some menu cleanup ahead. To make it easier to understand which types of MenuItems are added where and when, I converted the overloaded FbTk::Menu::insert() functions into explicit ones (Menu::insertSubmenu(), Menu::insertItem(), etc. ). This makes it possible to just grep for 'insertSubmenu()'. Side effect this commit: it trims down the very verbose creation of menu items in regards to how the labels are created. Minor: FbTk::Menu::shown and FbTk::Menu::s_focused are moved out of the class.
2014-10-27make use of FbTk-apiMathias Gumz1-27/+26
2013-05-26build-sys: use AC_USE_SYSTEM_EXTENSIONSSami Kerola1-5/+0
The earlier _GNU_SOURCE definitions possibly did not take effect everywhere where it was intended.
2013-05-26build-sys: include config.h to all files using automakeSami Kerola1-4/+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.
2012-12-30Set WM_WINDOW_ROLE for fluxbox windowsVladimir A. Pavlov1-0/+2
2012-08-28changed timing functions to use a monotonic increasing clockMathias Gumz1-1/+1
gettimeofday() is subject to be changed on daylight-saving or to ntp-related (think leap-seconds). even worse, it is subject to be changed BACK in time. this is hard to fix correctly (see commit 45726d3016e and bug #3560509). it is irrelevant for timers to know the nano-seconds since the epoch anyways.
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-05-10Convert Screen::reconfigureSig to FbTk::SignalPavel Labath1-5/+1
2011-05-10Convert FbTk::Theme::reconfigSig and friends to the new Signal systemPavel Labath1-7/+3
I removed the const versions of reconfigSig() in the process since FbTk::Signal has no const methods anyway.
2011-03-23compile fix: sunCC 5.11 (sunstudio 12) compiles and links againMathias Gumz1-6/+6
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-02-24moved Menu placement into ScreenPlacement::placeAndShowMenu()Mathias Gumz1-15/+3
2011-02-23renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItemMathias Gumz1-3/+3
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'
2010-09-08introduced FbTk::BidiStringMathias Gumz1-19/+18
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).
2010-05-23mostly cosmetic fixes, mainly discovered by 'clang --analyze'Mathias Gumz1-30/+30
reordering of Resource-related stuff was because of "error: explicit specialization of 'getString' after instantiation" complaints.
2010-03-17Changed #ifdef DEBUG ... cerr << to using fbdbg.Henrik Kinnunen1-11/+6
This will reduce the number of #ifdef DEBUG for simple debug messages. include "Debug.hh" and use fbdbg instead of cerr for debug.
2009-09-30cosmetic fixes: removed redundant ';' + some whitespacesMathias Gumz1-1/+1
2009-07-24make autohide only show the border or 1 pixel if borderlessMark Tiefenbruck1-16/+13
2008-09-28Changed resize signal in BScreen to use the new signal systemHenrik Kinnunen1-7/+13
2008-09-21Changed background changed signal in BScreen to use the new signal systemHenrik Kinnunen1-1/+10
2008-08-14cleanup of some filesMathias Gumz1-1/+1
2008-08-06use the same options in Slit and Toolbar placement menusMark Tiefenbruck1-161/+102
2008-08-04add selection box to various "choose one of these" menu itemsMark Tiefenbruck1-5/+6
2008-01-28Merge branch 'xinerama_randr'Tomas Janousek1-6/+9
2008-01-28minor correction of include namesMathias Gumz1-2/+2
2008-01-27Move dockapps to (-100,-100) instead of (screenw + 10, screenh + 10).Tomas Janousek1-2/+1
The windows used to appear when one xrandr'ed to a bigger resolution. Signed-off-by: Tomas Janousek <tomi@nomi.cz>
2008-01-27"On head" menu -- reloading and refreshing bugfix.Tomas Janousek1-4/+8
We should reload the contents of this menu on Xinerama layout change. I switched it from FbMenu to ToggleMenu, because the selected head wasn't being updated properly. Signed-off-by: Tomas Janousek <tomi@nomi.cz>
2008-01-11make FbTk::Command a template class, split parsing information out of ↵Mark Tiefenbruck1-15/+15
ObjectRegistry
2008-01-05update code to use ThemeProxyMark Tiefenbruck1-6/+6
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-30removed some unneeded headersMathias Gumz1-7/+6
2007-12-27architecture astronomyMark Tiefenbruck1-7/+7
2007-12-25removed KDE configure optionMark Tiefenbruck1-11/+4
2007-12-25added resource session.screen<N>.slit.acceptKdeDockappsMark Tiefenbruck1-0/+5
2007-12-18holding control will now keep the menu openMark Tiefenbruck1-7/+9
2007-10-13merged changes from pre-develmarkt1-9/+0
2007-07-03fix updating of systemtray and kde dockapps in slit on background changemarkt1-0/+8
added fluxbox-remote.cc
2007-06-29updates for compiling with gcc 4.3markt1-0/+5
2007-06-03open slit menu properly wrt xineramamarkt1-17/+16
2007-04-20fix slit onhead with BOTTOMLEFT placement, patch from Tomas Janousek <tomi ↵mathias1-1/+1
at nomi dot cz>
2007-02-17an empty slit without autoHide but with clients in the slitlist file still ↵markt1-5/+4
created a strut
2007-01-07fix intrinsic problem with refcountsimonb1-3/+3
adjust slit menus to deconstruct properly
2007-01-07per-window transparency, including apps and menu support, plus some simonb1-1/+1
infrastructure and related changes. Thanks for original patch from Julien Trolet, dmxen at sourceforge dot net
2007-01-06make "force pseudotransparency" menu item work immediatelymarkt1-0/+3
2006-11-12removed duplicate headers, patch from Slava Semushin aka php-coderfluxgen1-3/+0
2006-10-27cosmetic patch from slava semushin, removes whitespaces andmathias1-80/+92
uses only those things from "namespace std" what we really need.