summaryrefslogtreecommitdiff
path: root/openbox/moveresize.c
AgeCommit message (Collapse)Author
2024-11-12fix not snapping when window not aligned to 0navewindre
2024-10-25fix multimonitornavewindre
2024-10-25window snappingaura
2013-09-02Clean up the FillToEdge action implementationDana Jansens
This extend the client_find_resize_directional() method to support two growing modes, and return a bool for whether it was able to grow/shrink. The client_find_resize_directional() method now takes an enum instead of a bool, with two growing modes. The old mode which always tries to grow, the a new mode that will only grow if the client's edge is not already at a grow stopping point (ie against the edge of another window).
2013-06-07Constrain the moveresize popup to the monitor which has the clientMikael Magnusson
2013-04-17Remove some evil tabsMikael Magnusson
2012-10-06Don't edge-warp with the cursor based on a monitor that does not contain the ↵Dana Jansens
pointer (Fix bug 4992)
2011-01-24Fix compiling without sync extension present.Dana Jansens
Make waiting_for_sync always present, but it is set to 0 (not waiting) if we aren't using sync.
2011-01-24update the last user interaction timestamp during a move/resize of the ↵Dana Jansens
focused window
2010-09-16Revert "add XFlush to g_timeout callbacks"Dana Jansens
This reverts commit aa3685d16af4a565eecdc39047ee8d140ef5cd99. Mika's commit using a GSource to handle X Events fixes this problem, so this commit is not needed
2010-06-14add XFlush to g_timeout callbacksDana Jansens
GMainLoop doesn't cause an flush to occur after handling a timeout.
2010-06-14Use GMainLoop instead of ObtMainLoopDana Jansens
2010-05-20allows a window to unmax by resizing.Dana Jansens
makes "clever" use of the client's pre_max_area values to allow this to happen without flashing, and preserving them in case the user cancels the resize after it has become unmaximized.
2010-04-28fix XSYNCronization of resizes (especially with two monitors).Dana Jansens
1) a ConfigureNotify must always follow a Sync notification 2) determine the final size of the window with its position else struts are not applied properly for (partly) maximized windows 3) set the sync counter to a value when managing a new window
2010-04-28make an event queue for X events. the queue's min size is 16 XEvents (~3k)Dana Jansens
2010-04-16event_curtime is replaced (publicly) by event_time()Dana Jansens
This function never returns CurrentTime, which is nice, cuz using CurrentTime for XSetFocus always sucks. If the current XEvent did not have a timestamp, then event_time() will find one. It finds the first timestamp available in the X event queue, meaning the earliest timestamp >= the current (nontimestamped) event. All future events should have a timestamp >= event_time(), so using this in XSetFocus() should not mess up any future calls we make to it. This change seems to work well, as it appears to fix bug #3648.
2010-04-16allow warping the mouse pointer when switching desktops by bumping into the ↵Dana Jansens
edge of the monitor with a window based on a patch by Nathaniel Gephart <computinchuck@gmail.com>
2010-04-16use const Rect* not Rect const*Dana Jansens
2010-03-25make keypad enter do the same thing as returnDana Jansens
2010-02-12remove a bunch of g_new()/g_free() by returning Rect const*'s from screen ↵Dana Jansens
area functions when possible
2010-02-11make control keys work in menus/dialogs/etc with the new obt code, using ↵Dana Jansens
XLookup stuff
2010-01-15don't use client_move() to end a moveDana Jansens
client_move() uses the client's current width/height, whereas all along we were using the width/height the client had at the start, so this causes client_configure() to behave differently at the end than during the move
2009-12-21Set up work for making a 3.5 prerelease.Dana Jansens
Set version stuff to 3.5.0-rc1. Copy the CHANGELOG from 3.4-working. Rename the obt-4.0 and obrender-4.0 pkgconfig stuff to obt-3.5 and obrender-3.5 Rename the "render" directory to "obrender" so that the public headers can be installed in <obrender/*>
2009-12-16Merge branch 'backport' into workDana Jansens
Conflicts: obt/keyboard.c obt/keyboard.h openbox/event.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c
2009-12-14Allow the user to bind more than one keycode to a keysym for Ob ↵Dana Jansens
Menus/Move/Resize If the user has escape bound to more than one keycode then they can use any of them to close a menu. This change applies to the hardcoded keys in openbox, which are used for the menus and for move/resize, and maybe other places.
2009-11-07Make clang happierMikael Magnusson
Add asserts to default: in switch statements Store pointed to variables locally so it knows they don't change Remove some dead assignments Mark ob_exit_with_error as noreturn Use "%s", msg instead of just msg to printf style functions Use the c_pfocus variable
2008-04-23Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/config.c openbox/keyboard.c openbox/moveresize.c
2008-04-23Fix typo introduced a few commits ago that made resizing windows hard.Mikael Magnusson
2008-04-15Show the resize popup right away.Mikael Magnusson
Previously, it would wait for a resize step before showing it, when resizing windows with resize increments that were bigger than the moveresize threshold.
2008-03-31Center the moveresize popup even when shaded.Mikael Magnusson
2008-03-08Merge branch 'backport' into workMikael Magnusson
Conflicts: obt/keyboard.c openbox/actions/cyclewindows.c openbox/actions/directionalwindows.c openbox/frame.c openbox/openbox.c
2008-03-08Remove double newlines.Mikael Magnusson
2008-01-31Merge branch 'backport' into workDana Jansens
Conflicts: openbox/client.c openbox/config.c openbox/event.c openbox/extensions.c openbox/focus_cycle_indicator.c openbox/focus_cycle_popup.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c openbox/stacking.c openbox/startupnotify.c
2008-01-27window a window stops responding to pings, don't use the xsync protocol ↵Dana Jansens
while resizing it - its not going to be responding to it anyways
2008-01-20change openbox to use the libotk's keyboard.[ch] stuff instead of the old ↵Dana Jansens
modkeys.[ch] and some of translate.[ch]
2008-01-20make openbox use the obt prop.c/h stuffDana Jansens
holy search and replace batman
2008-01-20s/ob_display/obt_display/ and remove ob_displayDana Jansens
2008-01-20move the code for tracking what extensions are available on the display into ↵Dana Jansens
the libobt
2008-01-20Move the main loop out into the libobtDana Jansens
2008-01-12fix a copy/paste bug in placing the move&resize popupDana Jansens
2008-01-11make a GravityPoint and GravityCoord data structures for those --x, ++y type ↵Dana Jansens
values
2008-01-11let you specify the resize popup to be in a fixed placeDana Jansens
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
2007-09-04Fix calling functions with wrong number of argumentsMikael Magnusson
2007-08-04Remove edge switching timer before adding it again.Mikael Magnusson
2007-08-03make warping on screen edge keep firing if you don't move the mouse away ↵Dana Jansens
from the edge (but it slows down after the first time)
2007-08-03Change resizing terminals to work for top and left edges too, the code is a ↵Mikael Magnusson
little ugly.
2007-07-20don't resist in orthoganal directions when key resizing windows with aspect ↵Dana Jansens
ratios
2007-07-20remove a debug printDana Jansens
2007-07-20let you resize aspect ratio windows in north and south directions, and make ↵Dana Jansens
them resist properly when resizing