LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2006, 06:13 AM   #1
santhosh.linux
Member
 
Registered: Nov 2005
Location: India
Posts: 42

Rep: Reputation: 15
Xterm disable destroy event


Hi friends,
How to disable destroy event for Xterm , means if user wants to close any xterm, then xterm wont allow close(alt+F4 or clicking on close mark)

how can we achieve it..

waiting for your inputs

santhosh
 
Old 06-22-2006, 11:37 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

What makes you think that disable the (Xlib-level) "DestroyEvent" is the solution to your problem?

There are at least three different players here:
1. Your Xterm application (that you don't want users to close)

2. Xlib (which the Xterm program uses - in conjunction with the "bash" shell and a /dev/pty port - to interact with the user)

3. The Window Manager (for example Gnome, KDE or Motif) that the Xlib program is running under.

It's the Window manager who displays the little "X" button; it's the Window manager who triggers the events that kill your program.

Here are a couple of links that might help (including a Windows).

'Hope that helps .. PSM

http://lists.trolltech.com/qt-intere...ad00213-0.html
http://support.microsoft.com/?kbid=300688
http://www.linuxquestions.org/questi...ghlight=sighup

Last edited by paulsm4; 06-22-2006 at 11:38 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 04:45 AM
destroy monitor? datbenik Linux - Hardware 1 12-07-2005 12:57 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
Will it destroy my Monitor? chinaundead Linux - Hardware 9 04-01-2004 08:56 PM
I will destroy QT and all who follow it!!!! ciphercam Linux - Software 4 07-17-2003 12:33 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration