1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Update to 0.3

PR:		96829
Submitted by:	Peter Thoenen <peter.thoenen___yahoo.com>
Approved by:	maintainer timeout (15 days)
This commit is contained in:
Marcus Alves Grando 2006-05-20 21:43:26 +00:00
parent 0652fe8939
commit f88770bb93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162907
3 changed files with 51 additions and 4 deletions

View File

@ -5,10 +5,11 @@
# $FreeBSD$
PORTNAME= superswitcher
PORTVERSION= 0.1
PORTVERSION= 0.3
CATEGORIES= deskutils gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= browserbookapp
EXTRACT_SUFX= .tgz
MAINTAINER= MrL0Lz@gmail.com
COMMENT= Alt-Tab replacement

View File

@ -1,3 +1,3 @@
MD5 (superswitcher-0.1.tar.gz) = 75bbaaddbca5928c801a70c436fe9691
SHA256 (superswitcher-0.1.tar.gz) = af2e1df434d976373c9c924b5ec2f4cd0809befea80f64e7f61c68af3824b685
SIZE (superswitcher-0.1.tar.gz) = 218807
MD5 (superswitcher-0.3.tgz) = 8b301d2e240f7aad6281a2db53aeaf38
SHA256 (superswitcher-0.3.tgz) = 00ba1446551be7bf9f232a2690d045ca0f801a65d613d306488214959d67e45d
SIZE (superswitcher-0.3.tgz) = 197624

View File

@ -0,0 +1,46 @@
#
# Fix build on 4.x
#
--- ./src/xinerama.c.orig Sat May 20 18:36:30 2006
+++ ./src/xinerama.c Sat May 20 18:38:45 2006
@@ -22,24 +22,26 @@
int minimum_width;
SSXineramaScreen *screens;
SSXinerama *xinerama;
-
- minimum_width = 0;
+ int x_screen;
#ifdef HAVE_XINERAMA
gboolean xinerama_is_active = XineramaIsActive (x_display);
+ XineramaScreenInfo *xsi_array;
+ XineramaScreenInfo *xsi;
#else
gboolean xinerama_is_active = FALSE;
#endif
+ minimum_width = 0;
+
if (xinerama_is_active) {
#ifdef HAVE_XINERAMA
- XineramaScreenInfo *xsi_array =
- XineramaQueryScreens(x_display, &num_screens);
+ xsi_array = XineramaQueryScreens(x_display, &num_screens);
screens = g_new (SSXineramaScreen, num_screens);
int i;
for (i = 0; i < num_screens; i++) {
- XineramaScreenInfo *xsi = &xsi_array[i];
+ xsi = &xsi_array[i];
screens[i].x = xsi->x_org;
screens[i].y = xsi->y_org;
screens[i].width = xsi->width;
@@ -54,7 +56,7 @@
#endif
} else {
num_screens = 1;
- int x_screen = DefaultScreen (x_display);
+ x_screen = DefaultScreen (x_display);
screens = g_new (SSXineramaScreen, num_screens);
screens[0].x = 0;
screens[0].y = 0;