summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2007-10-22 16:56:11 +0000
committerSven Wegener <swegener@gentoo.org>2007-10-22 16:56:11 +0000
commit5a59e74db8376461eab1f9a095d1c658c525af17 (patch)
treea8f85e7b4fe50ea25ad633c79484f41f59b18d2d /x11-misc/superswitcher/files
parentppc stable, bug #196480 (diff)
downloadgentoo-2-5a59e74db8376461eab1f9a095d1c658c525af17.tar.gz
gentoo-2-5a59e74db8376461eab1f9a095d1c658c525af17.tar.bz2
gentoo-2-5a59e74db8376461eab1f9a095d1c658c525af17.zip
Add a patch to fix a segmentation fault.
(Portage version: 2.1.3.15)
Diffstat (limited to 'x11-misc/superswitcher/files')
-rw-r--r--x11-misc/superswitcher/files/superswitcher-0.6-wnck-workspace.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-misc/superswitcher/files/superswitcher-0.6-wnck-workspace.patch b/x11-misc/superswitcher/files/superswitcher-0.6-wnck-workspace.patch
new file mode 100644
index 000000000000..94ac8c20991c
--- /dev/null
+++ b/x11-misc/superswitcher/files/superswitcher-0.6-wnck-workspace.patch
@@ -0,0 +1,27 @@
+It seems like wnck_window_is_skip_pager isn't all we need to check.
+
+--- superswitcher/src/screen.c
++++ superswitcher/src/screen.c
+@@ -505,6 +505,7 @@
+ static SSWindow *
+ add_window_to_screen (SSScreen *screen, WnckWindow *wnck_window)
+ {
++ WnckWorkspace *wnck_workspace;
+ SSWindow *window;
+ SSWorkspace *workspace;
+ int n;
+@@ -513,7 +514,13 @@
+ return NULL;
+ }
+
+- n = wnck_workspace_get_number (wnck_window_get_workspace (wnck_window));
++ wnck_workspace = wnck_window_get_workspace (wnck_window);
++
++ if (wnck_workspace == NULL) {
++ return NULL;
++ }
++
++ n = wnck_workspace_get_number (wnck_workspace);
+ workspace = ss_screen_get_nth_workspace (screen, n);
+
+ window = ss_window_new (workspace, wnck_window);