Re: bbrun 1.1 segfault

2001-10-23 Thread Bill Beal

Marc Wilson <[EMAIL PROTECTED]> wrote:
> On Tue, Oct 23, 2001 at 01:17:42AM -0400, Bill Beal wrote:
> > Can anyone help me figure out why bbrun (1.1) is
> > segfaulting on me?  I don't remember when it stopped
> > working, but I've tried recompiling it and it's still
> > broken.
> 
> It's been my experience that bbrun will segfault if the
> history file gets corrupted.  No idea WHAT corrupts it,
> but it seems to not have much checking on the appropriate
> contents of the file.

That was exactly it, thanks to Marc and Vincenzo for the advice.

-- 
  Bill Beal
  [EMAIL PROTECTED]
  http://www.bildo.net/



Xinerama complaints again? (was bbkeys and multi-head displays)

2001-10-23 Thread Jamin W. Collins

'Marc Wilson' wrote:

>No, I'm not running Xinerama.  I don't WANT to run Xinerama.  I HATE
>Xinerama.  I *want* the screens to be two separate logical entitites.
>
>Ahem.
>
>Doing that makes everything work, I admit, because then you have the X
>server treating everything that goes on as though it were taking place on a
>double-sized *:0.0 screen, instead of a *:0.0 screen and a *:0.1 screen.
>
>Besides, blackbox doesn't know what Xinerama is anyway.  I don't need it
>maximizing windows to cover BOTH monitors. ^_^
>
Are we really back to this again?  

Nothing in the spec for Xinerama states that windows shouldn't maximize 
across both screens.  Matter of fact, it does state just the opposite, 
that the two (or more) screens are treated as one entity.  Thus a 
maximization on Xinerama screen maximizes just like it does on a 
non-Xinerama screen.  Please check the specs before claiming that some 
product isn't aware of some option.  

Granted many people seem to think that maximization shouldn't cover all 
screens, and they are entitled to their opinion.

Jamin W. Collins



QT styles

2001-10-23 Thread tp40

This is not directly related to BB, but bbconf is a QT app so i guess it's
sort of appropriate:

Can anyone tell me how to add more QT styles? bbconf comes with styles
that I do not really like. I saw a QT style on the Qtella web site that I
really like, but I have no idea how and where to get it. Any help?


Timofei Piatenko
[EMAIL PROTECTED]




Re: Xinerama complaints again? (was bbkeys and multi-head displays)

2001-10-23 Thread Marc Wilson

On Tue, Oct 23, 2001 at 08:49:34AM -0500, Jamin W. Collins wrote:
> 'Marc Wilson' wrote:
> 
> >No, I'm not running Xinerama.  I don't WANT to run Xinerama.  I HATE
> >Xinerama.  I *want* the screens to be two separate logical entitites.
> >
> >Ahem.
> >
> >Doing that makes everything work, I admit, because then you have the X
> >server treating everything that goes on as though it were taking place on a
> >double-sized *:0.0 screen, instead of a *:0.0 screen and a *:0.1 screen.
> >
> >Besides, blackbox doesn't know what Xinerama is anyway.  I don't need it
> >maximizing windows to cover BOTH monitors. ^_^
> >
> Are we really back to this again?  

The point isn't about Xinerama in any case.  The only possible use I can
see for Xinerama that would make it useful over having two separate
entities for the screens would be the ability to move windows between them,
and frankly, I can't see that as terribly useful.

The discussion is instead about bbkeys and the fact that it apparently
can't deal with more than one screen being present without throwing a hissy
fit and sulking in a corner.

-- 
Marc Wilson
[EMAIL PROTECTED]
[EMAIL PROTECTED]



Re: Xinerama complaints again? (was bbkeys and multi-head displays)

2001-10-23 Thread Jason vanRijn Kasper

Umm.  That's nice.  hissy fit.  Hmm.  Is that a technical term?

Patches will be whole-heartedly accepted. Name-callers will be summarily
sent to the principal's office   =:)

Now then. I do have this on my list of TODO's, right after spending some
quality time with my family and inventing that new and improved mousetrap.
I believe that the problem is that bbkeys is only XGrabKey'ing against the
first screen that blackbox manages. I believe the solution may be as
follows

change:
XGrabKey(getXDisplay(), grabSet.KeyMap[i].keycode,
grabSet.KeyMap[i].modMask | LockMask,
getScreenInfo(0)->getRootWindow(), True,
GrabModeAsync, GrabModeAsync);
to:
XGrabKey(getXDisplay(), grabSet.KeyMap[i].keycode,
grabSet.KeyMap[i].modMask | LockMask,
getCurrentScreenInfo()->getRootWindow(), True,
GrabModeAsync, GrabModeAsync);

I have made these changes in the CVS version of bbkeys. Please pull down
this code and give it a whirl. If it doesn't work, then my next guess is
that I'll need to change bbkeys to XGrabKey against each screen that
blackbox is managing on the display.

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/bbkeys login 
(hit enter for the password)
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/bbkeys co
bbkeys

That will get you what you need

Please let me know. And seriously, if you know how it should be done
differently, by all means, send me a patch. I'm pretty much sitting out
here making semi-educated guesses

Thanks

vanRijn

On 2001.10.23 22:25 Marc Wilson wrote:
> On Tue, Oct 23, 2001 at 08:49:34AM -0500, Jamin W. Collins wrote:
> > 'Marc Wilson' wrote:
> > 
> > >No, I'm not running Xinerama.  I don't WANT to run Xinerama.  I HATE
> > >Xinerama.  I *want* the screens to be two separate logical entitites.
> > >
> > >Ahem.
> > >
> > >Doing that makes everything work, I admit, because then you have the X
> > >server treating everything that goes on as though it were taking place
> on a
> > >double-sized *:0.0 screen, instead of a *:0.0 screen and a *:0.1
> screen.
> > >
> > >Besides, blackbox doesn't know what Xinerama is anyway.  I don't need
> it
> > >maximizing windows to cover BOTH monitors. ^_^
> > >
> > Are we really back to this again?  
> 
> The point isn't about Xinerama in any case.  The only possible use I can
> see for Xinerama that would make it useful over having two separate
> entities for the screens would be the ability to move windows between
> them,
> and frankly, I can't see that as terribly useful.
> 
> The discussion is instead about bbkeys and the fact that it apparently
> can't deal with more than one screen being present without throwing a
> hissy
> fit and sulking in a corner.
> 
> -- 
> Marc Wilson
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> 



Re: QT styles

2001-10-23 Thread xOr

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 23 Oct 2001, tp40 wrote:

> This is not directly related to BB, but bbconf is a QT app so i guess it's
> sort of appropriate:
>
> Can anyone tell me how to add more QT styles? bbconf comes with styles
> that I do not really like. I saw a QT style on the Qtella web site that I
> really like, but I have no idea how and where to get it. Any help?
>
> 
> Timofei Piatenko
> [EMAIL PROTECTED]
> 

That would be a KDE Theme, not a QT style. bbconf is not a KDE app, and
therefore does not use KDE themes, 'fraid the options available to yuo are
only those which come in QT. But, you can use X resources to modify the
ap[pearance of QT apps. I'm not sure what all the options are, but if you
put somethin glike this in your .Xresources/.Xdefaults

*background: red

you should get red QT apps. As well as red everything else :\
maybe soneone else knows in more detail what X resources change QT's
display?

xOr
- -- 
I am damn unsatisfied to be killed in this way.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE71mFp8mPQRGtSu14RAnEoAKCc7uVplsbg/AvbvmOfrAij0aevBQCgmlm/
188UI1+1gBLpSuRkICVmUZU=
=xJqa
-END PGP SIGNATURE-



Re: bbappconf

2001-10-23 Thread xOr

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 21 Oct 2001, tp40 wrote:

> Hi all,
>
> I just got bbappconf up and running. I have a question:
>
> when I run it, it appears as an annoying rectangle at the top-left hand
> corner of my scree, kinda like bbpager, except it's just a plain little
> block. How can I get rid of it? There's no "-i" option for bbappconf it
> appears ...

I also had problems with the -i option. I patched it to get it working for
me, as well as addded some new options to the application for setting
windows' positions and sizes. See attached. :)

xOr
- -- 
I am damn unsatisfied to be killed in this way.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE71mIU8mPQRGtSu14RAvR6AKCCY6cMJ5glXcMIa421tTCiKRJ/hwCeKyaT
TDHOmYweC18w0Oz0zfi6blA=
=Ymd/
-END PGP SIGNATURE-


diff -u bbappconf-0.0.1-peak3/appconf.hh bbappconf-xor/appconf.hh
--- bbappconf-0.0.1-peak3/appconf.hhMon Feb 19 12:40:11 2001
+++ bbappconf-xor/appconf.hhTue Aug  7 02:23:52 2001
@@ -37,7 +37,11 @@
   unsigned int getStartOnDesktop(void) { return start_on_desktop;}
   bool getMaxHoriz(void) { return max_horiz;}
   bool getMaxVert(void) {return max_vert;}
-  
+   int getPositionX(void) {return position_x;}
+   int getPositionY(void) {return position_y;}
+   int getWidth(void) {return width;}
+   int getHeight(void) {return height;}
+ 
   char *getName(void) { return appname;}
   char *getClass(void) { return appclass;}
 
@@ -47,6 +51,10 @@
   void setMaxHoriz(bool _max_horiz) {max_horiz=_max_horiz;}
   void setStartOnDesktop(unsigned int _start_on_desktop) 
{start_on_desktop=_start_on_desktop;}
+   void setPositionX(int _position_x) {position_x=_position_x;}
+   void setPositionY(int _position_y) {position_y=_position_y;}
+   void setWidth(int _width) {width=_width;}
+   void setHeight(int _height) {height=_height;}
 private:
   
   bool sticky;
@@ -54,7 +62,9 @@
   bool max_horiz;
   bool max_vert;
   unsigned int start_on_desktop;
-   char *appname;
+   int position_x, position_y;
+   int width, height;
+   char *appname;
char *appclass;
 };
 
diff -u bbappconf-0.0.1-peak3/bbappconf.cc bbappconf-xor/bbappconf.cc
--- bbappconf-0.0.1-peak3/bbappconf.cc  Mon Feb 19 13:57:03 2001
+++ bbappconf-xor/bbappconf.cc  Tue Aug  7 02:47:38 2001
@@ -35,6 +35,7 @@
 
   config_db = XrmGetFileDatabase("config.bb");
 
+   iconic = options->iconic;
   desktop_nr=0;
   current_desktop_nr=-1;
   wm_init=False;
@@ -43,7 +44,7 @@
   pushed_app=0;
   MakeWindow(False);
   wminterface->moduleInit();
-  eventLoop();
+   eventLoop();
 }
 
 ToolWindow::~ToolWindow() {
@@ -92,9 +93,6 @@
 
 
   desktop_nr=0;
-//  LinkedListIterator win_it(appWindowList);
-//  for (; win_it.current(); win_it++)
-//addAppWindow(win_it.current(),True);
 
   XClearWindow(getXDisplay(), framewin);
 }
@@ -245,6 +168,16 @@
 getWMInterface()->sendWindowToDesktop(*win,
 resource->getAppConf(i)->getStartOnDesktop()-1);
   }
+  /* set window size */
+   if (resource->getAppConf(i)->getWidth()>=0 &&
+   resource->getAppConf(i)->getHeight()>=0) {
+   
+getWMInterface()->resizeWindow(*win,resource->getAppConf(i)->getWidth(),resource->getAppConf(i)->getHeight());
+
+   }
+   /* set window position */
+  if (resource->getAppConf(i)->getPositionX()!=- &&
+   resource->getAppConf(i)->getPositionY()!=-) {
+
+getWMInterface()->moveWindow(*win,resource->getAppConf(i)->getPositionX(),resource->getAppConf(i)->getPositionY());
+
+  }
   if (resource->getAppConf(i)->getMaxHoriz() ||
  resource->getAppConf(i)->getMaxVert()) {
 if (XGetWindowProperty(getXDisplay(), *win, 
@@ -413,12 +346,6 @@
 XSetWindowBackgroundPixmap(getXDisplay(), framewin, pixmap.frame);
   }
 
-  if (!withdrawn && resource->report.auto_raise) {
-XRaiseWindow(getXDisplay(),framewin);
-lower=False;
-  }
-  else lower=True;
-
if (!reconfigure) {
 
 // gcv.font = resource->menu.font->fid;
@@ -460,7 +387,7 @@
   XMapWindow(getXDisplay(), framewin);
   XMapSubwindows(getXDisplay(), framewin);
   if (iconic) {
-getWMInterface()->setIconicState(framewin,true);
+getWMInterface()->setIconicState(framewin, True);
   }
 
 }
diff -u bbappconf-0.0.1-peak3/bbappconf.hh bbappconf-xor/bbappconf.hh
--- bbappconf-0.0.1-peak3/bbappconf.hh  Tue Oct 10 14:34:27 2000
+++ bbappconf-xor/bbappconf.hh  Tue Aug  7 02:33:55 2001
@@ -97,11 +97,11 @@
   
 private:
 
-  bool lower;
   bool wm_init;
   int day,month,year;
   int number_of_icons;
 
+   bool iconic;
   int current_desktop_