Dana Jansens [Mon, 15 Feb 2010 17:33:33 +0000 (12:33 -0500)]
dont trust the _NET_ACTIVE_WINDOW timestamp. (fixes bug #4519)
if we decide to focus the window, do not use their provided timestamp.
chromium gives a very old timestamp, which means we think we're focusing the
window but it never actually gets focus, leading to inconsistent behaviour by
openbox. use the timestamp for making decisions about passing focus if you
want (we dont right now), but not for the XSetInputFocus call.
Mikael Magnusson [Sat, 13 Feb 2010 02:43:56 +0000 (03:43 +0100)]
Remove mismerge-added files
Dana Jansens [Fri, 12 Feb 2010 20:13:39 +0000 (15:13 -0500)]
include imlib2 as a dep of obrender in the pkg-config file if it's using it
Dana Jansens [Fri, 12 Feb 2010 20:09:03 +0000 (15:09 -0500)]
make the obt .pc file do -lobt, not -lobrender
Dana Jansens [Fri, 12 Feb 2010 19:36:53 +0000 (14:36 -0500)]
remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible
Dana Jansens [Fri, 12 Feb 2010 19:13:32 +0000 (14:13 -0500)]
use g_slice_new() instead of g_new() part 4
Dana Jansens [Fri, 12 Feb 2010 19:03:24 +0000 (14:03 -0500)]
use g_slice_new() instead of g_new() part 3
Dana Jansens [Fri, 12 Feb 2010 18:55:26 +0000 (13:55 -0500)]
use g_slice_new() instead of g_new() part 2
Dana Jansens [Fri, 12 Feb 2010 18:44:10 +0000 (13:44 -0500)]
using g_slice_new() instead of g_new() part 1
Dana Jansens [Fri, 12 Feb 2010 18:31:49 +0000 (13:31 -0500)]
have obt refresh the xlib keyboard stuff on mappingnotify events
Dana Jansens [Fri, 12 Feb 2010 13:11:27 +0000 (08:11 -0500)]
destroy XIC's that belong to an XIM before closing the XIM, else Xlib will seggie!
Mikael Magnusson [Fri, 12 Feb 2010 04:05:40 +0000 (05:05 +0100)]
Check node->name for null
Seems to happen sometimes with a well placed xml comment.
Dana Jansens [Thu, 11 Feb 2010 20:15:01 +0000 (15:15 -0500)]
dont print warnings when reading keys which dont generate text
Dana Jansens [Thu, 11 Feb 2010 20:05:16 +0000 (15:05 -0500)]
make control keys work in menus/dialogs/etc with the new obt code, using XLookup stuff
Dana Jansens [Thu, 11 Feb 2010 19:58:53 +0000 (14:58 -0500)]
initialize the action shutdown function to NULL
Dana Jansens [Thu, 11 Feb 2010 19:39:09 +0000 (14:39 -0500)]
pass an input context to the interactive input function
Dana Jansens [Thu, 11 Feb 2010 19:17:59 +0000 (14:17 -0500)]
make menu input work with the new obt keyboard stuff.
create an Input Context for use during keyboard grabs, and use this to
translate KeyPress events properly.
make the menu respond to KeyPress events, since these are the only ones that
can be translated properly, but still execute things from KeyRelease events
Dana Jansens [Thu, 11 Feb 2010 18:59:15 +0000 (13:59 -0500)]
make the menu use the new obt stuff when reading keyboard input so it can handle input from the non-base group and composed input
Dana Jansens [Thu, 11 Feb 2010 16:46:46 +0000 (11:46 -0500)]
make obt translate keypress events to a valid utf8 character (note this makes openbox not compile)
Dana Jansens [Thu, 11 Feb 2010 18:23:54 +0000 (13:23 -0500)]
don't strip the state for keyboard events
this allows translation of keys not in the base keyboard layout
Dana Jansens [Thu, 11 Feb 2010 16:27:36 +0000 (11:27 -0500)]
add interface in obt to create an Input Context for a window
Dana Jansens [Thu, 11 Feb 2010 16:16:17 +0000 (11:16 -0500)]
create an X Input Method in obt for the app to use for all input
Dana Jansens [Thu, 11 Feb 2010 16:00:41 +0000 (11:00 -0500)]
get xlib to reload the keyboard on MappingNotify events
Dana Jansens [Thu, 11 Feb 2010 15:58:47 +0000 (10:58 -0500)]
XKB header comes from obt
Dana Jansens [Thu, 11 Feb 2010 15:58:16 +0000 (10:58 -0500)]
check the xkb version before using it
Dana Jansens [Thu, 11 Feb 2010 15:25:35 +0000 (10:25 -0500)]
make the execute action not segfault when using a prompt (bug #4543)
also save the client when using a prompt so it can be used if you choose "yes" from the prompt
Dana Jansens [Thu, 11 Feb 2010 15:25:22 +0000 (10:25 -0500)]
add an optional shutdown function which actions can register
Dana Jansens [Wed, 10 Feb 2010 02:03:01 +0000 (21:03 -0500)]
i learnt what xkb does with the state.
use the state from keyrelease events directly, rather than query the state (which is not as accurate!)
the xkb state (as opposed to the normally sent compat state) contains extra info like the keyboard group, the pointer buttons, etc. so we can just strip that stuff out. (See section 2.2.2 of the XKB proto document)
Dana Jansens [Tue, 9 Feb 2010 00:29:02 +0000 (19:29 -0500)]
dont assert when there is no valid key layout present
Mikael Magnusson [Wed, 10 Feb 2010 01:29:53 +0000 (02:29 +0100)]
Use correct ac variable in version.h.in
Dana Jansens [Tue, 9 Feb 2010 15:59:58 +0000 (10:59 -0500)]
don't link libobt into libobrender
it makes "warning relinking" weird things happen when doing make install.
we already list it as dependency in the pkgconfig file anyway
Dana Jansens [Mon, 8 Feb 2010 20:04:35 +0000 (15:04 -0500)]
fixing up obxprop manpage
Dana Jansens [Mon, 8 Feb 2010 19:28:18 +0000 (14:28 -0500)]
Merge branch 'backport' into work
Dana Jansens [Mon, 8 Feb 2010 19:27:49 +0000 (14:27 -0500)]
add doc/obxprop.1 to gitignore
Dana Jansens [Mon, 8 Feb 2010 19:17:09 +0000 (14:17 -0500)]
Add obxprop manpage to install
Dana Jansens [Mon, 8 Feb 2010 18:55:29 +0000 (13:55 -0500)]
Update the manpage for obxprop
Specify that it allows you to specify properties on the command line.
Update the variable names to _OB_APP_*.
Dana Jansens [Fri, 5 Feb 2010 18:47:58 +0000 (13:47 -0500)]
Merge branch 'backport' into work
Dana Jansens [Thu, 28 Jan 2010 13:37:18 +0000 (08:37 -0500)]
Init all fonts to NULL, so if they arent in the config they use the default font
Mikael Magnusson [Mon, 18 Jan 2010 15:48:00 +0000 (16:48 +0100)]
Add a hook to unset the client in the open menu frame instead of closing it
Also nukes menu_frame_hide_all_client() as it is now unused.
Mikael Magnusson [Mon, 18 Jan 2010 15:48:27 +0000 (16:48 +0100)]
Don't close the menu when you held control even for execute
Mikael Magnusson [Sat, 16 Jan 2010 18:32:44 +0000 (19:32 +0100)]
Don't alt-tab to skip_taskbar iconic windows if they have parents
Dana Jansens [Thu, 28 Jan 2010 01:01:24 +0000 (20:01 -0500)]
make xdg-autostart use the OPENBOX environment by default, so you can say OnlyShowIn=OPENBOX in a .desktop and it will work as expected
Dana Jansens [Sun, 24 Jan 2010 05:07:56 +0000 (00:07 -0500)]
Fix bug #4492 better, the test in openbox-gnome-session needs to be inverted
Dana Jansens [Mon, 18 Jan 2010 21:08:23 +0000 (16:08 -0500)]
adjust who shows up in the alt-tab list using SKIP_TASKBAR (Fixes bug #4503)
allow window types != NORMAL to not show up in the alt-tab list
but don't allow DIALOG types to hide from the list
also any window which is DEMANDS_ATTENTION should appear in the list regardless
of its SKIP_TASKBAR status
Dana Jansens [Fri, 15 Jan 2010 22:49:54 +0000 (17:49 -0500)]
don't use client_move() to end a move
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
Dana Jansens [Fri, 15 Jan 2010 21:40:29 +0000 (16:40 -0500)]
allow multiple escaped _'s in a menu label, and allow a real _ to come later in the label (Fixes bug #4355).
Dana Jansens [Fri, 15 Jan 2010 21:15:05 +0000 (16:15 -0500)]
make edge detection for maximized windows only look at the edges of screens
Dana Jansens [Fri, 15 Jan 2010 20:48:56 +0000 (15:48 -0500)]
catch the SIGTTOU and SIGTTIN signals when an app we launch tries to use its stdin/out (but we don't have one either). Fixes bug #4072.
Dana Jansens [Fri, 15 Jan 2010 20:07:42 +0000 (15:07 -0500)]
if we get an event on a subwindow of root that we don't know about, but it is related to a press we received on the root window, then process the event (Fixes bug #3702)
Dana Jansens [Fri, 15 Jan 2010 19:50:36 +0000 (14:50 -0500)]
Remember the maximized state of a window when it goes fullscreen and try restore it after
Dana Jansens [Thu, 14 Jan 2010 23:38:40 +0000 (18:38 -0500)]
If a window places itself at (0,0) and there are struts there, assume it is a bug. Also allow oldschool fullscreen windows that cover all monitors on a multihead setup to work properly
Added a test 'oldfullscreen' that makes a oldschool fullscreen window
Dana Jansens [Thu, 14 Jan 2010 22:24:39 +0000 (17:24 -0500)]
allow app rules to match windows by their title when mapping
and save the title in the _OB_APP_TITLE property
Dana Jansens [Thu, 14 Jan 2010 21:53:32 +0000 (16:53 -0500)]
if openbox isn't running, show messages on the console rather than just losing them (like when another WM is running)
Dana Jansens [Thu, 14 Jan 2010 21:19:57 +0000 (16:19 -0500)]
Merge branch 'backport' into work
Conflicts:
openbox/frame.c
Laszlo Dvornik [Fri, 8 Jan 2010 21:40:40 +0000 (22:40 +0100)]
Update hungarian translation.
Dana Jansens [Thu, 14 Jan 2010 20:03:06 +0000 (15:03 -0500)]
Prefer to use larger images and scale down than to scale up (more distortion)
Dana Jansens [Thu, 14 Jan 2010 19:57:18 +0000 (14:57 -0500)]
don't resize the label to 0
Dana Jansens [Tue, 12 Jan 2010 18:59:25 +0000 (13:59 -0500)]
Fixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script
Dana Jansens [Tue, 12 Jan 2010 15:03:22 +0000 (10:03 -0500)]
remove the session.c file from actions, as it is no longer used
Mikael Magnusson [Mon, 11 Jan 2010 21:48:06 +0000 (22:48 +0100)]
NULL ic when we failed to load an image
Dana Jansens [Mon, 11 Jan 2010 21:20:53 +0000 (16:20 -0500)]
Merge branch 'backport' into work
Conflicts:
configure.ac
data/rc.xml
openbox/client.c
openbox/event.c
openbox/focus_cycle.c
openbox/focus_cycle_popup.c
openbox/openbox.c
openbox/prop.c
openbox/prop.h
openbox/screen.c
parser/parse.c
version.h.in
Dana Jansens [Mon, 11 Jan 2010 20:37:36 +0000 (15:37 -0500)]
make focus cycle target fallback work right by going to the next prev window
Dana Jansens [Mon, 11 Jan 2010 20:35:47 +0000 (15:35 -0500)]
Make the focus cycle indicator follow target fallback in the popup
Dana Jansens [Mon, 11 Jan 2010 20:13:55 +0000 (15:13 -0500)]
More work on refreshing the focus cycle dialog when windows are added/removed from the valid focus order
Dana Jansens [Mon, 11 Jan 2010 18:43:25 +0000 (13:43 -0500)]
When a user id is specified, or --root, use the ID directly, don't try find a client child of it
Dana Jansens [Mon, 11 Jan 2010 18:42:50 +0000 (13:42 -0500)]
Add _OB_VERSION and _OB_APP_ROLE/CLASS/NAME/TYPE
Add _OB_VERSION property on the root window.
Change _OB_ROLE/CLASS/NAME to _OB_APP_*.
Add _OB_APP_TYPE which has a string for the type chosen for the window on
mapping by Openbox.
Adjust the rc.xml to match these changes.
Dana Jansens [Mon, 11 Jan 2010 18:12:09 +0000 (13:12 -0500)]
Reuse ObFocusCyclePopupTargets when refreshing the focus cycle dialog
Dana Jansens [Mon, 11 Jan 2010 17:47:59 +0000 (12:47 -0500)]
Redraw the focus cycle popup when the list of focusable windows changes, rather than closing it
Dana Jansens [Mon, 11 Jan 2010 16:02:48 +0000 (11:02 -0500)]
If a window is added to the focus order while focus cycling, stop the focus cycling istead of crashing (See bug #4411)
Mikael Magnusson [Mon, 11 Jan 2010 00:27:30 +0000 (01:27 +0100)]
Fix ordering so fallback for inactive osd to label works
The themeing options (sic) for inactive osd labels added in
cfdbe23e0d9b72b4c220a10ddf60a4e981967b63 had the fallback to inactive
label before that was read in, so fallback failed to pick up some
things.
Einars Sprugis [Sun, 10 Jan 2010 21:23:20 +0000 (22:23 +0100)]
Update latvian translation.
Dana Jansens [Fri, 8 Jan 2010 23:16:37 +0000 (18:16 -0500)]
allow application rules to place transient/dialog/splash windows, and allow application rules to match only on the role or type if you wish.
Dana Jansens [Fri, 8 Jan 2010 22:48:07 +0000 (17:48 -0500)]
Rework the code provided by Kadlcik Libor for loading/showing icons in Openbox menus.
This changes how the imagecache works, you can load an image into it directly,
or you can load it by name (then it will load it from a file on disk).
NOTE: The name part is incomplete, as it needs to use the freedesktop.org icon
spec to search for the right file. Also to resize it should look for another
icon on disk with the same name but different size (icon themes).
Mikael Magnusson [Tue, 10 Jun 2008 15:52:04 +0000 (17:52 +0200)]
No \n on ob_debug in this branch.
Mikael Magnusson [Thu, 8 May 2008 17:27:52 +0000 (19:27 +0200)]
Some style changes, less ifdefs.
Kadlcik Libor [Tue, 25 Mar 2008 20:58:12 +0000 (21:58 +0100)]
This patch implements support for icons in user-defined menus into Openbox
Image loading is done using the Imlib2 library.
I chose Imlib2 because it's pretty fast, it's easy to use, supports many file
formats (tested xpm, gif, jpeg, png) and doesn't introduce too much bloat (it
depends :)).
I ported the patch to 3.4.7-pre3 and added some enhancements. Caching is much
better now, and icons can be disabled at compile time using --disable-imlib2
option.
What's new?
Syntax of configuration files (namely rc.xml and menu.xml) has been changed
slightly to allow users to associate icons to menu entries. This is done by
specifying path to icon file in the new "icon" attribute in "<item>" element,
e.g:
<item label="Vim" icon="/usr/share/pixmaps/vim-32.xpm">
<action name="Execute"><execute>x-terminal-emulator -T Vim -e
vim</execute></action>
</item>
If user doesn't want to display any icons in his user-defined menus, he/she can
disable icons in rc.xml, inside "<menu>" section:
<menu>
...
<showIcons>no</showIcons>
...
</menu>
Default value is "yes".
(New boolean variable "config_menu_user_show_icons" has been added to source
code.)
An icon is loaded (using menu_item_attach_icon()) when a new entry of menu is
created. Fortunately, I haven't notice any performance problems because of this
:).
Laszlo Dvornik [Fri, 8 Jan 2010 21:40:40 +0000 (22:40 +0100)]
Update hungarian translation.
Mikael Magnusson [Fri, 8 Jan 2010 20:51:35 +0000 (21:51 +0100)]
Pass NULL, not 0, handle invalid --id better.
Mikael Magnusson [Fri, 8 Jan 2010 20:51:04 +0000 (21:51 +0100)]
obxprop: Add ability to limit listing to given properties
Mikael Magnusson [Fri, 8 Jan 2010 20:07:04 +0000 (21:07 +0100)]
Fix the ~ expansion regex
The look-around things are fixed-width but the [stuff] is 1 char, and
the $ is 0 so it didn't work. I already used that trick for the ^,
maybe it used to work due to a bug or smth.
Dana Jansens [Fri, 8 Jan 2010 19:40:29 +0000 (14:40 -0500)]
Make focus_valid_target() take a desktop argument.
So you can find valid targets on desktops other than the currently visible one
Dana Jansens [Fri, 8 Jan 2010 19:34:40 +0000 (14:34 -0500)]
use the valid_focus_target() method for choosing what to show in the client list menus
Dana Jansens [Fri, 8 Jan 2010 19:34:22 +0000 (14:34 -0500)]
allow alt-tab etc to move focus to skip_taskbar windows when they are iconic
Dana Jansens [Fri, 8 Jan 2010 19:33:58 +0000 (14:33 -0500)]
use obt_xml_* to navigate the xml file (also XML tags are case sensitive)
Dana Jansens [Fri, 8 Jan 2010 18:22:09 +0000 (13:22 -0500)]
ignore some added tests
Dana Jansens [Fri, 8 Jan 2010 15:45:24 +0000 (10:45 -0500)]
Don't handle input events on prompts if they should be used for a binding/menu instead.
Also, be more careful about making the prompt buttons look pressed, don't make them pressed from a motion notify event if they didnt first handle the press.
Dana Jansens [Fri, 8 Jan 2010 15:22:30 +0000 (10:22 -0500)]
Merge branch 'backport' into work
Conflicts:
Makefile.am
openbox/actions/focus.c
openbox/config.c
openbox/event.c
openbox/menuframe.c
Mikael Magnusson [Thu, 17 Dec 2009 16:24:50 +0000 (17:24 +0100)]
Change Usage translation in japanese, this is what gtk uses
Dana Jansens [Fri, 8 Jan 2010 14:04:25 +0000 (09:04 -0500)]
make Home and End keys navigate to top/bottom of the active menu
Dana Jansens [Fri, 8 Jan 2010 14:00:00 +0000 (09:00 -0500)]
Use submenuShowDelay when navigating menus with the keyboard
Dana Jansens [Wed, 6 Jan 2010 23:58:27 +0000 (18:58 -0500)]
Fix a crash when moving into a menu on top of a separator and nothing is selected
Dana Jansens [Wed, 6 Jan 2010 22:30:42 +0000 (17:30 -0500)]
Improved menu behaviour
Make 'left' key in a menu close it's visible child menu and move to the parent
properly.
Make clicking on a menu item in a menu close any of its grandchildren and
remove focus from its children, effectively focusing the menu item you
clicked on.
Dana Jansens [Wed, 6 Jan 2010 18:41:15 +0000 (13:41 -0500)]
Change the openbox website to openbox.org
Dana Jansens [Wed, 6 Jan 2010 18:39:02 +0000 (13:39 -0500)]
add a manpage for obxprop
Dana Jansens [Wed, 6 Jan 2010 18:24:41 +0000 (13:24 -0500)]
Add a --root option for obxprop
Dana Jansens [Mon, 4 Jan 2010 20:26:10 +0000 (15:26 -0500)]
Allow infinite delay for submenu show/hide by using a negative value.
Dana Jansens [Mon, 4 Jan 2010 20:07:10 +0000 (15:07 -0500)]
Some fixes for the submenu hide delay code
When nothing in a menu is selected, go back to selecting the open submenu.
Adjust the LeaveNotify event handling to only respond when there is not a
EnterNotify coming for the same menu frame.
Change the default submenu show/hide delays.
Have the default values for submenu show/hide match the default rc.xml
Alexey Korop [Mon, 4 Jan 2010 18:21:12 +0000 (13:21 -0500)]
improve submenu hide delay
Dana Jansens [Tue, 22 Dec 2009 14:31:50 +0000 (09:31 -0500)]
Revert "Don't hide submenus immediately when unselecting the parent's entry"
This reverts commit
828c095c8b5a2df96a38faaeb8a0df504e68e70f.
Dana Jansens [Tue, 22 Dec 2009 14:31:38 +0000 (09:31 -0500)]
Revert "Fix the delayed hiding of submenus, so that they don't end up hidden while the entry is selected"
This reverts commit
8ada991d829671ab5e6dd4c5526b6a0238ba6a16.