aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
AgeCommit message (Collapse)AuthorFilesLines
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
2010-09-17missing initializationsMathias Gumz1-0/+1
'valgrind' reported a lot of code branches based upon uninitialized variables. some are not identified yet.
2010-09-17moved commandline parsing to its own functionMathias Gumz1-66/+96
2010-09-17code simplification by reducing if-else hellMathias Gumz1-96/+66
a lot of the parsing-related and menu-building stuff is just plain stupid boiler plate code. putting the data into a const array separates the boiler plate data from the actual code.
2010-09-09disabled potentially dead codeMathias Gumz1-0/+3
2010-09-09added FbTk::Util::clamp() and simplified related codeMathias Gumz1-19/+10
2010-09-09use FbTk apis instead of raw xlib callsMathias Gumz1-6/+5
2010-09-08introduced FbTk::BidiStringMathias Gumz1-10/+16
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-08-23moved knowledge about '_NET_SYSTEM_TRAY_S' into the 'SystemTray' classMathias Gumz1-4/+3
2010-08-22bugfix: compiler warningMathias Gumz1-1/+1
2010-05-28Add new focus model: StrictMouseFocusJim Ramsay1-1/+6
This is not actually implemented yet, but from now on, "MouseFocus" means: Focus follows mouse only when you are moving the mouse, any EnterNotify events caused by non-mouse operations (window closing, keycommands, changing desktops) will *not* shift focus And once fully-implemented, "StrictMouseFocus" will mean: Focus follows mouse on every EnterNotify event (except when the "ClientMenu" closes or during alt+tab window cycling)
2010-05-23mostly cosmetic fixes, mainly discovered by 'clang --analyze'Mathias Gumz1-31/+32
reordering of Resource-related stuff was because of "error: explicit specialization of 'getString' after instantiation" complaints.
2010-05-01cosmeticMathias Gumz1-11/+13
2010-05-01use new closest head calculation code to place windows when clearing up headsMathias Gumz1-7/+9
2010-05-01bugfix: moving (the center of) a maximized window out of a xinerama head ↵Mathias Gumz1-4/+33
could result in maximizing it over all heads the old way of deciding which head to (re)maximize the current window was to just test if the center of the window is INSIDE which head. now we calculate the closest head which fixes the problem
2010-03-17Changed #ifdef DEBUG ... cerr << to using fbdbg.Henrik Kinnunen1-25/+21
This will reduce the number of #ifdef DEBUG for simple debug messages. include "Debug.hh" and use fbdbg instead of cerr for debug.
2009-10-01simpler codeMathias Gumz1-3/+1
2009-05-26Merge branch 'mousefocus'Jim Ramsay1-0/+3
2009-05-25minor cosmeticsMathias Gumz1-1/+1
2009-03-09Ignore EnterNotify on workspace changeJim Ramsay1-0/+3
Changing workspaces also reveals other windows, which causes unexpected focus changes.
2008-10-15ignore XRandr events that don't actually change the screen sizeMark Tiefenbruck1-10/+10
2008-10-13merge menuDelay and menuDelayClose optionsMark Tiefenbruck1-15/+2
2008-10-09don't show window on new workspace when warping with outline movingMark Tiefenbruck1-12/+8
2008-10-05remove menu modesMark Tiefenbruck1-3/+0
2008-10-05remove follow modelsMark Tiefenbruck1-2/+0
2008-10-05remove line style resources from init fileMark Tiefenbruck1-28/+0
2008-10-05remove rootcommand from init fileMark Tiefenbruck1-7/+0
2008-10-04fix CustomMenu and ClientMenu commands from fluxbox-remoteMark Tiefenbruck1-1/+2
2008-10-04break keychains after an invalid key is pressed (which unfortunately will be ↵Mark Tiefenbruck1-2/+3
swallowed)
2008-10-01reset background on resolution changeMark Tiefenbruck1-1/+1
2008-09-28Changed resize signal in BScreen to use the new signal systemHenrik Kinnunen1-2/+1
2008-09-28Changed workspace area signal to use the new signal systemHenrik Kinnunen1-3/+2
2008-09-28Merge branch 'master' of fluxbox@git.fluxbox.org:fluxboxHenrik Kinnunen1-28/+28
Conflicts: ChangeLog
2008-09-28Change focused signal to use the new signal systemHenrik Kinnunen1-1/+0
2008-09-28don't let KeyRelease events propagate to windowsMark Tiefenbruck1-14/+16
2008-09-27turn off size/position display by default, move click raises to focus model menuMark Tiefenbruck1-10/+7
2008-09-26fix rounded corners on restartMark Tiefenbruck1-1/+2
2008-09-22cosmeticsMathias Gumz1-3/+3