summaryrefslogtreecommitdiff
path: root/src/screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-07 06:50:21 +0000
committerDana Jansens <danakj@orodu.net>2003-01-07 06:50:21 +0000
commit7990e6fc46c4a73139cb59e2d17df37ff1fe4e0a (patch)
tree752f0e6d860b8a3860f079f4f788da7dfe8cbf98 /src/screen.cc
parent7ca4d1cf8a1fd3b414219c77a57fff7d333f5e7f (diff)
add a PlaceWindow event hook type
Diffstat (limited to 'src/screen.cc')
-rw-r--r--src/screen.cc6
1 files changed, 5 insertions, 1 deletions
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