Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/x11-wm
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25870/10.3/unstable/main/finkinfo/x11-wm
Added Files:
blackbox-rootless.info blackbox-rootless.patch
Removed Files:
blackbox-rootless-0.65.0-1.info
blackbox-rootless-0.65.0-1.patch
Log Message:
Rename %f->%n
--- NEW FILE: blackbox-rootless.patch ---
diff -u -Naur blackbox-0.65.0/README.Fink blackbox-0.65.0.fink/README.Fink
--- blackbox-0.65.0/README.Fink Wed Dec 31 19:00:00 1969
+++ blackbox-0.65.0.fink/README.Fink Tue Nov 19 18:15:19 2002
@@ -0,0 +1,26 @@
+This revision of Blackbox has been specially patched to be more usable
+within a rootless X environment. All of the Blackbox menus may now be
+accessed by clicks to the toolbar. Specifically:
+
+ o The Root Menu: Click on the clock at the left end of the toolbar
+ for the `root' launcher window which contains a
+ list of apps. To customize this, examine the file
+ @PREFIX@/share/Blackbox/menu.
+
+ o Workspace Menu: Click on the workspace name at the right of the
+ toolbar. This menu allows you to switch between
+ workspaces (a.k.a. Virtual Desktops), or create
+ new ones.
+
+ o Icons Menu: Click the central window-name region of the
+ toolbar. This menu contains a list of any currently
+ iconified/minimized windows (via the [_] button on
+ window title-bars).
+
+ o Toolbar Options Menu: Still reached by right-clicking anywhere on
+ the toolbar.
+
+Additionally, the title-bar widgets have been rearranged to be
+slightly less pathological (i.e., no longer placing the close button
+two pixels away from the resize button). Customizable button
+arrangements will come in the next revision.
diff -u -Naur blackbox-0.65.0/data/menu.in blackbox-0.65.0.fink/data/menu.in
--- blackbox-0.65.0/data/menu.in Fri Jan 25 05:33:09 2002
+++ blackbox-0.65.0.fink/data/menu.in Tue Nov 19 18:16:25 2002
@@ -53,28 +53,19 @@
#
# example:
-[begin] (Blackbox)
+[begin] (Blackbox 0.65.0)
[exec] (xterm) {xterm -ls}
[exec] (rxvt) {rxvt}
- [exec] (StarOffice) {soffice}
[exec] (XEmacs) {xemacs}
- [exec] (Acroread) {acroread}
+ [exec] (Emacs) {emacs}
+ [exec] (Console-Emacs) {xterm -e emacs -nw}
[submenu] (Graphics)
[exec] (The GIMP) {gimp}
[exec] (Image Magick) {display}
[end]
- [submenu] (Mozilla)
- [exec] (Mozilla Navigator) {mozilla}
- [submenu] (More...)
- [exec] (Mozilla Mail) {mozilla -mail}
- [exec] (Mozilla News) {mozilla -news}
- [exec] (Mozilla Composer) {mozilla -edit}
- [end]
- [end]
-
[submenu] (X Utilities)
[exec] (Xfontsel) {xfontsel}
[exec] (Xman) {xman}
@@ -95,6 +86,8 @@
[restart] (Start FVWM) {fvwm}
[restart] (Start WindowMaker) {wmaker}
[restart] (Start Afterstep) {afterstep}
+ [restart] (Start Oroborus) {oroborus}
+ [restart] (Start IceWM} {icewm}
[restart] (Start Enlightenment) {enlightenment}
[restart] (Start TWM) {twm}
[restart] (Start KWM) {kwm}
diff -u -Naur blackbox-0.65.0/data/nu.pcf.gz.uu
blackbox-0.65.0.fink/data/nu.pcf.gz.uu
--- blackbox-0.65.0/data/nu.pcf.gz.uu Wed Dec 31 19:00:00 1969
+++ blackbox-0.65.0.fink/data/nu.pcf.gz.uu Tue Nov 19 18:15:19 2002
@@ -0,0 +1,70 @@
+begin 644 nu.pcf.gz
+M'XL("[EMAIL PROTECTED]<9Q[]O?]"?M*4PG-!!+>APX.P]?=N^
+M%73=*([EMAIL PROTECTED]&3C<XQZ<I]?_3E15`W09VC:B=34:I#F7,*<XOP
+M!P;^(&Z),UL,R68D&3%+P&0&DOD][WD./;W<MJC)-&9O\KGGGG.>\ST_[G.?
+M<[EMAIL PROTECTED]<N_J#84`(B2'G"89N==TDQY6YND\TR.YP&M,"Z6^\S)@(!^HEOP)UIV=
+M!C1+/H_V1ZH`7_*OLN'1F:9#JS\PQ]P7P_PB9;Q<J>]T+TK?+"77V)MEVJ:#
[EMAIL PROTECTED]>[0-_>1-2*!!_6E@/1JXWBV+$6Z.F^XKF7QHI:NUN6+5V!1]]J>>[JK
+M'UG;LZ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L)DFRG>PDN\D>LH\<(`?)87*,O$)>)V^2M\D9<H[D<O,N(9/)=#*+S"5U
+M9#Y92):2=K*2K";KR$:RF23)=K*3["[EMAIL PROTECTED]/4F21J
+MDOH1=8TFB9FD*9M$:T<DQC)J5*)&)[EMAIL PROTECTED],C$K4J-2;YO6>28Q)O5&I
+M-RKU1J7>J-2;L=0;E7JCTF!4&[EMAIL PROTECTED],"H-1J7)M&LR[9I,.Z^V5E)/4B5I
+MG:112>LE;9"T4=*8I*+GB9XG>I[H>:+GB9XG>I[H>:+GB9XG>[EMAIL PROTECTED]
+MN2MJ<S)1(]W4\/\W;4^)GHH&\J(G?N")(WCB"[EMAIL PROTECTED]>^X#7(.!IL.QE'@XRC
+M0<;1*'J-HM<H>HVBURAZC:+7*'J-HM<H>HVB%Q.]F.C%1"\F>C'1BXE>3/1B
+MHA<3O9CH-8F>>(`G#N$UB9ZXA"<^X8E3>.(5GKB%)WZAQ"^4^(42OU#B%TK\
+M0HE?*/$+)7ZAQ"^4^(42OU#B%TK\0HE?*/$+)7ZAQ"^4^(42OU#B%TK\0HE?
+M*/$+)[EMAIL PROTECTED]"^4$CWQ"Z5$3XF>$KTZT:L3/8EW2H*ADFBH)!RJ.M&[EMAIL
PROTECTED]@D(BH)
+MB4J"H8J*GD1%)6%125Q4$AB51$85%3V)C4J"HY+HJ"0\*HF/[EMAIL PROTECTED]@BI&"*S
+39QK[-X-+^7]R_P00M?M4S"@``$85
+`
+end
diff -u -Naur blackbox-0.65.0/data/styles/Cyclism
blackbox-0.65.0.fink/data/styles/Cyclism
--- blackbox-0.65.0/data/styles/Cyclism Wed Dec 31 19:00:00 1969
+++ blackbox-0.65.0.fink/data/styles/Cyclism Tue Nov 19 18:15:19 2002
@@ -0,0 +1,137 @@
+! title: cyclism
+! author: safari_al
+! email: [EMAIL PROTECTED]
+!
+! comment: "So Jim dug along with the rest. The earth was rich and warm,
+! it smelled of all that was good, and his back did not ache as
+! he had expected. Nor did his knees... It might be, Jim thought,
+! what hands were intednded for, this steady digging into the earth,
+! as wings were meant for flying over the curve of the planet to
+! another season. He knelt and dug."
+!
+! - David Malouf, _Fly Away Peter_
+!
+! info: root image courtesy of david coulson <[EMAIL PROTECTED]>
+! <http://davidcoulson.net>
+! font by artwiz <[EMAIL PROTECTED]>
+
+
+
+toolbar: raised gradient diagonal
+ toolbar.color: #343718
+ toolbar.colorTo: #000000
+
+toolbar.clock: parentrelative
+ toolbar.clock.textColor: #fff5f3
+
+toolbar.label: parentrelative
+ toolbar.label.textColor: #fff5f3
+
+toolbar.windowLabel: parentrelative
+ toolbar.windowLabel.textColor: #fff5f3
+
+toolbar.button: parentrelative
+ toolbar.button.picColor: #fee9e4
+
+toolbar.button.pressed: sunken gradient diagonal
+ toolbar.button.pressed.color: #000000
+ toolbar.button.pressed.colorTo: #7f7f8b
+
+
+
+menu.title: raised gradient diagonal
+ menu.title.color: #7f7f8b
+ menu.title.colorTo: #000000
+ menu.title.textColor: #acaebb
+
+menu.frame: raised gradient diagonal
+ menu.frame.color: #343718
+ menu.frame.colorTo: #000000
+ menu.frame.textColor: #5f6053
+
+menu.hilite: parentrelative
+ menu.hilite.textColor: #fee9e4
+
+menu.bullet: triangle
+ menu.bullet.position: right
+
+
+
+window.title.focus: raised gradient diagonal
+ window.title.focus.color: #7f7f8b
+ window.title.focus.colorTo: #000000
+window.title.unfocus: raised gradient diagonal
+ window.title.unfocus.color: #7f7f8b
+ window.title.unfocus.colorTo: #000000
+
+window.label.focus: parentrelative
+ window.label.focus.textColor: #fee9e4
+window.label.unfocus: parentrelative
+ window.label.unfocus.textColor: #acaebb
+
+window.button.focus: parentrelative
+ window.button.focus.picColor: #acaebb
+window.button.unfocus: parentrelative
+ window.button.unfocus.picColor: #acaebb
+window.button.pressed: sunken gradient diagonal
+ window.button.pressed.color: #000000
+ window.button.pressed.colorTo: #7f7f8b
+
+window.frame.focus: flat solid
+ window.frame.focus.color: #7f7f8b
+ window.frame.focusColor: #7f7f8b
+window.frame.unfocus: flat solid
+ window.frame.unfocus.color: #000000
+ window.frame.unfocusColor: #000000
+
+window.handle.focus: raised gradient diagonal
+ window.handle.focus.color: #343718
+ window.handle.focus.colorTo: #000000
+window.handle.unfocus: raised gradient diagonal
+ window.handle.unfocus.color: #343718
+ window.handle.unfocus.colorTo: #000000
+
+window.grip.focus: raised gradient diagonal
+ window.grip.focus.color: #7f7f8b
+ window.grip.focus.colorTo: #000000
+window.grip.unfocus: raised gradient diagonal
+ window.grip.unfocus.color: #7f7f8b
+ window.grip.unfocus.colorTo: #000000
+
+
+
+borderColor: #000000
+*font: nu
+*justify: left
+
+borderWidth: 1
+bevelWidth: 2
+frameWidth: 1
+handleWidth: 2
+
+rootCommand: bsetbg -f ~/.blackbox/backgrounds/cyclism.jpg
+
+
+
+bbpager.frame: raised gradient diagonal
+ bbpager.frame.color: #343718
+ bbpager.frame.colorTo: #000000
+
+bbpager.desktop: parentrelative
+bbpager.desktop.focus: parentrelative
+
+bbpager.window: raised gradient diagonal
+ bbpager.window.color: #7f7f8b
+ bbpager.window.colorTo: #000000
+bbpager.window.focus: raised gradient diagonal
+ bbpager.window.focus.color: #fee9e4
+ bbpager.window.focus.colorTo: #000000
+
+bbpager.desktop.focusStyle: border
+bbpager.window.focusStyle: texture
+
+bbpager.active.desktop.borderColor: #fee9e4
+bbpager.active.window.borderColor: #000000
+bbpager.inactive.window.borderColor: #000000
+
+! have a nice day
diff -u -Naur blackbox-0.65.0/data/styles/Makefile.am
blackbox-0.65.0.fink/data/styles/Makefile.am
--- blackbox-0.65.0/data/styles/Makefile.am Tue Jul 23 14:39:58 2002
+++ blackbox-0.65.0.fink/data/styles/Makefile.am Tue Nov 19 18:15:19 2002
@@ -2,7 +2,7 @@
styledir = $(pkgdatadir)/styles
MAINTAINERCLEANFILES = Makefile.in
-style_DATA = Artwiz Cthulhain Flux Minimal Nyz Operation Outcomes Rampage
Rancor Results Shade Spiff TDF Twice
+style_DATA = Artwiz Cyclism Cthulhain Flux Minimal Nyz Operation Outcomes
Rampage Rancor Results Shade Spiff TDF Twice
distclean-local:
rm -f *\~ .\#*
diff -u -Naur blackbox-0.65.0/data/styles/Makefile.in
blackbox-0.65.0.fink/data/styles/Makefile.in
--- blackbox-0.65.0/data/styles/Makefile.in Wed Sep 18 13:34:45 2002
+++ blackbox-0.65.0.fink/data/styles/Makefile.in Tue Nov 19 18:15:19 2002
@@ -75,7 +75,7 @@
styledir = $(pkgdatadir)/styles
MAINTAINERCLEANFILES = Makefile.in
-style_DATA = Artwiz Cthulhain Flux Minimal Nyz Operation Outcomes Rampage
Rancor Results Shade Spiff TDF Twice
+style_DATA = Artwiz Cthulhain Cyclism Flux Minimal Nyz Operation Outcomes
Rampage Rancor Results Shade Spiff TDF Twice
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
CONFIG_CLEAN_FILES =
diff -u -Naur blackbox-0.65.0/src/Screen.hh blackbox-0.65.0.fink/src/Screen.hh
--- blackbox-0.65.0/src/Screen.hh Wed Sep 4 13:15:26 2002
+++ blackbox-0.65.0.fink/src/Screen.hh Tue Nov 19 18:15:19 2002
@@ -252,6 +252,7 @@
inline Workspace *getCurrentWorkspace(void) { return current_workspace; }
inline Workspacemenu *getWorkspacemenu(void) { return workspacemenu; }
+ inline Iconmenu *getIconmenu(void) { return iconmenu; }
inline unsigned int getHandleWidth(void) const
{ return resource.handle_width; }
diff -u -Naur blackbox-0.65.0/src/Toolbar.cc blackbox-0.65.0.fink/src/Toolbar.cc
--- blackbox-0.65.0/src/Toolbar.cc Sat Aug 10 02:29:41 2002
+++ blackbox-0.65.0.fink/src/Toolbar.cc Tue Nov 19 18:15:19 2002
@@ -331,31 +331,35 @@
frame.rect.width(), frame.rect.height());
}
- XMoveResizeWindow(display, frame.workspace_label, frame.bevel_w,
- frame.bevel_w, frame.workspace_label_w,
- frame.label_h);
- XMoveResizeWindow(display, frame.psbutton,
- ((frame.bevel_w * 2) + frame.workspace_label_w + 1),
+ // Set up widgets, from left to right:
+ XMoveResizeWindow(display, frame.clock, frame.bevel_w,
+ frame.bevel_w, frame.clock_w,
+ frame.label_h);
+
+ XMoveResizeWindow(display, frame.pwbutton, (frame.bevel_w * 2) +
+ frame.clock_w + 1, frame.bevel_w + 1,
+ frame.button_w, frame.button_w);
+ XMoveResizeWindow(display, frame.nwbutton, (frame.bevel_w * 3) +
+ frame.clock_w + frame.button_w + 2,
frame.bevel_w + 1, frame.button_w, frame.button_w);
- XMoveResizeWindow(display, frame.nsbutton,
- ((frame.bevel_w * 3) + frame.workspace_label_w +
- frame.button_w + 2), frame.bevel_w + 1, frame.button_w,
- frame.button_w);
- XMoveResizeWindow(display, frame.window_label,
- ((frame.bevel_w * 4) + (frame.button_w * 2) +
- frame.workspace_label_w + 3), frame.bevel_w,
- frame.window_label_w, frame.label_h);
- XMoveResizeWindow(display, frame.pwbutton,
- ((frame.bevel_w * 5) + (frame.button_w * 2) +
- frame.workspace_label_w + frame.window_label_w + 4),
+
+ XMoveResizeWindow(display, frame.window_label,
+ (frame.bevel_w * 4) + (frame.button_w * 2) + frame.clock_w
+ 3,
+ frame.bevel_w,
+ frame.window_label_w,
+ frame.label_h);
+
+ XMoveResizeWindow(display, frame.psbutton, (frame.bevel_w * 5) +
+ (frame.button_w * 2) + frame.clock_w +
+ frame.workspace_label_w + frame.window_label_w + 4,
frame.bevel_w + 1, frame.button_w, frame.button_w);
- XMoveResizeWindow(display, frame.nwbutton,
- ((frame.bevel_w * 6) + (frame.button_w * 3) +
- frame.workspace_label_w + frame.window_label_w + 5),
+ XMoveResizeWindow(display, frame.nsbutton, (frame.bevel_w * 6) +
+ (frame.button_w * 3) + frame.clock_w +
+ frame.workspace_label_w + frame.window_label_w + 5,
frame.bevel_w + 1, frame.button_w, frame.button_w);
- XMoveResizeWindow(display, frame.clock,
- frame.rect.width() - frame.clock_w - (frame.bevel_w * 2),
- frame.bevel_w, frame.clock_w, frame.label_h);
+ XMoveResizeWindow(display, frame.workspace_label, frame.rect.width() -
frame.workspace_label_w -
+ frame.bevel_w, frame.bevel_w, frame.workspace_label_w,
+ frame.label_h);
ToolbarStyle *style = screen->getToolbarStyle();
frame.base = style->toolbar.render(frame.rect.width(), frame.rect.height(),
@@ -747,35 +751,59 @@
XClearWindow(display, frame.clock);
checkClock(True, True);
}
+ #else
+ else if (be->window == frame.clock) {
+ // Show the root menu
+ popMenu(screen->getRootmenu(), be->x_root, be->y_root);
+ }
#endif // HAVE_STRFTIME
- else if (! on_top) {
+ // else if (! on_top) {
+ // Window w[1] = { frame.window };
+ // screen->raiseWindows(w, 1);
+ // }
+ else if (be->window==frame.workspace_label) {
+ // Clicks on workspace portion of taskbar bring up Workspaces menu
+ popMenu(screen->getWorkspacemenu(), be->x_root, be->y_root);
+
+ } else if (be->window==frame.window_label) {
+ // Clicks on label portion of toolbar bring up Icons menu
+ popMenu(screen->getIconmenu(), be->x_root, be->y_root);
+
+ }else if(be->window==frame.window){
+ // fprintf(stderr,"Toolbar click at %i,%i\n",be->x,be->y);
+
+ {
+ int ck_l, ck_r, wn_l, wn_r, ws_l, ws_r;
+ ck_l = frame.bevel_w; ck_r = ck_l + frame.clock_w;
+ // fprintf(stderr,"Clock region: %i-%i\n",ck_l,ck_r);
+
+ wn_l = (frame.bevel_w * 4) + (frame.button_w * 2) + frame.clock_w + 3;
+ wn_r = wn_l + frame.window_label_w;
+ // fprintf(stderr,"Wind. region: %i-%i\n",wn_l,wn_r);
+
+ ws_l = frame.rect.width() - frame.workspace_label_w - frame.bevel_w;
+ ws_r = ws_l + frame.workspace_label_w;
+ // fprintf(stderr,"Wksp. region: %i-%i\n",ws_l,ws_r);
+
+ if (be->x <= ck_r && be->x >= ck_l)
+ popMenu(screen->getRootmenu(), be->x_root, be->y_root);
+ else if (be->x <= wn_r && be->x >= wn_l)
+ popMenu(screen->getIconmenu(), be->x_root, be->y_root);
+ else if (be->x <= ws_r && be->x >= ws_l)
+ popMenu(screen->getWorkspacemenu(), be->x_root, be->y_root);
+
+ }
+ }
+
+ // Keep toolbar-raising behavior on left-click
+ if (! on_top) {
Window w[1] = { frame.window };
screen->raiseWindows(w, 1);
}
} else if (be->button == 2 && (! on_top)) {
XLowerWindow(display, frame.window);
} else if (be->button == 3) {
- if (toolbarmenu->isVisible()) {
- toolbarmenu->hide();
- } else {
- int x, y;
-
- x = be->x_root - (toolbarmenu->getWidth() / 2);
- y = be->y_root - (toolbarmenu->getHeight() / 2);
-
- if (x < 0)
- x = 0;
- else if (x + toolbarmenu->getWidth() > screen->getWidth())
- x = screen->getWidth() - toolbarmenu->getWidth();
-
- if (y < 0)
- y = 0;
- else if (y + toolbarmenu->getHeight() > screen->getHeight())
- y = screen->getHeight() - toolbarmenu->getHeight();
-
- toolbarmenu->move(x, y);
- toolbarmenu->show();
- }
+ popMenu(toolbarmenu,be->x_root,be->y_root);
}
}
@@ -816,8 +844,10 @@
if (re->x >= 0 && re->x < static_cast<signed>(frame.button_w) &&
re->y >= 0 && re->y < static_cast<signed>(frame.button_w))
screen->nextFocus();
- } else if (re->window == frame.window_label)
- screen->raiseFocus();
+ } else if (re->window == frame.window_label){
+ // If uncommented, will drop the toolbar's focus back below any
occluding windows
+ //screen->raiseFocus();
+ }
#ifndef HAVE_STRFTIME
else if (re->window == frame.clock) {
XClearWindow(display, frame.clock);
@@ -965,6 +995,42 @@
clock_timer->setTimeout(aMinuteFromNow());
}
+// For display of menus based on toolbar clicks
+void Toolbar::popMenu(Basemenu *theMenu, int x_root, int y_root){
+ int thePosition;
+ Bool isTop;
+ thePosition = screen->getToolbarPlacement();
+
+ if (thePosition==TopLeft || thePosition==TopCenter || thePosition==TopRight){
+ isTop=True;
+ }else if(thePosition==BottomLeft || thePosition==BottomCenter ||
thePosition==BottomRight){
+ isTop=False;
+ }
+
+ if (! theMenu->isVisible()) {
+ int x, y;
+
+ x = x_root - (theMenu->getWidth() / 2);
+ y = y_root - (theMenu->getHeight() / 2);
+
+ if (x < 0)
+ x = 0;
+ else if (x + theMenu->getWidth() > screen->getWidth())
+ x = screen->getWidth() - theMenu->getWidth();
+
+ if (isTop){
+ y = frame.rect.height();
+ }else if (!isTop){
+ y = screen->getHeight() - theMenu->getHeight() -
+ frame.rect.height() - (2 * screen->getBorderWidth()) - 1;
+ }
+
+ theMenu->move(x, y);
+ theMenu->show();
+ } else {
+ theMenu->hide();
+ }
+}
void Toolbar::HideHandler::timeout(void) {
toolbar->hidden = ! toolbar->hidden;
diff -u -Naur blackbox-0.65.0/src/Toolbar.hh blackbox-0.65.0.fink/src/Toolbar.hh
--- blackbox-0.65.0/src/Toolbar.hh Tue Jul 9 16:32:12 2002
+++ blackbox-0.65.0.fink/src/Toolbar.hh Tue Nov 19 18:15:19 2002
@@ -155,6 +155,7 @@
void leaveNotifyEvent(const XCrossingEvent * /*unused*/);
void exposeEvent(const XExposeEvent *ee);
void keyPressEvent(const XKeyEvent *ke);
+ void popMenu(Basemenu *theMenu, int x, int y);
void edit(void);
void reconfigure(void);
diff -u -Naur blackbox-0.65.0/src/Window.cc blackbox-0.65.0.fink/src/Window.cc
--- blackbox-0.65.0/src/Window.cc Tue Sep 17 11:23:35 2002
+++ blackbox-0.65.0.fink/src/Window.cc Tue Nov 19 18:15:19 2002
@@ -699,34 +699,26 @@
unsigned int bw = frame.button_w + frame.bevel_w + 1,
by = frame.bevel_w + 1, lx = by, lw = frame.inside_w - by;
- if (decorations & Decor_Iconify) {
- if (frame.iconify_button == None) createIconifyButton();
-
- XMoveResizeWindow(blackbox->getXDisplay(), frame.iconify_button, by, by,
- frame.button_w, frame.button_w);
- XMapWindow(blackbox->getXDisplay(), frame.iconify_button);
- XClearWindow(blackbox->getXDisplay(), frame.iconify_button);
-
- lx += bw;
- lw -= bw;
- } else if (frame.iconify_button) {
- destroyIconifyButton();
- }
- int bx = frame.inside_w - bw;
-
- if (decorations & Decor_Close) {
+ // Position Close Button
+ //
+ if (decorations & Decor_Close) {
if (frame.close_button == None) createCloseButton();
- XMoveResizeWindow(blackbox->getXDisplay(), frame.close_button, bx, by,
+ XMoveResizeWindow(blackbox->getXDisplay(), frame.close_button, by, by,
frame.button_w, frame.button_w);
XMapWindow(blackbox->getXDisplay(), frame.close_button);
XClearWindow(blackbox->getXDisplay(), frame.close_button);
- bx -= bw;
+ lx += bw;
lw -= bw;
} else if (frame.close_button) {
destroyCloseButton();
}
+
+ int bx = frame.rect.width() - bw;
+
+ // Position Maximize Button
+ //
if (decorations & Decor_Maximize) {
if (frame.maximize_button == None) createMaximizeButton();
@@ -735,10 +727,25 @@
XMapWindow(blackbox->getXDisplay(), frame.maximize_button);
XClearWindow(blackbox->getXDisplay(), frame.maximize_button);
+ bx -= bw;
lw -= bw;
} else if (frame.maximize_button) {
destroyMaximizeButton();
}
+
+ // Position Iconify Button
+ //
+ if (decorations & Decor_Iconify) {
+ XMoveResizeWindow(blackbox->getXDisplay(), frame.iconify_button, bx, by,
+ frame.button_w, frame.button_w);
+ XMapWindow(blackbox->getXDisplay(), frame.iconify_button);
+ XClearWindow(blackbox->getXDisplay(), frame.iconify_button);
+
+ lw -= bw;
+ } else if (frame.iconify_button){
+ destroyIconifyButton();
+ }
+
frame.label_w = lw - by;
XMoveResizeWindow(blackbox->getXDisplay(), frame.label, lx, frame.bevel_w,
frame.label_w, frame.label_h);
diff -u -Naur blackbox-0.65.0/src/i18n.hh blackbox-0.65.0.fink/src/i18n.hh
--- blackbox-0.65.0/src/i18n.hh Sun Mar 31 17:53:07 2002
+++ blackbox-0.65.0.fink/src/i18n.hh Tue Nov 19 18:15:19 2002
@@ -39,6 +39,7 @@
#endif // HAVE_NL_TYPES_H
}
+typedef void *nl_catd;
class I18n {
private:
--- blackbox-rootless-0.65.0-1.patch DELETED ---
--- NEW FILE: blackbox-rootless.info ---
Package: blackbox-rootless
Version: 0.65.0
Revision: 1
Description: Alternate Window Manager, works in XDarwin's rootless env
License: BSD
Maintainer: Christian Swinehart <[EMAIL PROTECTED]>
Conflicts: blackbox, blackbox-taskbar
Replaces: blackbox, blackbox-taskbar
Provides: blackbox
BuildDepends: x11-dev, gcc3.1
Depends: x11
Source: mirror:sourceforge:blackboxwm/blackbox-%v.tar.gz
Source-MD5: 08560fa287c68d65fbe894696d04deaf
ConfigureParams: --disable-nls
Patch: %n
SetCC: gcc3
SetCXX: g++3
NoSetCXXFLAGS: true
CompileScript: <<
./configure %c
make
<<
InstallScript: <<
make install prefix=%i
mv %i/man %i/share/
mkdir -p %i/share/blackbox/fonts
uudecode data/nu.pcf.gz.uu
install -m 644 nu.pcf.gz %i/share/blackbox/fonts/
<<
DocFiles: README* LICENSE data/README.* ChangeLog
DescDetail: <<
Blackbox is yet another addition to the list of window
managers for the Open Group's X Window System, Version 11 Release 6
and above. Blackbox is built with C++, sharing no common code with
any other window manager (even though the graphics implementation
is similar to that of Window Maker).
This version of blackbox has been patched to be more usable under
rootless X. The menus, which were previously only accessible via
clicking on the root window, may now be opened from the (otherwise
fairly useless) toolbar at the bottom of the screen.
<<
Homepage: http://bbtools.thelinuxcommunity.org/
--- blackbox-rootless-0.65.0-1.info DELETED ---
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits