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]