You are not logged in.

#1 2009-04-15 08:02:04

l3thal
Member
From: Room 0
Registered: 2007-12-27
Posts: 88
Website

any tiling wm in C++ ?

hi all , i would like to know if there is any tiling wm written in C++ ( maybe you don't like that , " What about C ! " or " C++ is C " ) as i have ran into many people considering that C++ is crap and C is superior  , but i would like to use a C++ wm and try to help extending it or at least playing with it big_smile

hmm , dwm is nice and simple and iam using it atm

Offline

#2 2009-04-15 15:05:29

Wilco
Member
Registered: 2008-11-09
Posts: 440

Re: any tiling wm in C++ ?

IceWM is written in C++ and it has some tiling options I think.
I hacked a lot on IceWM and it's not too hard to understand the code. They do use a lot of old school C-stuff, like character arrays instead of strings and printf instead of cout. But as you know, those C functions are still a bit faster compared to their C++ counterparts.

Offline

#3 2009-04-15 17:58:21

l3thal
Member
From: Room 0
Registered: 2007-12-27
Posts: 88
Website

Re: any tiling wm in C++ ?

well i never really liked icewm , but i would go for a pure tiling wm like dwm wink

Offline

#4 2009-04-15 18:01:15

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: any tiling wm in C++ ?

Why not build it yourself from scratch?

If you are going to hack on it anyway, you can build one bottom up. You can even use the available C/or any other language WMs to see how things are done and then implement them in C++


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2009-04-15 18:14:02

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: any tiling wm in C++ ?

Not many C++ wm's (only one I know for sure of is Fluxbox), and AFAIK no tilers.
If you want to "mess" with a wm, do as Inxsible said and roll your own.

http://incise.org/tinywm.html  <<might be a good start (it's in C but easy to convert)
For something a wee more advanced take a look at Apophis (written by yours trully smile )
http://www.rohitab.com/discuss/index.ph … opic=33779
It's not the best but it does work. Still..done in C

Last edited by Wra!th (2009-04-15 18:18:15)


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#6 2009-04-15 18:41:53

l3thal
Member
From: Room 0
Registered: 2007-12-27
Posts: 88
Website

Re: any tiling wm in C++ ?

well , i don't want to make one from scratch , as i don't have the time for that , also i want something realible to use not just my own hacks or whatever , but thanks for the link

i can see its really a good start " It is only around 50 lines of C " wink

also a wm in C or C++ makes me happy and confident somhow ( thats why iam using dwm atm )

Offline

#7 2009-04-15 18:44:49

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: any tiling wm in C++ ?

l3thal wrote:

well , i don't want to make one from scratch , as i don't have the time for that , also i want something realible to use not just my own hacks or whatever , but thanks for the link

i can see its really a good start " It is only around 50 lines of C " wink

also a wm in C or C++ makes me happy and confident somhow ( thats why iam using dwm atm )

Most wm's are C/C++...
Why do you want to hack the wm itself anyway? sense of power? I don't get it.
If you want to dev for WM's just start writing patches for an existing WM...it doesn't have to be C++, pretty sure a C++ coder could handle C without major changes in logic.
OR write stuff to aid WM's like useful applications etc.

PS Since you're a DWM user why not hack your way into that? Add stuff that you need. Just adding stuff that you can "see" doesn't mean it's something useful (unless you make it be useful big_smile). I made DWM have click to focus behaviour instead of selecting windows as you walk over them. Really simple hack too (only one line changed). See if you can spot what that line is. Consider it homework smile

Last edited by Wra!th (2009-04-15 18:48:17)


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#8 2009-04-15 18:48:41

l3thal
Member
From: Room 0
Registered: 2007-12-27
Posts: 88
Website

Re: any tiling wm in C++ ?

i would like to play with a C++ tile wm as a hobby and to pass spare time , also to gain more knowledge ofcourse
i always liked C++ over C , and iam just curious why there isn't a C++ tile wm , all are just in C or other except C++ , besides the reasons i mentioned before !

Offline

#9 2009-04-15 18:50:34

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: any tiling wm in C++ ?

l3thal wrote:

i would like to play with a C++ tile wm as a hobby and to pass spare time , also to gain more knowledge ofcourse
i always liked C++ over C , and iam just curious why there isn't a C++ tile wm , all are just in C or other except C++ , besides the reasons i mentioned before !

Prolly not the answer you were looking for but...

 _________ 
< C > C++ >
 --------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#10 2009-04-15 19:04:09

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: any tiling wm in C++ ?

wmii


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#11 2009-04-15 19:07:52

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: any tiling wm in C++ ?

wmii is C....


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#12 2009-04-15 19:21:50

l3thal
Member
From: Room 0
Registered: 2007-12-27
Posts: 88
Website

Re: any tiling wm in C++ ?

i just compiled tinywm and after starting X , nothing is there , not even the cursor :\

Offline

#13 2009-04-15 19:23:02

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: any tiling wm in C++ ?

l3thal wrote:

i just compiled tinywm and after starting X , nothing is there , not even the cursor :\

Because nothing should be there. It's just proof of concept
Start an urxvt in the background before starting tiny

exec xsetroot -cursor_name left_ptr &
exec urxvt &
exec tinywm

Last edited by Wra!th (2009-04-15 19:24:57)


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#14 2009-04-15 19:23:35

l3thal
Member
From: Room 0
Registered: 2007-12-27
Posts: 88
Website

Re: any tiling wm in C++ ?

exec xsetroot -cursor_name left_ptr &
exec urxvt &
exec tinywm

heh , never thought about that wink

Last edited by l3thal (2009-04-15 19:24:17)

Offline

Board footer

Powered by FluxBB