summaryrefslogtreecommitdiff
path: root/openbox/geom.h
AgeCommit message (Collapse)Author
2012-10-06Use the nearest monitor when the search query rect does not intersect any ↵Dana Jansens
monitor (Fix bug 5500) Previously we would try to find the primary monitor and use that when the search was outside any monitor. However, if the primary monitor is chosen by the mouse position and the mouse is not inside any monitor, we enter infinite recursion trying to find the primary monitor. The nearest monitor is a better metric anyhow, and this ensures screen_find_monitor() is never recursive as it always returns a value without depending on other screen.c methods.
2012-10-06Pick the monitor most relevant to a rectangle more cleverly.Dana Jansens
When monitors overlap (this happens with cloning), we were choosing a monitor to associate with a window, for maximization for example, somewhat arbitrarily. Now we have a more clever algorithm that considers the configured primary monitor first, and that does not prefer monitors based on their sizes, but only how much of the window is in the monitor, excluding parts that were claimed by another monitor already.
2010-05-17Add support for using relative expressions in move and resize actionsMikael Magnusson
Have MoveResizeTo use config_parse_gravity_coord instead of duplicating it locally Allow MoveResizeTo positions and sizes and per app positions to be relative to screen size Rename to config_parse_relative_number so it can be used for sizes too Add relative numbers to width/height in MoveResizeTo Add relative numbers to MoveRelative Add relative numbers to ResizeRelative, these are for the client size, not screen size
2009-12-17Ranges of 0 width cannot intersect (Fixes bug #3717)Dana Jansens
2008-02-14force the resize popup to be on-screen (not negative position)Dana Jansens
2008-01-11make a GravityPoint and GravityCoord data structures for those --x, ++y type ↵Dana Jansens
values
2007-06-13xinerama support like crazy for struts and everything else too. this ↵Dana Jansens
probably crashes but its been way too long without a commit.
2007-06-13very cool struts. partial struts actually are partial struts now. possibly ↵Dana Jansens
way broken with xinerama?
2007-05-22only send configure notify when they requested a move, or if we are actually ↵Dana Jansens
changing anything. that is: if they only request a resize and nothing changes, don't do anything and dont send a configurenotify. this fixes the emacs event storm also some new macros for rects
2007-05-02make keeping windows on screen much more cleverDana Jansens
2007-04-231) translate all of openbox's outputDana Jansens
2) update copyrights. 3) make release. ok that part not quite yet.
2007-03-02only update the screen areas when a window actually has a strut (or when the ↵Dana Jansens
strut changes), don't waste extra calls to screen areas, because it makes people redraw when they don't need to
2006-08-22update copyright step 2Mikael Magnusson
2005-02-05the xinerama patch from john russell, modified a bit and merged the ↵Mikael Magnusson
move_onmonitor with the already existing move_onscreen stuff, not sure if it actually works on xinerama since i dont have it.
2004-03-21yay no tabs in the sourceMikael Magnusson
2003-09-24add PARTIAL_SRUT_EQUALDana Jansens
2003-09-17no tabsDana Jansens
2003-09-17add copyright headers, adjust --version output to include copyright, and ↵Dana Jansens
--help output to not include version output.
2003-09-15add some interesection shit, and RECT_LEFT/RIGHT/TOP/BOTTOMDana Jansens
2003-09-04fix RECT_CONTAINS, name clashDana Jansens
2003-08-27oooops RECT_SET_POINT was brokenDana Jansens
2003-08-25add STRUT_EQUALDana Jansens
2003-08-02add partial struts tho they arent useful eytDana Jansens
2003-06-27xinerama supportDana Jansens
2003-04-06add ()'s to the macros for more safetyDana Jansens
2003-03-28make better?Dana Jansens
2003-03-28make these things one 'command' without bracesDana Jansens
2003-03-20add RECT_CONTAINSDana Jansens
2003-03-16merge the C branch into HEADDana Jansens