Commit graph

7520 commits

Author SHA1 Message Date
Dana Jansens
881076d2a8 Add queries to If actions
This allows the If action to run queries against a client other than
the target of the actions being run, for example to check state on
the focused window while performing actions on another window during
focus cycling.

The syntax looks like

<action name="If">
  <query target="default">
    <title>FooBar</title>
    <maximized>yes</maximized>
  </query>
  <query target="focus">
    <desktop>3</desktop>
  </query>
  <then>
   <action name="NextDesktop"/>
  </then>
</action>

The above checks the client window that the actions will run on to
verify that its title is "FooBar" and that it is maximized. If that
is true, it also checks that the currently focused client window is
on desktop 3. If that is true also, then it runs the NextDesktop
action.

The target="" option can be set to "default" which uses the client
window that the actions will run on, or it can be "focus" which uses
the client window that is currently focused.

The <query> tag is optional, and the conditions inside the query can
be placed directly inside the If <action> tag, as they were before
this change. In that case, a default <query> tag is assumed with
target="default" which matches the previous behaviour.

Multiple <query> tags can be present, and they must all be true in
order to run the actions in <then>. If any one is false, the actions
in <else> will be run instead.
2013-08-18 20:04:16 -04:00
Dana Jansens
98c5205b9e Update HACKING for brace rules
The rules in HACKING for braces are kind of unclear, so add some
more rules and provide examples too.
2013-08-18 20:04:16 -04:00
Dana Jansens
f4bad155be Add a note to add the version to the bug tracker for new releases.
Also important to update IRC and keep hydrated.
2013-08-18 20:04:16 -04:00
Dana Jansens
1a9f697fe9 Update po files for 3.5.2 2013-08-11 21:30:20 -04:00
Dana Jansens
1d34e17102 Add CHANGELOG for 3.5.2 2013-08-11 21:28:22 -04:00
Dana Jansens
1f614a70a5 Update version in configure.ac to 3.5.2
No library interfaces were changed since 3.5.1.
2013-08-11 21:26:08 -04:00
Dana Jansens
db212a4f01 Maximized undecored windows have incorrect top border. (Bug 5996)
If the window has no border since the theme has bwidth=0, or because the
window is truly undecorated via MWM hints, then we should not allocate space
for the frame of the window which will just be empty pixels.
2013-08-11 16:38:20 -04:00
Dana Jansens
aa1fe695a5 window.inactive.label.text.color should default to white.
Currently it defaults to itself, which is NULL, and causes a crash.

The spec http://openbox.org/wiki/Help:Themes#window.inactive.label.text.color
claims that the default is white.

In 98b02c6b60 we had this property being read
twice, once with the NULL backup and once with white. It seems that we kept
the wrong one, so just switching this to white now.
2013-08-11 16:15:12 -04:00
Dana Jansens
f3873cac4a Fix a write out of bounds in splitvertical gradients (Bug 3612)
If the gradient has height 1, then y1sz is 0. We don't want to use the
first color and move the data pointer, since this will move it past the
end of the array.
2013-08-11 16:15:12 -04:00
Dana Jansens
cddd736de5 We use congfigure.ac not configure.am 2013-08-11 14:43:48 -04:00
Dana Jansens
bcfe59fce2 Fix some compiler warnings
Void function should actually be declared void. Not-reached switch
condition should still return something.
2013-08-11 14:43:23 -04:00
Dana Jansens
b4b780bae6 Update line numbers in po files 2013-08-11 13:48:37 -04:00
Mikael Magnusson
7c4fae0312 Change "plain" to "exact" for If's <title> 2013-08-11 13:44:48 -04:00
Mikael Magnusson
eae7a57088 Update CHANGELOG 2013-08-11 13:44:13 -04:00
Mikael Magnusson
bced74beaa Add matching which monitor the client is on in the If action (Bug 5426) 2013-08-11 13:41:38 -04:00
Mikael Magnusson
f8aa8cf5bb Use enum value for monitor in MoveToCenter 2013-08-11 13:39:27 -04:00
Mikael Magnusson
db1c0809ef Let the If action match window titles with GRegex 2013-08-11 13:38:16 -04:00
Mikael Magnusson
5a1da743ca Use a helper function to make if.c a bit shorter 2013-08-11 13:34:01 -04:00
Mikael Magnusson
9614dd8da2 Add activedesktop to If 2013-08-11 13:27:26 -04:00
Lefteris Chatzimparmpas
2b1a53cd73 Dock used showDelay for both hiding and showing (Bug 5811) 2013-08-11 13:13:41 -04:00
Mikael Magnusson
b2b5df767c Allow specifying only one of width and height in per-app settings size
Fixes bug 5819.
2013-08-11 13:07:49 -04:00
Mikael Magnusson
937ba3c7e7 Fix use after free in error message 2013-08-11 12:04:13 +02:00
Mikael Magnusson
f55caaf6a0 Add some comments in MoveResizeTo code 2013-08-11 12:04:11 +02:00
Dana Jansens
16c0fb84bc Remove fuzzy and outdated translations, add plural expressions.
Clean up the .po files for this release. Plural expressions are needed in
all files that have plurals. And replace fuzzy (incorrect) translations
with empty ones instead.
2013-08-11 00:46:48 -04:00
Dana Jansens
677fb42644 Make nplurals=2 in Turkish translation since there are plurals translations
The plural should be a c expression that says if n is plural or not.
2013-08-11 00:21:10 -04:00
Dana Jansens
23c6a8c90c Remove po_PL from LINGUAS as that doesn't exist, should have be pl.po 2013-08-11 00:18:10 -04:00
Dana Jansens
ea7a5e0169 Fix format specifications in Interlingua translation 2013-08-11 00:17:40 -04:00
Dana Jansens
2ea60e77c0 3.5.1 changelog 2013-08-11 00:16:05 -04:00
Dana Jansens
644dedd0ce New Polish translation was an update to existing one.
Move the po_PL.po file to pl.po as it should have been named.
2013-08-11 00:15:28 -04:00
Dana Jansens
69d03c6154 Remove Imlib2 mention from po files 2013-08-11 00:08:58 -04:00
Dana Jansens
d52a6dd36d Remove deprecated and unneeded g_type_init call. 2013-08-10 23:46:17 -04:00
Dana Jansens
c5c924f7f7 Remove unneeded obrender/button.h 2013-08-10 23:45:42 -04:00
Dana Jansens
83e5323425 Update version to 3.5.1.
obrender broke backward compatibility by changing the layout of the
theme structure.

obt broke backward compatibility by changing the method signature of
some keyboard methods.

Both libraries added some new methods as well.
2013-08-10 23:42:20 -04:00
Dana Jansens
0621f19a0b Move shortcuts to latin characters in Greek translation
The _ keyboard shortcut in menus only works on latin characters.
2013-08-10 23:35:04 -04:00
Dana Jansens
9edb4e3971 Move shortcuts to latin characters in Hebrew translation
The _ keyboard shortcut in menus only works on latin characters.
2013-08-10 23:34:59 -04:00
Davide Truffa
6c87b1dd70 Updated Italian translation 2013-08-10 23:23:10 -04:00
Jay A. Fleming
6fec406017 Updated Serbian translation 2013-08-10 23:21:35 -04:00
Gerardo Seguin
c1d21a1a6d Updated Spanish translation 2013-08-10 23:18:17 -04:00
David Kolibáč
403483db92 Updated Czech translation 2013-08-10 23:12:09 -04:00
Laszlo Dvornik
97c43e988d Update Hungarian translation 2013-08-10 23:10:32 -04:00
Nicolaas van der Merwe
8ea945b23a Add Afrikaans translation 2013-08-10 23:08:29 -04:00
remotedot@gmail.com
1e43632a3b Add Romanian translation 2013-08-10 23:06:45 -04:00
Muhammet Kara
32cbf0fb25 Updated Turkish translation 2013-08-10 22:59:42 -04:00
Volker Ribbert
b888197d80 Updated German translation 2013-08-10 22:56:54 -04:00
Karim Oulad Chalha
241445d89a Updated Arabic translation 2013-08-10 22:54:53 -04:00
Mikalai Udodau
f9357e5ca4 Add Belarusian translation 2013-08-10 22:51:00 -04:00
Nik Kalach
5f25e69d19 Add Interlingua translation 2013-08-10 22:47:07 -04:00
khazarian@fastmail.in
df1ecaadac Add Hebrew translation 2013-08-10 22:44:12 -04:00
Pjotr
6143c6ece9 Updated Dutch translation 2013-08-10 22:39:15 -04:00
Piotr Strebski
43eb7db10e Add Polish translation 2013-08-10 22:35:49 -04:00