[epiphany] Force an update on WNCK's knowledge of windows and workspaces
- From: Gustavo Noronha Silva <gns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Force an update on WNCK's knowledge of windows and workspaces
- Date: Wed, 14 Aug 2013 11:33:05 +0000 (UTC)
commit 3db87856199943b40dd756b381d56b35bd506686
Author: Gustavo Noronha Silva <gns gnome org>
Date: Sun Aug 11 22:55:26 2013 -0300
Force an update on WNCK's knowledge of windows and workspaces
We need to poke WNCK, otherwise our first call to ephy_window_is_on_current_workspace
will be a false-positive.
https://bugzilla.gnome.org/show_bug.cgi?id=705811
src/ephy-shell.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index d824792..f514c63 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -47,6 +47,9 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+#define WNCK_I_KNOW_THIS_IS_UNSTABLE
+#include <libwnck/libwnck.h>
+
#define EPHY_SHELL_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_SHELL,
EphyShellPrivate))
struct _EphyShellPrivate {
@@ -129,6 +132,12 @@ ephy_shell_startup_continue (EphyShell *shell)
ephy_shell_open_uris (shell, (const char **)ctx->arguments,
ctx->startup_flags, ctx->user_time);
}
+
+ /* Get an initial update on our windows and their workspaces,
+ * otherwise our first call to ephy_window_is_on_current_workspace
+ * will be unreliable.
+ */
+ wnck_screen_force_update (wnck_screen_get_default ());
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]