From 7990e6fc46c4a73139cb59e2d17df37ff1fe4e0a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 7 Jan 2003 06:50:21 +0000 Subject: add a PlaceWindow event hook type --- src/screen.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/screen.cc') diff --git a/src/screen.cc b/src/screen.cc index a403fa13..f7587abc 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -493,7 +493,11 @@ void OBScreen::manageWindow(Window window) XChangeSaveSet(otk::OBDisplay::display, window, SetModeInsert); if (!client->positionRequested()) { - // XXX: position the window intelligenty + // position the window intelligenty .. hopefully :) + // call the python PLACEWINDOW binding + EventData *data = new_event_data(_number, window, EventPlaceWindow, 0); + Openbox::instance->bindings()->fireEvent(data); + Py_DECREF((PyObject*)data); } // create the decoration frame for the client window -- cgit v1.2.3