~ubuntu-branches/ubuntu/hardy/texmacs/hardy

« back to all changes in this revision

Viewing changes to src/Window/X/x_window.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michele Angrisano
  • Date: 2007-06-12 12:50:14 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070612125014-qifjye1qab4l42gx
Tags: 1:1.0.6.10-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/patches/11-desktop-file.dpatch
    Fix category in desktop file
  - Update maintainer in field debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
x_window_rep::get_position (SI& x, SI& y) {
218
218
#ifdef OS_WIN32
219
219
  XGetWindowPos (dpy, win, &win_x, &win_y);
220
 
#endif
221
220
  x=  win_x*PIXEL;
222
221
  y= -win_y*PIXEL;
 
222
#else
 
223
  int xx, yy;
 
224
  Window ww;
 
225
  bool b;
 
226
  b=  XTranslateCoordinates (dpy, win, dis->root, 0, 0, &xx, &yy, &ww);
 
227
  x=  xx*PIXEL;
 
228
  y= -yy*PIXEL;
 
229
#endif
223
230
}
224
231
 
225
232
void