Skip to content

Commit

Permalink
xyzzy.src : support getting filer's window handle
Browse files Browse the repository at this point in the history
  • Loading branch information
southly committed May 2, 2012
1 parent ce42694 commit 7914e11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "conf.h"
#include "ipc.h"
#include "wheel.h"
#include "filer.h"

#define RULER_HEIGHT 13
#define FRAME_WIDTH 2
Expand Down Expand Up @@ -1925,6 +1926,8 @@ Fget_window_handle (lisp window)
{
if (!window || window == Qnil)
return make_fixnum (long (app.toplev));
if (window == Kfiler)
return make_fixnum (long (Filer::current_filer ()->id_hwnd));
return make_fixnum (long (Window::coerce_to_window (window)->w_hwnd));
}

Expand Down
1 change: 1 addition & 0 deletions src/gen-syms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,7 @@ static symbols kwd[] =
DEFKWD2 (osfjvc),
DEFKWD2 (vender),
DEFKWD2 (invalidate),
DEFKWD2 (filer),
};

static symbols unint[] =
Expand Down

0 comments on commit 7914e11

Please sign in to comment.