all repos — fluxbox @ 33d482aba5053964594fb3c5b6f6a1537ca10cbf

custom fork of the fluxbox windowmanager

minor fixes for preprocessors
fluxgen fluxgen
commit

33d482aba5053964594fb3c5b6f6a1537ca10cbf

parent

abf74ed036f9d3f6134d64cae4fb3b4ca3b8e12d

1 files changed, 24 insertions(+), 22 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.63 2002/08/02 13:00:23 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.64 2002/08/04 15:00:50 fluxgen Exp $ //Use GNU extensions #ifndef _GNU_SOURCE

@@ -534,17 +534,17 @@ case ConfigureRequest:

{ FluxboxWindow *win = (FluxboxWindow *) 0; - #ifdef SLIT +#ifdef SLIT Slit *slit = (Slit *) 0; - #endif // SLIT +#endif // SLIT if ((win = searchWindow(e->xconfigurerequest.window))) { win->configureRequestEvent(&e->xconfigurerequest); - #ifdef SLIT +#ifdef SLIT } else if ((slit = searchSlit(e->xconfigurerequest.window))) { slit->configureRequestEvent(&e->xconfigurerequest); - #endif // SLIT +#endif // SLIT } else { grab();

@@ -571,17 +571,17 @@ }

break; case MapRequest: { - #ifdef DEBUG +#ifdef DEBUG fprintf(stderr, I18n::instance()-> getMessage( FBNLS::blackboxSet, FBNLS::blackboxMapRequest, "Fluxbox::process_event(): MapRequest for 0x%lx\n"), e->xmaprequest.window); - #endif // DEBUG +#endif // DEBUG - #ifdef SLIT - #ifdef KDE +#ifdef SLIT +#ifdef KDE //Check and see if client is KDE dock applet. //If so add to Slit bool iskdedockapp = False;

@@ -620,8 +620,8 @@ (*it)->getSlit()->addClient(e->xmaprequest.window);

} return; } - #endif //KDE - #endif // SLIT +#endif //KDE +#endif // SLIT FluxboxWindow *win = searchWindow(e->xmaprequest.window);

@@ -1045,11 +1045,11 @@ //------------ handleClientMessage --------

// Handles XClientMessageEvent //----------------------------------------- void Fluxbox::handleClientMessage(XClientMessageEvent &ce) { - #ifdef DEBUG +#ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): ClientMessage. data.l[0]=0x"<<hex<<ce.data.l[0]<< - " type=0x"<<ce.message_type<<dec<<endl; + " message_type=0x"<<ce.message_type<<dec<<endl; - #endif +#endif // DEBUG if (ce.format != 32) return;

@@ -1501,10 +1501,11 @@ BScreen *screen = 0;

FluxboxWindow *win = 0; win = searchWindow(ce.window); screen = searchScreen(ce.window); + if (ce.message_type == getGnomeWorkspaceAtom()) { - #ifdef DEBUG +#ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): Got workspace atom="<<ce.data.l[0]<<endl; - #endif//!DEBUG +#endif//!DEBUG if ( win !=0 && // the message sent to client window? win->getScreen() && ce.data.l[0] >= 0 && ce.data.l[0] < (signed)win->getScreen()->getCount()) {

@@ -1517,15 +1518,15 @@ screen->changeWorkspaceID(ce.data.l[0]);

return true; } else if (win) { if (ce.message_type == getGnomeStateAtom()) { - #ifdef DEBUG +#ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): _WIN_STATE"<<endl; - #endif +#endif // DEBUG - #ifdef DEBUG +#ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): Mask of members to change:"<< hex<<ce.data.l[0]<<dec<<endl; // mask_of_members_to_change cerr<<"New members:"<<ce.data.l[1]<<endl; - #endif +#endif // DEBUG //get new states int flag = ce.data.l[0] & ce.data.l[1];

@@ -1533,9 +1534,10 @@ //set states

win->setGnomeState(flag); } else if (ce.message_type == getGnomeHintsAtom()) { - #ifdef DEBUG +#ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): _WIN_HINTS"<<endl; - #endif +#endif // DEBUG + } else return false; //the gnome atom wasn't found or not supported } else