8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I'm new to Linux, been at it a couple weeks. I have written a script that basically acts as a watchdog to ping a server on a set interval, make sure chromium-browser is running, and a couple other things (it displays data via web browser). I'd like to make it stop the script when I hit... (4 Replies)
Discussion started by: strategery
4 Replies
2. UNIX for Dummies Questions & Answers
Consider this code snippet below:-
char=`which afplay`
if
then
xterm -e 'while true; do clear; echo "Press Ctrl-C to Quit..."; afplay /tmp/pulse.wav; done' & > /dev/null 2>&1
fi
This launches a second terminal window that generates a specific waveform for the next calibration of... (4 Replies)
Discussion started by: wisecracker
4 Replies
3. What is on Your Mind?
In the fall I am taking courses in System Admin and Networking Admin, along with Cisco classes. Sometime next year I hope to get Red Hat and CCNA certifications, then try to get some experience and a job.
I am wondering what I can focus on in the meantime (and in my spare time) that will... (1 Reply)
Discussion started by: ScottLew
1 Replies
4. UNIX for Dummies Questions & Answers
Please Help a Newbie,
I'm using the display command to post a picture of several configurations for a machine operator to choose from. The Issue I have is when I display the image the displayed image steals focus from my bash window. The operator then has to re-select the window to answer the... (1 Reply)
Discussion started by: BitBoy
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all
I have a java program I'm starting in Mac os from the terminal using the command
java -Djava.library.path=/Users/me/Desktop/Cfiles/DynamicCTGLayout/build/Release -jar
However, when I do this, my current program I'm using becomes "deselected" and the java program's GUI becomes... (2 Replies)
Discussion started by: WhiteTiger
2 Replies
6. Programming
Is this possible to be done with C++ ?
I am working on Qt Creator by I didn't find any working setFocus function or something. Can you help me a bit?
Thank you.
The program actually checks if there is a process of this program already running and if there is it exits.
I want to make it focus on... (2 Replies)
Discussion started by: hakermania
2 Replies
7. Shell Programming and Scripting
Hi, i found xte and xdotool for sending some keys to windowed applications but they need to have the focus on it.
Can someone say me if i can do the same but wihtout focusing the window i want to type something ?
edit: xreplay (0 Replies)
Discussion started by: linked
0 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
Is there a way to make sawfish window manager focus on a gui when you click it but not make it raise to the top? I know that motif and CDE (soalris) allow you to focus with out raising the windows. THANKS (2 Replies)
Discussion started by: larry
2 Replies
XtCallAcceptFocus() XtCallAcceptFocus()
Name
XtCallAcceptFocus - offer the input focus to a child widget.
Synopsis
Boolean XtCallAcceptFocus(w, time)
Widget w;
Time *time;
Inputs
w Specifies the widget; must be of class Core or any subclass thereof.
time Specifies the X time of the event that is causing the accept focus.
Returns
True if w took the input focus; False if w did not take the input focus.
Description
XtCallAcceptFocus() calls the specified widget's Core class accept_focus() method, passing it the specified widget and time, and True if
the widget took the input focus, or False otherwise. If the accept_focus() method is NULL, XtCallAcceptFocus() returns False.
Usage
Generally, only widgets should call XtCallAcceptFocus(), and generally only on their descendants.
Note that calling a widget's accept_focus() method does not automatically assign the input focus, and does not mean that the widget will
necessarily take the input focus. The accept_focus() method must decide whether or not to take the focus and then take it with XSetInput-
Focus() or XtSetKeyboardFocus().
Background
Widgets that need the input focus can call XSetInputFocus() explicitly, pursuant to the restrictions of the Inter-Client Communications
Convention Manual. To allow outside agents, such as the parent, to cause a widget to take the input focus, every widget exports an
accept_focus() method. The widget returns a value indicating whether it actually took the focus or not, so that the parent can give the
focus to another widget. Widgets that need to know when they lose the input focus must use the Xlib focus notification mechanism explic-
itly (typically by specifying translations for FocusIn and FocusOut events). Widget classes that never want the input focus should set the
accept_focus() method to NULL.
See Also
XtSetKeyboardFocus(1),
accept_focus(4).
Xt - Keyboard Handling XtCallAcceptFocus()