openbox->registerHandler(_info->rootWindow(), this);
// call the python Startup callbacks
openbox->registerHandler(_info->rootWindow(), this);
// call the python Startup callbacks
- EventData data(_number, 0, EventAction::Shutdown, 0);
+ EventData data(_number, 0, EventAction::Startup, 0);
_strut.left = _strut.right = _strut.top = _strut.bottom = 0;
Client::List::iterator it, end = clients.end();
_strut.left = _strut.right = _strut.top = _strut.bottom = 0;
Client::List::iterator it, end = clients.end();
// position the window intelligenty .. hopefully :)
// call the python PLACEWINDOW binding
EventData data(_number, client, EventAction::PlaceWindow, 0);
openbox->bindings()->fireEvent(&data);
}
// position the window intelligenty .. hopefully :)
// call the python PLACEWINDOW binding
EventData data(_number, client, EventAction::PlaceWindow, 0);
openbox->bindings()->fireEvent(&data);
}
// if on the current desktop.. (or all desktops)
if (client->desktop() == _desktop ||
client->desktop() == (signed)0xffffffff) {
// if on the current desktop.. (or all desktops)
if (client->desktop() == _desktop ||
client->desktop() == (signed)0xffffffff) {
// this puts into the stacking order, then raises it
_stacking.push_back(client);
raiseWindow(client);
// this puts into the stacking order, then raises it
_stacking.push_back(client);
raiseWindow(client);
- // call the python NEWWINDOW binding
- EventData data(_number, client, EventAction::NewWindow, 0);
- openbox->bindings()->fireEvent(&data);
+ EventData ndata(_number, client, EventAction::NewWindow, 0);
+ openbox->bindings()->fireEvent(&ndata);