diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2013-08-12 09:55:26 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2013-08-14 19:29:57 +0800 |
commit | 3db87856199943b40dd756b381d56b35bd506686 (patch) | |
tree | 539172b51b1baf802effac4d8094d7ee425b98c1 | |
parent | efc506ba29d5dd1fd931e0447bc4f63875cb0bc3 (diff) | |
download | gsoc2013-epiphany-3db87856199943b40dd756b381d56b35bd506686.tar gsoc2013-epiphany-3db87856199943b40dd756b381d56b35bd506686.tar.gz gsoc2013-epiphany-3db87856199943b40dd756b381d56b35bd506686.tar.bz2 gsoc2013-epiphany-3db87856199943b40dd756b381d56b35bd506686.tar.lz gsoc2013-epiphany-3db87856199943b40dd756b381d56b35bd506686.tar.xz gsoc2013-epiphany-3db87856199943b40dd756b381d56b35bd506686.tar.zst gsoc2013-epiphany-3db87856199943b40dd756b381d56b35bd506686.zip |
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
-rw-r--r-- | 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 d82479229..f514c6398 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 |