patchGNU Octave - Patches: patch #8094, [octave forge] () X-input grab...


patch #8094: [octave forge] () X-input grab screen coordinates

Submitter:  Juan Pablo Carbajal <juanpi>
Submitted:  Tue 25 Jun 2013 04:18:57 PM UTC
Category:  Forge : new function Priority:  5 - Normal
Status:  Postponed Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Thu 07 Mar 2019 12:42:12 AM UTC, comment #5: 

Instead of invention a new function and sticking it in a package, it would be really great if we could incorporate this idea into the root property "PointerLocation". It currently returns [0, 0], but this would be the Matlab compatible way to get the current location of the mouse pointer.

Anyone want to help turning the attached into something that Octave can use for the PointerLocation property?

Mike Miller <mtmiller>
Group Member
Thu 27 Jun 2013 07:58:22 AM UTC, comment #4: 

Hello guys

I had a look at the in the windows package. It is supposed to
do the same thing as the old (same original author Andy
Adler), but only on Win* systems. The source code of in the
windows package is windows specific.
Thus at leas a name confict with the two files.

The "old" is XWindows specific and needs to be compilded with
the correct flags (see source code).
Proposition: rename the in the msicellanous package to and make the monor change in xinput.m

I hope this helps


Andreas Stahel <sha1>
Wed 26 Jun 2013 07:20:16 PM UTC, comment #3: 

Let's add Michael Goffioul (windows package maintainer) to the cc list.
I only noted that there's another; I wouldn't know what to do next.
Michael might have some useful suggestions.

FYI, I compared the two files and AFAICS they're mostly identical save for some lay-out and minor details.
So I'd say Andrea Stahel probably got it wrong - does live on in an octave-forge package.

Philip Nienhuis <philipnienhuis>
Group Member
Wed 26 Jun 2013 12:02:08 PM UTC, comment #2: 

Thanks for your input Philip,

Some questions:
1. The windows package is for windows while the grab function work on X11. When will there be clashes? Shall we change the name of this grab to xgrab?

2. This function (according to Andrea Stahel who provide it) was in Octave and was removed, but never put in a package. Was there a particular reason for that?

Juan Pablo Carbajal <juanpi>
Group Member
Tue 25 Jun 2013 09:08:45 PM UTC, comment #1: 

There's already a in the windows package which AFAICS does a similar thing.
So at least expect a name clash.

Note that Andy Adler (author of your is the original author of the windows package.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 25 Jun 2013 04:18:57 PM UTC, original submission:  

This functions would be a nice addition to a forge package, probably miscellaneous.

It was in Octave long ago but was removed due to ML incompatibility and system wm dependence.

juanpi will take care of it

Juan Pablo Carbajal <juanpi>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #28410: added by juanpi (5KiB - text/x-c++src)
file #28411:  xinput.m added by juanpi (2KiB - text/x-matlab)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by sha1 (Posted a comment)
  • -email is unavailable- added by juanpi (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-07 mtmiller CategoryNone Forge : new function
        StatusNone Postponed
        SummaryOctave-Forge: X-input grab screen coordinates [octave forge] () X-input grab screen coordinates
    2013-06-26 philipnienhuis Carbon-Copy- Added -email is unavailable-
    2013-06-25 juanpi Attached File- Added, #28410
        Attached File- Added xinput.m, #28411

    Back to the top

    Powered by Savane 3.13-0159.
    Corresponding source code