summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2008-11-15 22:53:02 +0100
committerMikael Magnusson <mikachu@gmail.com>2008-11-15 22:53:02 +0100
commita1746ab2158da2324aefb7ce81e7b5edc9c41e79 (patch)
treed74e132e17c57ea12b7c0731c17c624775d3a938 /openbox
parentc230443c6596039f426542f5a286120891a745c5 (diff)
parente59d06c7f3ede4911c8ab08c101f6b0322a0ea58 (diff)
Merge branch 'backport' into work
Conflicts: openbox/event.c
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c11
-rw-r--r--openbox/event.c2
-rw-r--r--openbox/screen.c2
3 files changed, 9 insertions, 6 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 5686a939..a8a15673 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -202,7 +202,7 @@ void client_manage(Window window, ObPrompt *prompt)
gboolean transient = FALSE;
Rect place, *monitor;
Time launch_time, map_time;
- gint user_time;
+ guint32 user_time;
ob_debug("Managing window: 0x%lx", window);
@@ -3816,12 +3816,15 @@ static void client_present(ObClient *self, gboolean here, gboolean raise,
client_focus(self);
}
-/* this function exists to map to the client_activate message in the ewmh,
- the user arg is unused because nobody uses it correctly anyway. */
+/* this function exists to map to the net_active_window message in the ewmh */
void client_activate(ObClient *self, gboolean here, gboolean raise,
gboolean unshade, gboolean user)
{
- client_present(self, here, raise, unshade);
+ if (user || (self->desktop == DESKTOP_ALL ||
+ self->desktop == screen_desktop))
+ client_present(self, here, raise, unshade);
+ else
+ client_hilite(self, TRUE);
}
static void client_bring_windows_recursive(ObClient *self,
diff --git a/openbox/event.c b/openbox/event.c
index 44b6eb70..30bc656f 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -1344,7 +1344,7 @@ static void event_handle_client(ObClient *client, XEvent *e)
} else
ob_debug_type(OB_DEBUG_APP_BUGS,
"_NET_ACTIVE_WINDOW message for window %s is "
- "missing source indication");
+ "missing source indication", client->title);
client_activate(client, TRUE, TRUE, TRUE,
(e->xclient.data.l[0] == 0 ||
e->xclient.data.l[0] == 2));
diff --git a/openbox/screen.c b/openbox/screen.c
index 3b9f66ff..74d073c4 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -399,7 +399,7 @@ void screen_startup(gboolean reconfig)
arguments, you can use %1$d for the first one and %2$d for the
second one. For example,
"The current session has %2$d desktops, but Openbox is configured for %1$d ..." */
- g_warning(_("Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration."),
+ g_warning(ngettext("Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.", "Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.", config_desktops_num),
config_desktops_num, d);
}
screen_set_num_desktops(d);