Commit graph

3182 commits

Author SHA1 Message Date
Dana Jansens
7ac0b91965 when holding Shift for the client list menus, bring the selected client to the current desktop (Request #4284) 2009-12-22 11:44:07 -05:00
Dana Jansens
b06b684589 rename the obt_parse library to obt_xml (since it is very xml specific) 2009-12-21 14:08:38 -05:00
Dana Jansens
7aae8cc526 Set up work for making a 3.5 prerelease.
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-21 14:08:34 -05:00
Dana Jansens
a03b817aeb Merge branch 'backport' into work 2009-12-21 10:43:38 -05:00
Dana Jansens
b7393636e0 make a config option for the inactive osd font 2009-12-21 10:43:30 -05:00
Dana Jansens
cfdbe23e0d Add themeing options for inactive osd labels, osd.inactive.label.*
(rename the current osd label options from osd.label to osd.active.label, similar to the window.(in)?active.label options.
2009-12-21 10:35:06 -05:00
Dana Jansens
1fb198410e A fix for delayed hiding of submenus.
It fixes this:
(Mikachu) dana: i think his issue was if you have a menu with two
          submenus s1 and s2, open the s1 submenu, then point to s2 and
          go into s1, then after the delay, s1 is hidden despite you
          being inside it still, because s2 was never unselected
2009-12-21 09:51:11 -05:00
Dana Jansens
ad812e6299 Add a focus option, unfocusOnLeave that removes focus from a window when the pointer leaves it
This uses the same delay to unfocus as is used for focusing on enter
2009-12-18 11:40:00 -05:00
Dana Jansens
965ed8907a Merge branch 'backport' into work
Conflicts:

	openbox/screen.c
2009-12-18 11:39:56 -05:00
Dana Jansens
aeac6294a3 Show the desktop popup as long as the interactive desktop switch is active 2009-12-18 11:39:43 -05:00
Dana Jansens
01fd9f99cc Allow delayed focus to work while in a menu or move/resize since it wont kill them now 2009-12-17 16:51:05 -05:00
Dana Jansens
a067628051 Hide the focus popup if we change desktops and one of the windows in it disappears 2009-12-17 16:51:01 -05:00
Dana Jansens
24f6b59fe3 Don't move focus away from a window if it was focused and it didnt hide when switching desktops 2009-12-17 15:40:25 -05:00
Dana Jansens
501943b53d Merge branch 'backport' into work 2009-12-17 10:33:39 -05:00
Dana Jansens
1a34857640 Make the relative desktop switching actions interactive
The desktop popup can now be shown "permanently" in which case it stays until
you tell it to hide.
2009-12-17 10:33:06 -05:00
Dana Jansens
d3347e8be3 Ranges of 0 width cannot intersect (Fixes bug #3717) 2009-12-17 10:24:48 -05:00
Dana Jansens
1b392b5fbe Allow the interactive cancel function to be optional 2009-12-17 10:24:06 -05:00
Dana Jansens
d18d9c9379 Make it possible for an action name to choose whether it is interactive or not based on its options.
This way we can use the same name with options for an interactive action and a
non-interactive action.

Shorten the names of the ObActionsInteractive* functions to ObActionsI*

Add a ObActionsIPreFunc that is called for interactive actions
before the interactivity (key/mouse grab) is started.

Add a ObActionsIPostFunc that is called for interactive actions
after the interactiviti (key/mouse grab) has ended.
2009-12-17 10:23:49 -05:00
Dana Jansens
d662573942 Calculate the work area using other already existing and better maintained and trusted code 2009-12-16 16:40:07 -05:00
Dana Jansens
a4b2e3a86e Fix resistance against struts, the resistance was always 0 2009-12-16 16:07:17 -05:00
Dana Jansens
50d6626811 Merge branch 'backport' into work
Conflicts:

	obt/keyboard.c
	obt/keyboard.h
	openbox/event.c
	openbox/menuframe.c
	openbox/moveresize.c
	openbox/openbox.c
	openbox/screen.c
2009-12-16 15:39:25 -05:00
Dana Jansens
8ada991d82 Fix the delayed hiding of submenus, so that they don't end up hidden while the entry is selected 2009-12-16 15:37:28 -05:00
Dana Jansens
811e3ddbc3 Ignore enter events caused by closing openbox menus 2009-12-16 15:37:26 -05:00
Dana Jansens
3c688bc4a7 Make the NET_WORKAREA hint work the way it used to, across all monitors
The spec is not going to change this hint, but rather add a new one. So for now
just revert to the old behaviour.
2009-12-15 14:53:29 -05:00
Dana Jansens
828c095c8b Don't hide submenus immediately when unselecting the parent's entry
This allows users to move to the submenu across other menu items (the same
as they already could across other menu items that were submenus).

This uses the same config delay for hiding submenus as it does for showing
new ones.

Based off the ideas in bug #3762.
2009-12-14 18:18:10 -05:00
Dana Jansens
111465b737 Let menus place themselves on monitors where the mouse is not present
This fixes a bug which forced menus to show up on the same monitor as the
mouse pointer.
2009-12-14 16:08:30 -05:00
Dana Jansens
d55f4b41c6 Allow the user to bind more than one keycode to a keysym for Ob 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-12-14 15:40:33 -05:00
Dana Jansens
acafa38c8e Merge branch 'backport' into work
Conflicts:
	openbox/config.c
	openbox/event.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	openbox/screen.h
2009-12-11 19:02:11 -05:00
Dana Jansens
9ba2b04e96 Set hints that remember the WM_WINDOW_ROLE and WM_CLASS properties for our users.
The hints are _OB_ROLE, _OB_NAME, and _OB_CLASS.
2009-12-11 18:58:39 -05:00
Dana Jansens
5c01dc651a Get the session client id from new gnome-session
See http://live.gnome.org/SessionManagement/GnomeSession#A1._Launch

Gnome-session sets the DESKTOP_AUTOSTART_ID env variable with the SM client id
instead of passing it on the command line.
2009-12-10 15:00:56 -05:00
Dana Jansens
231f694bca Make sure popup dialogs are not waiting to be shown after they are freed 2009-12-10 10:36:19 -05:00
Dana Jansens
81eb4752fe Make the desktop popup show on the primary monitor as defined in the config.
This matches the behaviour of the focus cycle and key chain popups.
2009-12-09 17:06:55 -05:00
Dana Jansens
5f2182c33b Revert "Show desktop switch popup on every monitor"
This reverts commit 2e1adce628.
2009-12-09 17:03:37 -05:00
Dana Jansens
d3976a51fb Revert "Some fixes for the pager popups, and avoid a crash if you destroy a popup while it is going to be shown later by a delay."
This reverts commit 33328583a1.
2009-12-09 17:03:27 -05:00
Dana Jansens
aa329719b9 Add a primaryMonitor config option, where the focus-cycle and keychain popups will appear 2009-12-09 16:41:52 -05:00
Dana Jansens
10d99cc5e9 Bug in choosing the active monitor when doing a move/resize 2009-12-09 16:39:58 -05:00
Dana Jansens
ade3b4dd69 Make the edge detection fully include monitor edges.
This fixes the move-to-edge behaviour, when moving past the edge of a monitor,
the window will stop with its tail edge against the inside of the monitor's
edge.
2009-12-09 16:00:32 -05:00
Dana Jansens
543828c23f Properly react when a client's strut changes.
Previously it would only react if the height of the strut changed, not if its
start/end changed (that was a long-standing bug).
2009-12-09 15:09:15 -05:00
Dana Jansens
324ba15ebc Fix the Focus/Activate actions to focus windows on other desktops correctly 2009-12-09 13:25:19 -05:00
Dana Jansens
9f74f1e244 When moving focus across desktops, make sure Openbox doesn't think that a window which is no longer visible is still focused. 2009-12-09 13:24:12 -05:00
Dana Jansens
d7d54e9b89 The colormap is being set twice when moving focus to the root window 2009-12-09 13:24:08 -05:00
Dana Jansens
5b20b3fc7f Add a focus debug message for the frame's visible focus state 2009-12-09 13:24:04 -05:00
Dana Jansens
36af6f8d96 Fully maximized windows still have a normal titlebar. Fixes bug #4373
Also, maximized windows were having their client padding reduced by the size of
the outer border from this same bug, which is now fixed.
2009-12-09 11:24:16 -05:00
Dana Jansens
cf033623a0 Allow skip_taskbar windows to be focused on map when the user requests it in rc.xml. Fixes bug #4350 2009-12-09 10:56:43 -05:00
Dana Jansens
3011220572 Set a minimum value for the screenEdgeWarpTime for 25ms.
When this is very small it just gives X/Openbox a heart attack and ends up going forever.  Even 25 is quite too fast to be usuable so it should be a good minimum.
2009-12-09 10:32:36 -05:00
Dana Jansens
0c0ddc3628 Fix stacking for transients vs helper windows. Fixes bug #3851
This allows transient windows to be above helper windows.  And generally keeps
helper windows below transients, unless they are raised directly.
2009-12-09 10:09:43 -05:00
Dana Jansens
2f09e0ce38 Merge branch 'backport' into work
Conflicts:

	openbox/actions/all.h
	openbox/actions/session.c
	openbox/client.c
	openbox/event.c
	openbox/grab.c
2009-12-08 14:19:04 -05:00
Dana Jansens
672aea85cf Don't hilite new windows when we're restoring them from a saved session. 2009-12-08 14:16:08 -05:00
Dana Jansens
07126124c9 Fix client_activate() to work for internal Openbox menus
client_activate() is a helpful way to focus a window on another desktop,
but only Openbox is allowed to do such things, user messages cannot.
2009-12-08 13:56:37 -05:00
Dana Jansens
11ecb7d219 Don't kill keygrabs when focus moves.
Applications should be better behaved by now, and GTK based apps seem to be
at least. We can file bug reports with them if we need to still.
2009-12-08 13:56:37 -05:00