Previously if you click-drag-released the left button on the root window to a client window,
Openbox would ignore the release because we don't own the client window. Now check if we
are in a button press or not before ignoring it. The bug was we would initiate a move when
the cursor was moved over a titlebar even when the button was unpressed because the variable
didn't get cleared properly.
Mikael Magnusson [Wed, 16 Jan 2008 21:41:10 +0000 (22:41 +0100)]
Add RaiseTemp action.
This has the same effect as giving the <raise>yes</raise> option to next/prevwindow
but makes it optional and keybindable, so if W-Tab is nextwindow, you can have W-q
as raisetemp.
Ian Zimmerman [Wed, 8 Jul 2015 23:02:00 +0000 (16:02 -0700)]
Directional switching
On 2015-07-07 13:17 -0700, Ian Zimmerman wrote:
> The 2 and 5 could/should be rc.xml parameters. With defaults 1 and 1
> you'd have the current behavior. Is there interest in me pursuing that
> path and providing a more complete patch?
Not much interest, but here it is anyway. I want to be on record as
using this feature to its full extent, and if necessary maintaining it.
--
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.
Dana Jansens [Wed, 3 Dec 2014 21:39:59 +0000 (13:39 -0800)]
Update the gnome-session support for version 3.9.90 in Ubuntu Trusty
This change is not backward compatible unfortunately. The format of
the gnome-session .session files has changed, such that every part
of the session is now listed on the RequiredComponents line.
When no monitor is at (0,0), the screen rect containing all monitors
is not at the origin, but screen_apply_gravity_point assumes the passed
x/y are relative to the passed area, so adjust them.
Avoids warnings like 'Source ID 8382 was not found when attempting to
remove it'. In particular some removals were missing in menuframe.c
resulting in a warning being printed every time a submenu was opened.
Mikael Magnusson [Tue, 28 Oct 2014 02:44:28 +0000 (03:44 +0100)]
Use PANGO_UNDERLINE_SINGLE for rendering shortcuts
The pango docs say to use _LOW for accelerators, but that causes the line
to be drawn beneath the ink extents which for us may be outside the area
that gets displayed and we end up with no line at all. We also don't want
to extend every menu entry with enough space to fit this possible line.
Mikael Magnusson [Tue, 28 Oct 2014 01:23:35 +0000 (02:23 +0100)]
Use GString for appending strings
It can take a very long time to print a _NET_WM_ICON property for firefox with the previous code, several minutes. Fixes bug #6042 and also implements the change for append_string.
Mikael Magnusson [Sat, 22 Feb 2014 20:37:29 +0000 (21:37 +0100)]
Add keyboard/rebindOnMappingNotify option
I have to switch to a qwerty layout to play steam games, and every time
I switch back and forth, we lose some random bindings so I also had to
reconfigure Openbox every time, now I don't.
Dana Jansens [Sun, 1 Sep 2013 21:37:53 +0000 (17:37 -0400)]
Allow FillToEdge to grow when all its edges are blocked.
This change points out how useless the return value from client_find_resize_directional()
was, so it also removes that.
When all edges are blocked, the FillToEdge action will try to grow all four edges agin
without blocking any of them on their current edge. This more closely matches the
behaviour of the GrowToEdge action.
Dana Jansens [Sun, 1 Sep 2013 20:48:39 +0000 (16:48 -0400)]
Clean up the FillToEdge action implementation
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).
Ian Zimmerman [Sat, 17 Aug 2013 23:08:25 +0000 (16:08 -0700)]
Add the old <center> option for the placement policy. (Bug 5946)
Original commit messages:
. Reformat to move closer to house style
. Add center on top of leat overlap place algo
. Add sentinel value to edge arrays
. Use a Size instead of a Rect for a centering field
. Fix off by one bug
. Need to declare dx and dy
. Pass length of edge array instead of recomputing
. Fix missing open-brace in config.c
. Address the more trivial subset of danakj comments
. Revert "Remove now-unused config_place_center option."
This reverts commit 5e282dae08be3b900e0337efa0fae8f3ffa92cd7.
. Remove reliance on sentinel value when scanning edge arrays
. Avoid need to initialize Size structure by removing it :)
. Clean up field expansion code somewhat
. Compress code further by using a structure for common args
. Fix search for next grid point
. Squeeze it even more by not using Size at all