Commit graph

7125 commits

Author SHA1 Message Date
Dana Jansens
8116106f9d fixing up obxprop manpage 2010-02-08 15:04:35 -05:00
Dana Jansens
6014a41760 Merge branch 'backport' into work 2010-02-08 14:28:18 -05:00
Dana Jansens
687f6e6e4e add doc/obxprop.1 to gitignore 2010-02-08 14:27:49 -05:00
Dana Jansens
95f81b8e4c Add obxprop manpage to install 2010-02-08 14:23:32 -05:00
Dana Jansens
f7440be0f5 Update the manpage for obxprop
Specify that it allows you to specify properties on the command line.
Update the variable names to _OB_APP_*.
2010-02-08 14:23:26 -05:00
Dana Jansens
31f0c8c1ad Merge branch 'backport' into work 2010-02-05 13:47:58 -05:00
Dana Jansens
02a956b065 Init all fonts to NULL, so if they arent in the config they use the default font 2010-01-28 08:40:07 -05:00
Mikael Magnusson
0cd6f4e43c 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.
2010-01-28 08:40:07 -05:00
Mikael Magnusson
7cfaae8da9 Don't close the menu when you held control even for execute 2010-01-28 08:40:07 -05:00
Mikael Magnusson
d00a0060f0 Don't alt-tab to skip_taskbar iconic windows if they have parents 2010-01-28 08:40:00 -05:00
Dana Jansens
2ab63cb36f make xdg-autostart use the OPENBOX environment by default, so you can say OnlyShowIn=OPENBOX in a .desktop and it will work as expected 2010-01-27 20:01:24 -05:00
Dana Jansens
14f8b4cb54 Fix bug #4492 better, the test in openbox-gnome-session needs to be inverted 2010-01-24 00:07:56 -05:00
Dana Jansens
03b4c87205 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
2010-01-18 16:21:43 -05:00
Dana Jansens
7be28d3010 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
2010-01-15 17:49:54 -05:00
Dana Jansens
16433ce06c allow multiple escaped _'s in a menu label, and allow a real _ to come later in the label (Fixes bug #4355). 2010-01-15 16:40:29 -05:00
Dana Jansens
1e72cf5e45 make edge detection for maximized windows only look at the edges of screens 2010-01-15 16:15:05 -05:00
Dana Jansens
8d7ab691b8 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. 2010-01-15 16:06:28 -05:00
Dana Jansens
0e3ce9e407 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) 2010-01-15 15:14:58 -05:00
Dana Jansens
d3ca5d5b4c Remember the maximized state of a window when it goes fullscreen and try restore it after 2010-01-15 14:50:36 -05:00
Dana Jansens
54e04a520b 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
2010-01-14 18:41:25 -05:00
Dana Jansens
6cf3357036 allow app rules to match windows by their title when mapping
and save the title in the _OB_APP_TITLE property
2010-01-14 18:41:21 -05:00
Dana Jansens
ae85462f2b if openbox isn't running, show messages on the console rather than just losing them (like when another WM is running) 2010-01-14 16:53:32 -05:00
Dana Jansens
3bd4397b6e Merge branch 'backport' into work
Conflicts:

	openbox/frame.c
2010-01-14 16:19:57 -05:00
Laszlo Dvornik
374888f5e9 Update hungarian translation. 2010-01-14 21:09:17 +01:00
Dana Jansens
7e6b2eaef7 Prefer to use larger images and scale down than to scale up (more distortion) 2010-01-14 15:03:06 -05:00
Dana Jansens
ba747518bb don't resize the label to 0 2010-01-14 14:57:18 -05:00
Dana Jansens
62e36ad041 Fixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script 2010-01-12 14:29:23 -05:00
Dana Jansens
937b529893 remove the session.c file from actions, as it is no longer used 2010-01-12 10:10:06 -05:00
Mikael Magnusson
e8b6ead25a NULL ic when we failed to load an image 2010-01-11 23:53:45 +01:00
Dana Jansens
567fd15eeb 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
2010-01-11 16:20:53 -05:00
Dana Jansens
e8200ae603 make focus cycle target fallback work right by going to the next prev window 2010-01-11 15:37:50 -05:00
Dana Jansens
bd864012cd Make the focus cycle indicator follow target fallback in the popup 2010-01-11 15:35:47 -05:00
Dana Jansens
14180a6b0d More work on refreshing the focus cycle dialog when windows are added/removed from the valid focus order 2010-01-11 15:13:55 -05:00
Dana Jansens
358056b102 When a user id is specified, or --root, use the ID directly, don't try find a client child of it 2010-01-11 13:43:25 -05:00
Dana Jansens
91af4d5bc9 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.
2010-01-11 13:42:50 -05:00
Dana Jansens
b8e994e837 Reuse ObFocusCyclePopupTargets when refreshing the focus cycle dialog 2010-01-11 13:12:09 -05:00
Dana Jansens
12653a4153 Redraw the focus cycle popup when the list of focusable windows changes, rather than closing it 2010-01-11 12:47:59 -05:00
Dana Jansens
d3a01a40f3 If a window is added to the focus order while focus cycling, stop the focus cycling istead of crashing (See bug #4411) 2010-01-11 11:04:27 -05:00
Mikael Magnusson
3e9dbc0143 Fix ordering so fallback for inactive osd to label works
The themeing options (sic) for inactive osd labels added in
cfdbe23e0d had the fallback to inactive
label before that was read in, so fallback failed to pick up some
things.
2010-01-11 01:27:30 +01:00
Einars Sprugis
9cf5903e16 Update latvian translation. 2010-01-10 22:23:20 +01:00
Dana Jansens
b3cc8f4876 allow application rules to place transient/dialog/splash windows, and allow application rules to match only on the role or type if you wish. 2010-01-10 22:15:27 +01:00
Dana Jansens
8c9fb63baa 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).
2010-01-08 17:55:19 -05:00
Mikael Magnusson
fc120a7530 No \n on ob_debug in this branch. 2010-01-08 17:55:19 -05:00
Mikael Magnusson
51257397b0 Some style changes, less ifdefs. 2010-01-08 17:55:19 -05:00
Kadlcik Libor
0352abfa88 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
:).
2010-01-08 17:55:19 -05:00
Laszlo Dvornik
d25398c4c8 Update hungarian translation. 2010-01-08 22:40:40 +01:00
Mikael Magnusson
4c544102c3 Pass NULL, not 0, handle invalid --id better. 2010-01-08 21:51:35 +01:00
Mikael Magnusson
54c841f7b5 obxprop: Add ability to limit listing to given properties 2010-01-08 21:51:04 +01:00
Mikael Magnusson
2b0dfb81cf 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.
2010-01-08 21:07:05 +01:00
Dana Jansens
63f748aa3f Make focus_valid_target() take a desktop argument.
So you can find valid targets on desktops other than the currently visible one
2010-01-08 14:44:37 -05:00