openbsd-ports/x11/devilspie/patches/patch-src_actions_c
2006-09-22 00:43:03 +00:00

21 lines
835 B
Plaintext

$OpenBSD: patch-src_actions_c,v 1.1 2006/09/22 00:43:03 pvalchev Exp $
--- src/actions.c.orig Thu Sep 21 17:45:15 2006
+++ src/actions.c Thu Sep 21 17:45:42 2006
@@ -138,14 +138,14 @@ ESExpResult *func_center(ESExp *f, int a
gint xoffset, yoffset, window_width, window_height,
workspace_width, workspace_height;
int new_xoffset, new_yoffset;
+ WnckScreen *screen;
+ WnckWorkspace *workspace;
/* read in window geometry */
wnck_window_get_geometry (c->window,
&xoffset, &yoffset, &window_width, &window_height);
/* read in workspace geometry */
- WnckScreen *screen;
- WnckWorkspace *workspace;
screen = wnck_window_get_screen (c->window);
workspace = wnck_screen_get_active_workspace (screen);
workspace_width = wnck_workspace_get_width (workspace);