XtUngrabPointer() XtUngrabPointer()
Name
XtUngrabPointer - release an active pointer grab.
Synopsis
void XtUngrabPointer(widget, time)
Widget widget;
Time time;
Inputs
widget Specifies the widget which has the active pointer grab.
time Specifies the time at which the grab should end. CurrentTime is acceptable.
Availability
Release 4 and later.
Description
XtUngrabPointer() releases an active pointer grab by calling XUngrabPointer() with the display of w and time.
The time argument may be a timestamp or the constant CurrentTime. If this time is earlier than the last-keyboard-grab time or later than
the current server time the keyboard will not be ungrabbed.
See XtGrabPointer() for more information on active pointer grabs.
Usage
Most applications will never have to issue a pointer grab. Note that the pointer is automatically grabbed between every button down event
and the corresponding button up event; this covers the case for which pointer grabs are most commonly needed.
See AlsoXtGrabButton(1), XtGrabKey(1), XtGrabKeyboard(1), XtGrabPointer(1), XtSetKeyboardFocus(1), XtUngrabButton(1), XtUngrabKey(1), XtUngrabKey-
board(1).
Xt - Mouse Handling XtUngrabPointer()
Check Out this Related Man Page
XtUngrabButton() XtUngrabButton()
Name
XtUngrabButton - cancel a passive button grab.
Synopsis
void XtUngrabButton(widget, button, modifiers)
Widget widget;
unsigned int button;
Modifiers modifiers;
Inputs
widget Specifies the widget in whose window the button was grabbed.
button Specifies the mouse button to be ungrabbed.
modifiers Specifies the modifier keys to be ungrabbed.
Availability
Release 4 and later.
Description
XtUngrabButton() cancels a passive grab of the specified button/modifiers combination. If w is realized, XtUngrabButton() calls XUngrab-
Button() specifying the widget's window as the ungrab window, and passing the remaining arguments unmodified. If the widget is not real-
ized, XtUngrabButton() removes the deferred XtGrabButton() request, if any, for the specified widget, button, and modifiers.
The button argument is one of Button1, Button2, Button3, Button4, Button5, or the constant AnyButton, which is equivalent to issuing the
ungrab request for all possible buttons.
The modifiers argument is a bitwise OR of one or more of the following symbols: ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask,
Mod3Mask, Mod4Mask, Mod5Mask. The special value AnyModifier is also allowed; using it is equivalent to issuing the ungrab button request
for all possible modifier combinations (including no modifiers).
XtUngrabButton() has no effect on an active grab.
See XtGrabButton() for more information on passive button grabs.
Usage
You should rarely need to use passive button grabs. An automatic grab takes place between a ButtonPress event and the corresponding But-
tonRelease event, so an explicit grab is not necessary in some of the most common situations. It may be necessary for some styles of
menus, however.
Note that XtAddGrab() and spring-loaded popups can be used in place of passive grabs in many circumstances. These do not actually issue
any X server grabs.
Structures
The Modifiers type is defined as follows:
typedef unsigned int Modifiers;
See AlsoXtAddGrab(1), XtGrabButton(1), XtGrabKey(1), XtGrabKeyboard(1), XtGrabPointer(1), XtUngrabKey(1), XtUngrabKeyboard(1), XtUngrabPointer(1).
Xt - Mouse Handling XtUngrabButton()
I have been trying to use the find command to grab the latest file in a directory and move it to another area. I can't seem to get only that file, I end up getting everything for the day.
Any ideas?
Thank you (1 Reply)
Hi guys:
I need to grab a particular file(s) from a directory.
the file name is abc.xyz.2006020101200
I need to grab it based on the bold numbers. The bolded numbers are the date and such files are created everyday.
My initial script was to grab the listing of that directory and then cut... (1 Reply)
I have a script that grabs files from directory , zips and moves them somewhere else. It works fine except the case when files it grabs are already zipped. Then it trys to zip it again which does not make sence.
How can I check before zipping if file is already zipped?
thanks in advance (3 Replies)
Hi.
I have a qury whihc I hope someone could clarify.
I have a file:-
Num Measure
108 0.05
12 0.45
13 0.2
19 0.5
I wanted to grep the value of 19 from Column Num which will then take the minimum value of measure (not including 19's measure value).... (3 Replies)
Hello, I have a file path such as: /path/to/whatever/30 and I want to get the number off the end. My problem is that there might be other numbers in the path and the last number can be 1 or 2 digits. I tried something like: sed 's/.*\(\/\{1,2\}\).*/\1/' which seems to work fine for single digit... (7 Replies)
Hello Everyone,
I'm trying to write a python script that will go to the following website and grab all the data on the page. The page refreshes regularly and the number of flights is different.
Untitled Document
What I wanted to do was grab all the data (except for top three row containing... (5 Replies)
I don't know if I described this right, but I am new to scripting and this is giving me a little bit of trouble, but I will explain what I am trying to do.
Each time this is run, I want it to grab and save ls -l /home to data.txt.
ls -l /home > data.txt
Now the part I am getting confused... (4 Replies)
What is a regex for "the dalai lama, his holiness the"
that would just grab "the dalai lama"
and one that would just grab "his holiness the"? Both should exclude the comma..
I was trying '^.*' and many variants with no luck. (6 Replies)
I need to grab the last column of data from each line of output from
ps -ef | grep sshd
Example:
root 47645194 1703952 0 Oct 23 - 0:01 sshd: jcagle
rnewmon 48694012 27984606 0 08:36:02 - 0:00 sshd: rnewmon@pts/292
Because some of these process have been out... (6 Replies)
The purpose of the below is to grab the 9th field of the data in "$epochtimeframe". and then translate that data (which is an epoch time), into a human readable form.
echo $epochtimeframe | awk -F"--" '{print $9}' | awk -F"," '{print $2}' | perl -pe 's/(\d+)/localtime($1)/e'
i'm sure many... (10 Replies)
Hi,
i am trying to grab all the installed packages on linux machine,and only want to grab "Name" "Version" "Release" "Vendor" information
i am using below command to do so :
rpm -qa --info | grep -e 'Name' -e 'Version' -e 'Release' -e 'Vendor'
the output contains lot other info... (3 Replies)
Solved with iptables.
Many thanks...
Hello,
Objective:
What I would like to accomplish is :
- To read file1 line by line and search each word in file2.
- To grab corresponding ip addresses found in file2
- To send related ip addresses to fail2ban (not iptables)
By this way, when I... (5 Replies)
im using the following code to grab data, but after the data in the range im specifying has been grabbed, i want to count how many instances of a particular pattern is found?
awk 'BEGIN{count=0} /parmlib.*RSP/,/seqfiles.*SSD/ {print; count++ } /103 error in ata file/ END { print count }'... (3 Replies)
I am trying to work on a script to grab the UTC time from a website
So far I was able to cobble this together.
curl -s --head web-url | grep ^Date: | sed 's/Date: //g'
Which gives me the result I need.
Wed, 06 Dec 2017 21:43:50 GMT
What I need to is extract the 21:43:50 and convert... (4 Replies)
I was wondering if I could get some feedback on my script to grab time from our MDM... I blocked out all of the important stuff. I really appreciate any guidance, since I am long out of practice.
#!/bin/bash
serial=$1
# get last seen value of ipad
lastseen=$(curl -s -X "GET"... (11 Replies)