LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2017, 11:14 PM   #1
Roy_SRC
Member
 
Registered: Jul 2014
Posts: 81

Rep: Reputation: Disabled
Is it possible to write an entire window manager using GTK?


Hi,

I've been fiddling around with the TWM and the X Server xLib manuals for a few days now, and out of curiosity I was wondering if it might be possible to create an entire window manager or a desktop environment using only GTK.

Thanks!

P.S. just another question: is it possible for a desktop manager to exist without a window manager.

Last edited by Roy_SRC; 01-04-2017 at 11:28 PM.
 
Old 01-05-2017, 06:39 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Overlapping windows is a convenient way to organize tasks. One early system divided the screen into 4 fixed-sized tiles so it avoided the complexity of backing space and redrawing. It limited you to 4 tasks but a 6Mhz processor can't run many tasks anyway.

Desktops have to deal with more than just drawing so would likely want to use other libraries than just GTK but I don't see why you couldn't use it for all of the drawing.
 
Old 01-05-2017, 12:43 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by Roy_SRC View Post
Hi,

I've been fiddling around with the TWM and the X Server xLib manuals for a few days now, and out of curiosity I was wondering if it might be possible to create an entire window manager or a desktop environment using only GTK.

Thanks!

P.S. just another question: is it possible for a desktop manager to exist without a window manager.
Well... It can't easily be a "manager" without something to manage. A desktop is just a convention. Icons on a desktop are actually just tiny (and usually static) window. Placement of those windows (both icons and regular windows) is a function of a window manager... and a desktop manager.

Without the window management all your windows get opened in a default location (usually the top left corner (0,0) but it can be anywhere). You can't move them very well because that requires a window manager, OR each application has to have a "manager" built in to control its own windows.

If each application does it, then you get a rather LARGE amount of bloat, with all applications having to do the same work. This is the task that a window manager takes over.

Last edited by jpollard; 01-05-2017 at 12:45 PM.
 
  


Reply

Tags
gtk, gtk+, xlib, xserver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Entire system letters are in rectangular box ([] [] [] ),after installed gtk+3.12.0 ! mr.cracker Fedora 3 04-07-2014 10:42 PM
Creating a Fixed Window Size in a Window Manager (Odd Question) Stupac Programming 3 06-30-2011 04:04 AM
Awesome Window manager ~ resize window key bindings do not work. bubnoff Linux - Desktop 0 12-23-2010 01:08 PM
Does fwrite() write entire file on jffs2? bjj2282 Linux - Software 0 10-26-2007 10:03 AM
How to write window manager? woodywellhung Programming 3 06-07-2004 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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