summaryrefslogtreecommitdiff
path: root/src/frame.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-03 06:55:04 +0000
committerDana Jansens <danakj@orodu.net>2003-01-03 06:55:04 +0000
commit7db3ffecc980821ada3e805e2471716896e2410a (patch)
treef34e6b615325ac998351ffc574dde9dc3f4c92bf /src/frame.cc
parent165601550c205d6159a41146c38c5a30884f75e7 (diff)
you can bind buttons already about, and itll replace them
Diffstat (limited to 'src/frame.cc')
-rw-r--r--src/frame.cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/frame.cc b/src/frame.cc
index e7f310a0..6f4bba00 100644
--- a/src/frame.cc
+++ b/src/frame.cc
@@ -58,44 +58,15 @@ OBFrame::OBFrame(OBClient *client, otk::Style *style)
_plate.show(); // the other stuff is shown based on decor settings
grabClient();
-
- grabButtons(true);
}
OBFrame::~OBFrame()
{
- grabButtons(false);
releaseClient(false);
}
-void OBFrame::grabButtons(bool grab)
-{
-/* _plate.grabButtons(grab);
-
- // grab any requested buttons on the entire frame
- std::vector<std::string> grabs;
- if (python_get_stringlist("client_buttons", &grabs)) {
- std::vector<std::string>::iterator grab_it, grab_end = grabs.end();
- for (grab_it = grabs.begin(); grab_it != grab_end; ++grab_it) {
- Binding b;
- if (!Openbox::instance->bindings()->translate(*grab_it, b, false))
- continue;
- printf("grabbing %d %d\n", b.key, b.modifiers);
- if (grab) {
- otk::OBDisplay::grabButton(b.key, b.modifiers, _window, true,
- ButtonPressMask | ButtonMotionMask |
- ButtonReleaseMask, GrabModeAsync,
- GrabModeAsync, _window, None, false);
- } else {
- otk::OBDisplay::ungrabButton(b.key, b.modifiers, _window);
- }
- }
- }*/
-}
-
-
void OBFrame::setTitle(const std::string &text)
{
_label.setText(text);