dennyhalim / wbar

Automatically exported from code.google.com/p/wbar
GNU General Public License v3.0
0 stars 0 forks source link

allow wbar to start in withdrawn mode #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run wbar using some window manager
2. wbar does not open inside a dock
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.3.0
Linux

Please provide any additional information below.

This is a request for enhancement.

The request is to allow for wbar to open in withdrawn mode as an option. This 
will make it possible for it to also be integrated with window managers such as 
openbox, pekwm, blackbox, etc and allow for more efficient operations. It will 
also allow for greater adoption of the software.

I believe that this is set by the XSetWMHints in the following way:

    XResourceKeeper<XWMHints> mWMHints;

    mWMHints.acquire(XAllocWMHints());

    if (mSizeHints() == NULL) {
        THROW_VERBOSE_EXCEPTION("Could not allocate XWMHints structure");
    }

    mWMHints->initial_state = WithdrawnState;
//~     mWMHints->initial_state = NormalState;
    mWMHints->input = False;
    mWMHints->icon_pixmap = mPixmap();
    mWMHints->flags = StateHint | InputHint | IconPixmapHint;

    XSetWMHints(mDisplay(), mWindow(), mWMHints());

Presumably before or around the place of the 

       XSetClassHint(display, window, &ch);

I haven't coded it in, because I wanted to see if the project would be willing 
to make this addition. Thanks very much!!

Original issue reported on code.google.com by itsme_...@yahoo.com on 15 Apr 2012 at 2:05

GoogleCodeExporter commented 9 years ago
OK, I believe I have been able to get this to work. Please let me know if you 
would like the added code, and in what form I may submit it. Thanks again!

Original comment by itsme_...@yahoo.com on 15 Apr 2012 at 3:29

GoogleCodeExporter commented 9 years ago
Please attach your changes here as a patch against the latest svn revision.

Original comment by ivan.fit...@eltrino.com on 16 Apr 2012 at 12:36

GoogleCodeExporter commented 9 years ago
I was wondering how to get Wbar (3.0) to be started in withdrawn mode? I 
understood how to code it using xlib, but don't quite know what to do in the 
case of using canvas. Many thanks!

Original comment by BigFlopp...@gmail.com on 2 Feb 2013 at 4:38