On Mon, Apr 11, 2005 at 09:03:36AM -0700, Marc Wilson wrote:
> On Mon, Apr 11, 2005 at 08:01:13AM +0200, Bradley T Hughes wrote:
> > Marc Wilson wrote:
> > >_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x825ca00, 0xbfffe9a8
> > >
> > >that blackbox is interpreting as instructions not to add the grips?
> > 
> > Yes, it is... the above is telling blackbox that the resize "function" 
> > is not available... and blackbox responds by disabling resizing.
> 
> Hm.  That's set on the main window.  Is there a good reference somewhere
> for Motif hints?  I'll have to try some other window managers... everything
> I've tried so far thinks it's resizeable.
> 
> Not that I use poedit... but now I'm curious.

Uh, doesn't blackbox have this backwards?

Here's an example use of it, from:
http://web.mit.edu/afs/sipb.mit.edu/project/scheme/src/scwm-0.7/scwm/decorations.c

extern Atom _XA_MwmAtom;

/* Motif  window hints */
typedef struct {
  CARD32 flags;
  CARD32 functions;
  CARD32 decorations;
  INT32 inputMode;
} PropMotifWmHints;

typedef PropMotifWmHints PropMwmHints;

/* Motif window hints */
#define MWM_HINTS_FUNCTIONS           (1L << 0)
#define MWM_HINTS_DECORATIONS         (1L << 1)

/* bit definitions for MwmHints.functions */
#define MWM_FUNC_ALL            (1L << 0)
#define MWM_FUNC_RESIZE         (1L << 1)
#define MWM_FUNC_MOVE           (1L << 2)
#define MWM_FUNC_MINIMIZE       (1L << 3)
#define MWM_FUNC_MAXIMIZE       (1L << 4)
#define MWM_FUNC_CLOSE          (1L << 5)

/* bit definitions for MwmHints.decorations */
#define MWM_DECOR_ALL                 (1L << 0)
#define MWM_DECOR_BORDER              (1L << 1)
#define MWM_DECOR_RESIZEH             (1L << 2)
#define MWM_DECOR_TITLE               (1L << 3)
#define MWM_DECOR_MENU                (1L << 4)
#define MWM_DECOR_MINIMIZE            (1L << 5)
#define MWM_DECOR_MAXIMIZE            (1L << 6)

So the _MOTIF_WM_HINTS atom we're looking at defines 0x3e for functions,
and 0x7e for decorations.

Doesn't that mean that everything is enabled?

Also, I tested 0.70beta2 and 0.70release... 0.70beta2 thinks the window is
resizeable, 0.70release thinks it's not.

-- 
 Marc Wilson |     Debian Hint #7: You can use the cron-apt package
 [EMAIL PROTECTED] |     to do automatic nightly downloads of updates for
             |     packages installed on your system.

-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html

Reply via email to