LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-23-2004, 05:41 AM   #1
hansi umayangan
Member
 
Registered: Aug 2004
Distribution: AS3
Posts: 81

Rep: Reputation: 15
X window manager


What is X window manager
 
Old 11-23-2004, 05:43 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
There are many. It is the program that is drawing frames around windows (which are technically only drawable rectangular areas, from X point's of view). The windows manager also allows you to drag those frames around the screen, most of the time, as well as iconify, maximize...

Yves.
 
Old 11-23-2004, 05:55 AM   #3
hansi umayangan
Member
 
Registered: Aug 2004
Distribution: AS3
Posts: 81

Original Poster
Rep: Reputation: 15
what is difference between X window manager and X Desktop environment
 
Old 11-23-2004, 07:30 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
In very short:
- The window manager is responsible for windows themselves (move, iconify, resize...).
- The desktop environment is there for giving homogeneity. It defines a prefered toolkit, unifies the look and feel, defines standards, for example drag'n'drop, startup notification, accessing remote data... The DE also provides standard tools: file manager, calculator, logout window, configuration tool...

A desktop environment is nothing without a window manager. KDE uses KWM by default, which can be changed. Gnome uses Metacity by default, which can also be changed.

Many window managers provide a subset of what the desktop environment would normally provide, thus avoiding the need for the desktop environment. The most provided feature is a toolbar with a taskbar and a menu.

Note that an effort is made to unify many important protocols accross many window managers and desktop environments. Head to http://www.freedesktop.org if you're interested.

Yves.
 
Old 11-23-2004, 10:06 PM   #5
hansi umayangan
Member
 
Registered: Aug 2004
Distribution: AS3
Posts: 81

Original Poster
Rep: Reputation: 15
What is X client ?
 
Old 11-24-2004, 02:18 AM   #6
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
I know this is called linuxquestions but damn.
 
Old 11-24-2004, 05:03 AM   #7
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
XFree86 is a free implementation of the X11 protocol, Revision 6. (That's why current Xorg -a replacement for XFree86- is numbered Xorg-6.8.1).
The X11 protocol defines a server and a client.

The server is a program that (normally) runs on a display, and provides services (that's what servers do). This server's services are: draw a line, a rectangle, a circle, a character...

Talking to the server is done using the Xlib client library. When Xlib is used, it asks the server to perform a task on behalf of the Xlib user, such as drawing a rectangle for example. Because it is a client/server protocol, Xlib is given the address where the server can be found on the network. And because multiple servers can run on a single host, a number is appended (after ':') to say which X server is talked to. Example: "10.0.0.11:0.0".

A X client is a program that is based on the Xlib library.
That way, X clients don't have to care about if the display is VGA, or SVGA, or XVGA, or... Neither have they to care about wether it is black and white, or 16 colors, or TrueColor...
A X client ask for geometric shapes, or bitmaps, or text to be rendered, then the X server receives the requests, and do what it can with those. The X servers really tries its best, up to the point of changing things if needed: try and find the best match for a font that is not available, or use the closest matching color...
All X clients know the DISPLAY environment variable, which says what X server they should talk to.

Thus, (almost) all Linux GUI applications are X clients. And when you configure your monitor, resolution, bit-depth, graphics card chipset, it is the X server you configure.

Side-note: Xlib is very basic (rectangles, circles, colors...). That's why GUI toolkits were created: gtk, qt, motif... Each one tries to make the use of Xlib more easy by aggregating things in a logical and usefull way; example: ask to "display a button", instead of "draw a grey rectangle, then another slightly smaller white rectangle inside (you have to compute coordinates), and try and fit this <<text>> inside, and please do 'this' when the mouse is clicked inside the white rectangle". "display a button" is better, no?

To conclude, I'll add that GUI is possible without X. There's the framebuffer. And there's DOS-like text GUIs, like ncurses.

Yves.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best X-Window System window manager in your opinion? t3gah Linux - Software 9 12-16-2006 10:10 PM
Window Manager phsythax Linux - Newbie 14 11-04-2005 02:25 PM
window manager shakeeb Linux - General 1 10-24-2003 12:22 PM
What Window Manager You Using? hexx Linux - General 3 08-19-2003 04:17 PM
Window Manager Bigun Linux - General 7 06-14-2003 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:04 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