You are not logged in.
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
hmm , dwm is nice and simple and iam using it atm
Offline
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
well i never really liked icewm , but i would go for a pure tiling wm like dwm
Offline
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++
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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 )
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
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 "
also a wm in C or C++ makes me happy and confident somhow ( thats why iam using dwm atm )
Offline
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 "
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 ). 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
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
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
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
wmii
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
wmii is C....
MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Offline
i just compiled tinywm and after starting X , nothing is there , not even the cursor :\
Offline
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
exec xsetroot -cursor_name left_ptr &
exec urxvt &
exec tinywm
heh , never thought about that
Last edited by l3thal (2009-04-15 19:24:17)
Offline