mikachu/openbox.git
16 years agoqueue hooks so that they don't run as each thing happens, instead run them at the...
Dana Jansens [Sat, 1 Mar 2008 06:52:38 +0000 (01:52 -0500)]
queue hooks so that they don't run as each thing happens, instead run them at the end.  keep the openbox code paths fast.

16 years agomake it $pid and $wid, it's a little faster this way and they look the same so why not
Dana Jansens [Sat, 1 Mar 2008 06:30:29 +0000 (01:30 -0500)]
make it $pid and $wid, it's a little faster this way and they look the same so why not

16 years agoMerge branch 'backport' into work
Dana Jansens [Sat, 1 Mar 2008 06:22:37 +0000 (01:22 -0500)]
Merge branch 'backport' into work

16 years agomove some code around in the execute action
Dana Jansens [Sat, 1 Mar 2008 06:21:55 +0000 (01:21 -0500)]
move some code around in the execute action

16 years agofix the menu's command for urxvt
Dana Jansens [Sat, 1 Mar 2008 06:16:18 +0000 (01:16 -0500)]
fix the menu's command for urxvt

16 years agoinstead of passing things to the environment, substitute $pid and $window inline...
Dana Jansens [Sat, 1 Mar 2008 05:52:49 +0000 (00:52 -0500)]
instead of passing things to the environment, substitute $pid and $window inline in the Execute command string

16 years agopass the targeted window's PID (if available) and WINDOW_ID to the environment of...
Dana Jansens [Sat, 1 Mar 2008 05:18:33 +0000 (00:18 -0500)]
pass the targeted window's PID (if available) and WINDOW_ID to the environment of the Execute action

16 years agoalways send the exact client to the hook's actions that the hook fired for
Dana Jansens [Sat, 1 Mar 2008 05:09:20 +0000 (00:09 -0500)]
always send the exact client to the hook's actions that the hook fired for

16 years agoGet hooks working
Dana Jansens [Sat, 1 Mar 2008 05:04:28 +0000 (00:04 -0500)]
Get hooks working

16 years agochange some of the hooks, and add all the hooks to the code so that they run
Dana Jansens [Sat, 1 Mar 2008 04:34:28 +0000 (23:34 -0500)]
change some of the hooks, and add all the hooks to the code so that they run

16 years agoAdd a hook system. They hooks don't run yet but they parse from the config file.
Dana Jansens [Sat, 1 Mar 2008 04:16:31 +0000 (23:16 -0500)]
Add a hook system.  They hooks don't run yet but they parse from the config file.

16 years agoMerge branch 'backport' into work
Mikael Magnusson [Fri, 29 Feb 2008 03:21:02 +0000 (04:21 +0100)]
Merge branch 'backport' into work

Conflicts:

openbox/client.c
openbox/screen.c

16 years agorender depends on obt, so make/install it first (fixes making deb package from it)
Dana Jansens [Fri, 29 Feb 2008 02:40:46 +0000 (21:40 -0500)]
render depends on obt, so make/install it first (fixes making deb package from it)

16 years agoRemove an unused variable.
Mikael Magnusson [Fri, 29 Feb 2008 02:18:12 +0000 (03:18 +0100)]
Remove an unused variable.

16 years agoUpdate brasilian portuguese translation.
Og Maciel [Thu, 28 Feb 2008 22:33:48 +0000 (23:33 +0100)]
Update brasilian portuguese translation.

16 years agoUpdate po/ with new strings, and update swedish translation.
Mikael Magnusson [Thu, 28 Feb 2008 21:37:18 +0000 (22:37 +0100)]
Update po/ with new strings, and update swedish translation.
Also add an overly long comment about translating FILE in the help output.

16 years agoVery inconsequential changes.
Mikael Magnusson [Thu, 28 Feb 2008 19:57:33 +0000 (20:57 +0100)]
Very inconsequential changes.

16 years agoFree copied glists when removing desktops.
Mikael Magnusson [Thu, 28 Feb 2008 19:40:52 +0000 (20:40 +0100)]
Free copied glists when removing desktops.

16 years agomake a nicer default menu with a lot of common apps in it
Dana Jansens [Thu, 28 Feb 2008 17:31:06 +0000 (12:31 -0500)]
make a nicer default menu with a lot of common apps in it

16 years agoIf a window is maximized and has FUNC_MAXIMIZE disabled, still let it unmaximize...
Dana Jansens [Thu, 28 Feb 2008 15:00:29 +0000 (10:00 -0500)]
If a window is maximized and has FUNC_MAXIMIZE disabled, still let it unmaximize.  When normal hints change and we reconfigure, the w/h of the window may not have changed - rather the minw/maxh etc may have changed.  So in client_try_configure always run through the code that checks them to see if the client should be resized or whatever.

16 years agoUpdate send-to-desktop menu in the client menu when ctrl-clicking and the client...
Mikael Magnusson [Thu, 28 Feb 2008 16:54:49 +0000 (17:54 +0100)]
Update send-to-desktop menu in the client menu when ctrl-clicking and the client is still visible, ie toggling omnipresent.

Also indicates which is the current desktop by moving the omnipresent
icon to it when the window is omnipresent. Do some refactoring and
cleanup so the net change is removal of lines, go me.

16 years agoTry to fix the off-by-one errors even more.
Mikael Magnusson [Thu, 28 Feb 2008 11:42:40 +0000 (12:42 +0100)]
Try to fix the off-by-one errors even more.

16 years agofix some off-by-one errors in edge finding for moving and resizing windows (bug 3506)
Dana Jansens [Thu, 28 Feb 2008 06:20:20 +0000 (01:20 -0500)]
fix some off-by-one errors in edge finding for moving and resizing windows (bug 3506)

16 years agoMerge branch 'backport' into work
Mikael Magnusson [Thu, 28 Feb 2008 05:20:50 +0000 (06:20 +0100)]
Merge branch 'backport' into work

Conflicts:

Makefile.am

16 years agoSimplify client_set_state.
Mikael Magnusson [Thu, 28 Feb 2008 03:25:31 +0000 (04:25 +0100)]
Simplify client_set_state.

16 years agoWhen showing a window's title in the kill prompt, if it doesn't have a title use...
Dana Jansens [Thu, 28 Feb 2008 04:11:08 +0000 (23:11 -0500)]
When showing a window's title in the kill prompt, if it doesn't have a title use its parent's (same way the focus cycle popup does)

16 years agoadd the autostart.sh.in to the dist targz instead of the autostart.sh
Dana Jansens [Thu, 28 Feb 2008 03:46:44 +0000 (22:46 -0500)]
add the autostart.sh.in to the dist targz instead of the autostart.sh

16 years agoinclude the xdg-autostart script in the dist targz
Dana Jansens [Thu, 28 Feb 2008 03:44:22 +0000 (22:44 -0500)]
include the xdg-autostart script in the dist targz

16 years agoclean up the execute action code, and free the prompt option string
Dana Jansens [Thu, 28 Feb 2008 03:19:59 +0000 (22:19 -0500)]
clean up the execute action code, and free the prompt option string

16 years agochange the yes/no buttons to Exit/Cancel for the exit prompt
Dana Jansens [Thu, 28 Feb 2008 03:14:11 +0000 (22:14 -0500)]
change the yes/no buttons to Exit/Cancel for the exit prompt

16 years agoset the right version in the new render and obt .pc files
Dana Jansens [Thu, 28 Feb 2008 02:12:42 +0000 (21:12 -0500)]
set the right version in the new render and obt .pc files

16 years agoobrender uses obt now, there is no obparser anymore
Dana Jansens [Thu, 28 Feb 2008 02:09:19 +0000 (21:09 -0500)]
obrender uses obt now, there is no obparser anymore

16 years agoMerge branch 'backport' into work
Dana Jansens [Thu, 28 Feb 2008 02:07:10 +0000 (21:07 -0500)]
Merge branch 'backport' into work

Conflicts:

openbox/actions/execute.c

16 years agosome new translated strings
Dana Jansens [Thu, 28 Feb 2008 02:04:04 +0000 (21:04 -0500)]
some new translated strings

16 years agoadd a boolean <prompt> option to the Exit action, which will ask before exiting openbox
Dana Jansens [Thu, 28 Feb 2008 01:43:28 +0000 (20:43 -0500)]
add a boolean <prompt> option to the Exit action, which will ask before exiting openbox

16 years agoGive the Execute action the <prompt> option
Dana Jansens [Thu, 28 Feb 2008 01:35:18 +0000 (20:35 -0500)]
Give the Execute action the <prompt> option

16 years agoMerge branch 'backport' into work
Dana Jansens [Thu, 28 Feb 2008 00:37:48 +0000 (19:37 -0500)]
Merge branch 'backport' into work

16 years agomake the xdg-autostart script get installed to PREFIX/lib/openbox, and make the autos...
Dana Jansens [Thu, 28 Feb 2008 00:21:16 +0000 (19:21 -0500)]
make the xdg-autostart script get installed to PREFIX/lib/openbox, and make the autostart.sh script look for it there.

16 years agoMerge branch 'backport' into work
Mikael Magnusson [Wed, 27 Feb 2008 03:50:41 +0000 (04:50 +0100)]
Merge branch 'backport' into work

Conflicts:

openbox/client.c
openbox/event.c
openbox/event.h

16 years agoUpdate po files with new strings, update swedish translation.
Mikael Magnusson [Wed, 27 Feb 2008 03:58:12 +0000 (04:58 +0100)]
Update po files with new strings, update swedish translation.

16 years agoChange the kill prompt buttons to "Cancel" and "End Process"/"Disconnect" (for local...
Dana Jansens [Wed, 27 Feb 2008 03:22:35 +0000 (22:22 -0500)]
Change the kill prompt buttons to "Cancel" and "End Process"/"Disconnect" (for local/remote apps)

16 years agoFix some typos and style in client.c, and add a comment.
Mikael Magnusson [Wed, 27 Feb 2008 02:59:25 +0000 (03:59 +0100)]
Fix some typos and style in client.c, and add a comment.
Also moves a comment from many places into one place.

16 years agoMake "Unnamed Window" translatable.
Mikael Magnusson [Wed, 27 Feb 2008 02:51:52 +0000 (03:51 +0100)]
Make "Unnamed Window" translatable.

16 years agoPass TRUE instead of FALSE to do what the comment says.
Mikael Magnusson [Wed, 27 Feb 2008 00:04:22 +0000 (01:04 +0100)]
Pass TRUE instead of FALSE to do what the comment says.

16 years agoVarious cleanups of event.c
Mikael Magnusson [Tue, 26 Feb 2008 13:49:49 +0000 (14:49 +0100)]
Various cleanups of event.c

Typo in debug message.
Improve some comments.
Space after comma.
Factor out compress_client_message_event.
Fold two ifs together.
Change duplicated case to fall through.

16 years agoRefactor the event handling for titlebar buttons a bit.
Mikael Magnusson [Tue, 26 Feb 2008 13:12:02 +0000 (14:12 +0100)]
Refactor the event handling for titlebar buttons a bit.

16 years agoadd xce-mcs-manager to the autostart.sh - run it if gsd is not found
Dana Jansens [Wed, 27 Feb 2008 02:17:26 +0000 (21:17 -0500)]
add xce-mcs-manager to the autostart.sh - run it if gsd is not found

16 years agoMerge branch 'backport' into work
Dana Jansens [Tue, 26 Feb 2008 08:15:21 +0000 (03:15 -0500)]
Merge branch 'backport' into work

16 years agoFixing bug from commit 041d17373e04
Dana Jansens [Tue, 26 Feb 2008 08:12:57 +0000 (03:12 -0500)]
Fixing bug from commit 041d17373e04

Pressing a button and leave/enter would cause the button to show hover mode, not pressed mode.  Change the behaviour back to how it used to be for pressing (the button stays pressed when you move outside of its box) and make it work correctly, as commit 041d17373e04 also did for menus.

Reverting this behaviour because it seems impossible to do the enter/leave stuff correctly for the close button on maximized windows.  Leaving the titlebar contexts doesn't give us an Enter event to go along with it, so even if we check all motion events, the button will flash unpressed when leaving the topright contexts.

16 years agoMerge branch 'backport' into work
Dana Jansens [Tue, 26 Feb 2008 06:00:26 +0000 (01:00 -0500)]
Merge branch 'backport' into work

16 years agochange the buttons in the kill prompt from "yes/no" which can be a little confusing...
Dana Jansens [Tue, 26 Feb 2008 05:59:25 +0000 (00:59 -0500)]
change the buttons in the kill prompt from "yes/no" which can be a little confusing to be more clear "cancel/force exit" so people won't do the wrong thing by accident so much

16 years agoshow the desktop change popup before mapping/unmapping all the windows
Dana Jansens [Tue, 26 Feb 2008 03:16:58 +0000 (22:16 -0500)]
show the desktop change popup before mapping/unmapping all the windows

this makes a big difference if the compmgr is being laggy trying to show windows

16 years agoMerge branch 'backport' into work
Dana Jansens [Fri, 22 Feb 2008 17:31:26 +0000 (12:31 -0500)]
Merge branch 'backport' into work

Conflicts:

openbox/menuframe.c
openbox/prompt.c
openbox/prop.c
openbox/prop.h

16 years agoAdd theme options for menu line separators.
Dana Jansens [Fri, 22 Feb 2008 17:12:20 +0000 (12:12 -0500)]
Add theme options for menu line separators.

Added:
 menu.separator.color
 menu.separator.width
 menu.separator.padding.width
 menu.separator.padding.height

16 years agoAllow windows to specify a base-size of 0
Dana Jansens [Fri, 22 Feb 2008 15:52:04 +0000 (10:52 -0500)]
Allow windows to specify a base-size of 0

This fixes the resize popup for terminal windows, if the base-size was 0, the size popup would be off by one.

16 years agoLet ObPrompts be modal dialogs, and when they are transient for a window, make it...
Dana Jansens [Fri, 22 Feb 2008 15:38:14 +0000 (10:38 -0500)]
Let ObPrompts be modal dialogs, and when they are transient for a window, make it transient for its entire group, so it can be stacked at the highest level above other transients

16 years agoMerge branch 'backport' into work
Dana Jansens [Thu, 21 Feb 2008 18:24:19 +0000 (13:24 -0500)]
Merge branch 'backport' into work

Conflicts:

openbox/openbox.c
openbox/session.c

16 years agoIf multiple key bindings at the same level are not able to be translated, then don...
Dana Jansens [Thu, 21 Feb 2008 18:00:11 +0000 (13:00 -0500)]
If multiple key bindings at the same level are not able to be translated, then don't have them conflict and end up removing untranslated bindings from the key tree.  This way they can be re-translated later.

This fixes keybindings getting lost when VMWare grabs the keyboard/pointer

16 years agoChange all single quotes to double quotes in strings.
Mikael Magnusson [Thu, 21 Feb 2008 10:57:06 +0000 (11:57 +0100)]
Change all single quotes to double quotes in strings.

16 years agoUpdate finnish translation.
Mikael Magnusson [Thu, 14 Feb 2008 12:49:01 +0000 (13:49 +0100)]
Update finnish translation.

16 years agoMoveResizeTo was broken for opposite edges.
Mikael Magnusson [Tue, 19 Feb 2008 17:44:49 +0000 (18:44 +0100)]
MoveResizeTo was broken for opposite edges.

16 years agoMerge branch 'backport' into work
Dana Jansens [Tue, 19 Feb 2008 01:43:18 +0000 (20:43 -0500)]
Merge branch 'backport' into work

Conflicts:

openbox/grab.c
openbox/keyboard.c

16 years agoFix button press behaviours. On LeaveNotify, make the button no longer pressed....
Dana Jansens [Mon, 18 Feb 2008 22:12:38 +0000 (17:12 -0500)]
Fix button press behaviours.  On LeaveNotify, make the button no longer pressed.  On MotionNotify, only make it hovered if no button is pressed down.  On EnterNotify, make it hovered or pressed as appropriate.

This fixes case where you left-click and hold on a button, then right click to open the menu - this used to leave the button in a pressed state.

16 years agoGrab key bindings with GrabModeSync, so that if they lead to a keyboard grab, then...
Dana Jansens [Mon, 18 Feb 2008 20:55:59 +0000 (15:55 -0500)]
Grab key bindings with GrabModeSync, so that if they lead to a keyboard grab, then no keyboard events will be lost between the initial keybinding and the keyboard grab.

16 years agothe focus indicator line for prompt buttons wasn't being displayed, since the texture...
Dana Jansens [Mon, 18 Feb 2008 04:51:18 +0000 (23:51 -0500)]
the focus indicator line for prompt buttons wasn't being displayed, since the texture type was no longer being set

16 years agoUpdate spanish translation.
Elián Hanisch [Mon, 18 Feb 2008 22:26:31 +0000 (23:26 +0100)]
Update spanish translation.

16 years agoFix some typos in comments.
Mikael Magnusson [Mon, 11 Feb 2008 17:06:22 +0000 (18:06 +0100)]
Fix some typos in comments.

16 years agoAdd a comment for translators about how to change order of arguments.
Mikael Magnusson [Sun, 17 Feb 2008 16:01:07 +0000 (17:01 +0100)]
Add a comment for translators about how to change order of arguments.

16 years agoUpdate all the po files so they contain the new prompt strings so translators can...
Mikael Magnusson [Sun, 17 Feb 2008 15:39:56 +0000 (16:39 +0100)]
Update all the po files so they contain the new prompt strings so translators can translate them.

16 years agoUpdate swedish translation.
Mikael Magnusson [Sun, 17 Feb 2008 15:38:22 +0000 (16:38 +0100)]
Update swedish translation.

16 years agoUpdate traditional chinese translation.
洪任諭 [Sun, 17 Feb 2008 15:35:52 +0000 (16:35 +0100)]
Update traditional chinese translation.

16 years agoUpdate swedish translation.
Mikael Magnusson [Sun, 17 Feb 2008 15:10:42 +0000 (16:10 +0100)]
Update swedish translation.

16 years ago() -> (void) also in .h files, and fix a place that gave arguments when it shouldn...
Mikael Magnusson [Fri, 15 Feb 2008 15:47:10 +0000 (16:47 +0100)]
() -> (void) also in .h files, and fix a place that gave arguments when it shouldn't have.

16 years ago() -> (void)
Mikael Magnusson [Fri, 15 Feb 2008 15:15:00 +0000 (16:15 +0100)]
() -> (void)

16 years agoMerge branch 'backport' into work
Dana Jansens [Fri, 15 Feb 2008 15:02:07 +0000 (10:02 -0500)]
Merge branch 'backport' into work

Conflicts:

openbox/frame.c
openbox/menuframe.c

16 years agoremove prop.c/h, as they were reintroduced in a bad merge (0dc7eca4cdfff6425e19a0bace...
Dana Jansens [Fri, 15 Feb 2008 15:01:32 +0000 (10:01 -0500)]
remove prop.c/h, as they were reintroduced in a bad merge (0dc7eca4cdfff6425e19a0bace0f9ae8834d04e8)

16 years agomake the frame iconify animation go right into the icon geometry area instead of...
Dana Jansens [Fri, 15 Feb 2008 06:07:15 +0000 (01:07 -0500)]
make the frame iconify animation go right into the icon geometry area instead of stopping before it

16 years agoset the window type hint on menus to be "popup menus"
Dana Jansens [Fri, 15 Feb 2008 04:04:54 +0000 (23:04 -0500)]
set the window type hint on menus to be "popup menus"

16 years agoMerge branch 'backport' into work
Dana Jansens [Thu, 14 Feb 2008 20:14:55 +0000 (15:14 -0500)]
Merge branch 'backport' into work

16 years agoMerge branch 'backport' into work
Dana Jansens [Thu, 14 Feb 2008 20:14:41 +0000 (15:14 -0500)]
Merge branch 'backport' into work

16 years agoavoid a compiler warning
Dana Jansens [Thu, 14 Feb 2008 20:11:25 +0000 (15:11 -0500)]
avoid a compiler warning

16 years agodon't reference free'd memory, and don't leak memory if the image cache is not saving...
Dana Jansens [Thu, 14 Feb 2008 02:30:18 +0000 (21:30 -0500)]
don't reference free'd memory, and don't leak memory if the image cache is not saving any resized pictures

16 years agodon't use \n at the end of g_message strings
Dana Jansens [Thu, 14 Feb 2008 19:57:02 +0000 (14:57 -0500)]
don't use \n at the end of g_message strings

16 years agouse g_message not g_print so it can go to the log
Dana Jansens [Wed, 13 Feb 2008 15:28:56 +0000 (10:28 -0500)]
use g_message not g_print so it can go to the log

16 years agopre-calc the sum of a picture added to an RrImage rather than calculating it every...
Dana Jansens [Wed, 13 Feb 2008 14:14:58 +0000 (09:14 -0500)]
pre-calc the sum of a picture added to an RrImage rather than calculating it every time

16 years agoadd a bunch of comments for images and image caches. and make the number of resized...
Dana Jansens [Wed, 13 Feb 2008 13:43:57 +0000 (08:43 -0500)]
add a bunch of comments for images and image caches.  and make the number of resized pictures saved in an image tunable per-icon cache.

16 years agowhen resizing images, pick a source image with the same aspect ratio if possible
Dana Jansens [Wed, 13 Feb 2008 03:29:23 +0000 (22:29 -0500)]
when resizing images, pick a source image with the same aspect ratio if possible

16 years agoIntroducing the icon cache.
Dana Jansens [Thu, 14 Feb 2008 09:47:49 +0000 (10:47 +0100)]
Introducing the icon cache.

If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!

16 years agobackport the changes to render/ from the alttab branch (commit 3592046b2b26e05ee94c0d...
Dana Jansens [Thu, 14 Feb 2008 19:44:17 +0000 (14:44 -0500)]
backport the changes to render/ from the alttab branch (commit 3592046b2b26e05ee94c0dd0fed5b7fd5475c198) in master, as the iconcache changes depend on this

git show 3592046b -- render

16 years agoMerge branch 'backport' into work
Dana Jansens [Thu, 14 Feb 2008 19:36:05 +0000 (14:36 -0500)]
Merge branch 'backport' into work

16 years agoput the char member at the bottom of the struct so that it doesnt mess up alignment...
Mikael Magnusson [Thu, 14 Feb 2008 14:46:02 +0000 (15:46 +0100)]
put the char member at the bottom of the struct so that it doesnt mess up alignment for the other members (assuming the compiler doesn't pad the struct appropriately anyways)

16 years agoobprompts do not have a stacking layer, as they don't appear directly in the stacking...
Dana Jansens [Thu, 14 Feb 2008 19:27:46 +0000 (14:27 -0500)]
obprompts do not have a stacking layer, as they don't appear directly in the stacking list

16 years agoobprompts do not have a stacking layer, as they don't appear directly in the stacking...
Dana Jansens [Thu, 14 Feb 2008 19:27:46 +0000 (14:27 -0500)]
obprompts do not have a stacking layer, as they don't appear directly in the stacking list

16 years agodraw a box inside the key-focused button in an ObPrompt. also fix rendering the...
Dana Jansens [Thu, 14 Feb 2008 18:10:33 +0000 (13:10 -0500)]
draw a box inside the key-focused button in an ObPrompt.  also fix rendering the buttons when they are parent-relative.

16 years agofix min-size calculations for lineart textures
Dana Jansens [Thu, 14 Feb 2008 17:31:51 +0000 (12:31 -0500)]
fix min-size calculations for lineart textures

16 years agomake ObPrompts resize and redraw correctly when reconfiguring and changing themes...
Dana Jansens [Thu, 14 Feb 2008 17:15:30 +0000 (12:15 -0500)]
make ObPrompts resize and redraw correctly when reconfiguring and changing themes with them open

16 years agodon't ping everything all the time. yay. ping when you close, and if it doesn't...
Dana Jansens [Tue, 12 Feb 2008 03:45:27 +0000 (22:45 -0500)]
don't ping everything all the time. yay.  ping when you close, and if it doesn't reply then show the kill prompt.   also show a more correct prompt for windows connecting from non-local machines - ask to disconnect them from the X server.

16 years agotell what signal is going to be sent to the client when killing through the dialog
Dana Jansens [Thu, 7 Feb 2008 06:46:40 +0000 (01:46 -0500)]
tell what signal is going to be sent to the client when killing through the dialog

16 years agouse the hover and press button colors (this was a bug)
Dana Jansens [Thu, 7 Feb 2008 06:36:05 +0000 (01:36 -0500)]
use the hover and press button colors (this was a bug)

16 years agowhen drawing and measuring strings in "flow" mode, don't ellipsize so that lines...
Dana Jansens [Thu, 7 Feb 2008 06:34:34 +0000 (01:34 -0500)]
when drawing and measuring strings in "flow" mode, don't ellipsize so that lines can wrap