summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gentoo.org>2004-06-20 20:55:52 +0000
committerTavis Ormandy <taviso@gentoo.org>2004-06-20 20:55:52 +0000
commit22c8a73e0d9b44bf54041fb27eded3e63b3e4306 (patch)
tree9cbb7d05e3803be3d6c0defdba753be02bd2a6bd /x11-wm/fvwm/files
parentMarking stable on x86, hppa. Some clean up. Closes #53169 also. (Manifest rec... (diff)
downloadgentoo-2-22c8a73e0d9b44bf54041fb27eded3e63b3e4306.tar.gz
gentoo-2-22c8a73e0d9b44bf54041fb27eded3e63b3e4306.tar.bz2
gentoo-2-22c8a73e0d9b44bf54041fb27eded3e63b3e4306.zip
new release of FvwmTabs, plus two patches from cvs
Diffstat (limited to 'x11-wm/fvwm/files')
-rw-r--r--x11-wm/fvwm/files/centerplacement-2.5.10.diff67
-rw-r--r--x11-wm/fvwm/files/digest-fvwm-2.5.10-r52
-rw-r--r--x11-wm/fvwm/files/iconfile-2.5.10.diff29
3 files changed, 98 insertions, 0 deletions
diff --git a/x11-wm/fvwm/files/centerplacement-2.5.10.diff b/x11-wm/fvwm/files/centerplacement-2.5.10.diff
new file mode 100644
index 000000000000..c24d6fbbd795
--- /dev/null
+++ b/x11-wm/fvwm/files/centerplacement-2.5.10.diff
@@ -0,0 +1,67 @@
+diff -ru fvwm-2.5.10/fvwm/fvwm.h fvwm-2.5.10.new/fvwm/fvwm.h
+--- fvwm-2.5.10/fvwm/fvwm.h 2004-02-16 13:45:59.000000000 +0000
++++ fvwm-2.5.10.new/fvwm/fvwm.h 2004-06-20 14:39:58.216434336 +0100
+@@ -467,8 +467,9 @@
+ #define PLACE_TILECASCADE 0x5
+ #define PLACE_CASCADE_B 0x6
+ #define PLACE_MINOVERLAP 0x7
+-#define PLACE_MASK 0x7
+- unsigned placement_mode : 3;
++#define PLACE_CENTER 0x8
++#define PLACE_MASK 0xF
++ unsigned placement_mode : 4;
+ unsigned ewmh_placement_mode : 2; /* see ewmh.h */
+ #define WS_CR_MOTION_METHOD_AUTO CR_MOTION_METHOD_AUTO
+ #define WS_CR_MOTION_METHOD_USE_GRAV CR_MOTION_METHOD_USE_GRAV
+diff -ru fvwm-2.5.10/fvwm/placement.c fvwm-2.5.10.new/fvwm/placement.c
+--- fvwm-2.5.10/fvwm/placement.c 2004-03-17 16:57:50.000000000 +0000
++++ fvwm-2.5.10.new/fvwm/placement.c 2004-06-20 14:50:54.759624600 +0100
+@@ -898,6 +898,20 @@
+ reason->pos.algo = placement_mode;
+ switch (placement_mode)
+ {
++ case PLACE_CENTER:
++ attr_g->x = (screen_g.width - fw->frame_g.width) / 2;
++ attr_g->y = ((screen_g.height - fw->frame_g.height) / 2) + fw->title_thickness;
++
++ /* Don't let the upper left corner be offscreen. */
++ if (attr_g->x < PageLeft)
++ {
++ attr_g->x = PageLeft;
++ }
++ if (attr_g->y < PageTop)
++ {
++ attr_g->y = PageTop;
++ }
++ break;
+ case PLACE_TILEMANUAL:
+ flags.is_smartly_placed = SmartPlacement(
+ fw, &screen_g, fw->frame_g.width, fw->frame_g.height,
+@@ -1785,6 +1799,9 @@
+
+ switch (reason->pos.algo)
+ {
++ case PLACE_CENTER:
++ a = "Center";
++ break;
+ case PLACE_TILEMANUAL:
+ a = "TileManual";
+ break;
+diff -ru fvwm-2.5.10/fvwm/style.c fvwm-2.5.10.new/fvwm/style.c
+--- fvwm-2.5.10/fvwm/style.c 2004-02-16 13:45:59.000000000 +0000
++++ fvwm-2.5.10.new/fvwm/style.c 2004-06-20 14:41:07.428912440 +0100
+@@ -2096,7 +2096,13 @@
+ break;
+
+ case 'c':
+- if (StrEquals(token, "CascadePlacement"))
++ if (StrEquals(token, "CenterPlacement"))
++ {
++ ps->flags.placement_mode = PLACE_CENTER;
++ ps->flag_mask.placement_mode = PLACE_MASK;
++ ps->change_mask.placement_mode = PLACE_MASK;
++ }
++ else if (StrEquals(token, "CascadePlacement"))
+ {
+ ps->flags.placement_mode = PLACE_CASCADE;
+ ps->flag_mask.placement_mode = PLACE_MASK;
diff --git a/x11-wm/fvwm/files/digest-fvwm-2.5.10-r5 b/x11-wm/fvwm/files/digest-fvwm-2.5.10-r5
new file mode 100644
index 000000000000..8badcdb941fd
--- /dev/null
+++ b/x11-wm/fvwm/files/digest-fvwm-2.5.10-r5
@@ -0,0 +1,2 @@
+MD5 b3c86e2af2a4eabe692c9c849ff4b243 fvwm-2.5.10.tar.bz2 1788873
+MD5 17313f940d0110e37f996aae3ead282e FvwmTabs-v3.1.tar.gz 28934
diff --git a/x11-wm/fvwm/files/iconfile-2.5.10.diff b/x11-wm/fvwm/files/iconfile-2.5.10.diff
new file mode 100644
index 000000000000..7861967f309d
--- /dev/null
+++ b/x11-wm/fvwm/files/iconfile-2.5.10.diff
@@ -0,0 +1,29 @@
+diff -ru fvwm-2.5.10.orig/fvwm/expand.c fvwm-2.5.10/fvwm/expand.c
+--- fvwm-2.5.10.orig/fvwm/expand.c 2004-02-16 10:50:06.000000000 +0000
++++ fvwm-2.5.10/fvwm/expand.c 2004-06-20 18:46:48.713094728 +0100
+@@ -376,15 +376,19 @@
+ }
+ break;
+ case VAR_W_ICONFILE:
+- if (fw && !IS_EWMH_DESKTOP(FW_W(fw)))
+- {
+- string = fw->icon_bitmap_file;
+- }
+- break;
+ case VAR_W_MINIICONFILE:
+ if (fw && !IS_EWMH_DESKTOP(FW_W(fw)))
+ {
+- string = fw->mini_pixmap_file;
++ char *t;
++
++ t = (i == VAR_W_ICONFILE) ?
++ fw->icon_bitmap_file : fw->mini_pixmap_file;
++ /* expand the path if possible */
++ string = PictureFindImageFile(t, NULL, R_OK);
++ if (!string)
++ {
++ string = t;
++ }
+ }
+ break;
+ case VAR_W_CLASS: