Commit graph

657 commits

Author SHA1 Message Date
Dana Jansens
f77502100a decorations work/line up/etc yay. now for fonts... 2002-12-03 07:47:51 +00:00
Dana Jansens
36d8e0c6c4 i dont know what i fixed but here it is 2002-12-03 05:38:40 +00:00
Dana Jansens
a77f0fb344 handle map requests with the root window class 2002-12-02 23:03:41 +00:00
Dana Jansens
958df77162 compress property changes a bit 2002-12-02 22:40:33 +00:00
Dana Jansens
11de5db065 better compression, dont lose events 2002-12-02 22:36:43 +00:00
Dana Jansens
7efcff07ea more compressing 2002-12-02 22:32:38 +00:00
Dana Jansens
786834abea compress property changes into a single change 2002-12-02 22:19:07 +00:00
Dana Jansens
dca0c9f5a3 add an OBRootWindow class that watches events/properties on root windows 2002-12-02 22:12:26 +00:00
Dana Jansens
74cb09bb2c handle map events with the Openbox class 2002-12-02 21:06:16 +00:00
Dana Jansens
1eb79b9a0d <shrug> 2002-12-02 20:50:59 +00:00
Dana Jansens
fb3848450e window decorations use "unmanaged" widgets now. 2002-12-01 11:45:55 +00:00
Dana Jansens
cd91abfd7c include the right .h 2002-11-16 10:51:47 +00:00
Dana Jansens
29d504e76c oh no im being ANONYMOUS 2002-11-14 20:21:46 +00:00
Dana Jansens
597f4d81e5 comment 2002-11-14 20:21:30 +00:00
Dana Jansens
0da967a831 remove the redundant _size property in OBScreen, and set the geometry root property properly.
add otk::Point::setPoint
2002-11-11 11:33:32 +00:00
Dana Jansens
c4a1fac49d manages windows that exist before running. 2002-11-11 11:25:40 +00:00
Dana Jansens
24dd636f73 watch for when screens cant be managed 2002-11-11 10:41:44 +00:00
Dana Jansens
e503323dcf HRM manageExisting() isnt working! 2002-11-11 10:35:59 +00:00
Dana Jansens
06a80ce2c7 manage and unmanage windows in OBScreen 2002-11-11 10:26:08 +00:00
Dana Jansens
cee3052446 not using any old blackbox classes anymore! 2002-11-11 10:05:06 +00:00
Dana Jansens
fcbb82770c mad wicked xft checks 2002-11-11 08:33:43 +00:00
Marius Nita
5c7aabd779 wattrib doesnt get init-ed correctly when called from assert() 2002-11-11 03:57:53 +00:00
Dana Jansens
c220fbc953 include stdio 2002-11-10 21:11:53 +00:00
Dana Jansens
e828f1404f get the size of the label properly 2002-11-10 12:58:29 +00:00
Dana Jansens
9c6ce2a800 adding the new OBScreen class actually! 2002-11-10 12:50:18 +00:00
Dana Jansens
2528b4458c new OBScreen class is somewhat complete now i think 2002-11-10 12:45:47 +00:00
Dana Jansens
b067510b61 cleanups.
OBScreen almost ready for some action
2002-11-10 12:20:29 +00:00
Dana Jansens
73f6bb1a7b move screen.cc/hh to bbscreen.cc/hh 2002-11-10 10:22:47 +00:00
Dana Jansens
410a826458 more layout fixes for the decoration elements 2002-11-10 10:14:20 +00:00
Dana Jansens
3762f3c88f pretty sure all frame elements are placed correctly now 2002-11-10 09:44:27 +00:00
Dana Jansens
6e2593cadc handle events on all of the client's decor as for the client 2002-11-10 08:42:34 +00:00
Dana Jansens
0b17bd83c7 add \n's to the signal printfs
make the hash of all clients destroy properly
2002-11-10 08:34:46 +00:00
Dana Jansens
365791838f size/position fixes 2002-11-10 08:17:21 +00:00
Dana Jansens
f424471009 frames' subemelents are created and positioned and everything 2002-11-10 08:12:53 +00:00
Dana Jansens
633df648c9 add a comment 2002-11-10 06:20:37 +00:00
Dana Jansens
9d5865a160 support for the shape extension works! 2002-11-10 05:54:12 +00:00
Dana Jansens
209b7f212d some more things to happen when changing styles on a frame 2002-11-10 04:28:43 +00:00
Dana Jansens
f257e4b079 position the client inside the frame correctly.
unmanage all clients on shutdown
2002-11-10 04:26:36 +00:00
Dana Jansens
b9cac2146e WINDOWS GET FRAMES FRAME SHOW UP THEY WORK HUZZAH SOON THEYLL BE LIKE OLD TIMES! 2002-11-10 04:08:26 +00:00
Dana Jansens
f2ae1c3b17 fully documented OBClient 2002-11-07 09:02:26 +00:00
Dana Jansens
b0149ef3fd add a bunch of documentation
add updateIconTitle
2002-11-07 08:22:50 +00:00
Dana Jansens
8b041e2f5c add updateIconTitle 2002-11-07 08:22:27 +00:00
Dana Jansens
2a26eddc8d add XXX to a comment that deserves it 2002-11-07 00:22:58 +00:00
Marius Nita
746e55f74b ugh, misspelling 2002-11-06 14:05:08 +00:00
Marius Nita
29d640fdc2 moved em to otk 2002-11-06 14:02:50 +00:00
Marius Nita
37be3ef924 omg, fat commit
pulled the style crap out of screen, i think the reconfigure case needs to be handled still.
moved util and config into otk, changed everything else accordingly.
code compiles and runs
2002-11-06 13:57:54 +00:00
Dana Jansens
0cf6e32e1c new binary name 2002-11-06 11:44:35 +00:00
Dana Jansens
f7f3cd4085 set the client's desired decoration and function flags 2002-11-06 11:44:15 +00:00
Dana Jansens
9dc76e1bac support for the Mwm Hints 2002-11-06 11:31:50 +00:00
Dana Jansens
8a1989301d blef 2002-11-06 10:47:30 +00:00
Dana Jansens
395b9e155a generate an 'openbox3' binary 2002-11-06 10:38:20 +00:00
Dana Jansens
378ed4f520 maps and unmaps windows! 2002-11-06 10:36:56 +00:00
Dana Jansens
a0cc4a7f23 windows map again! 2002-11-06 10:18:38 +00:00
Dana Jansens
076d45d0ce read protocols too in OBClient 2002-11-06 10:05:56 +00:00
Dana Jansens
78a7593a46 OBAtom/XAtom has been moved to otk::OBProperty 2002-11-06 09:20:37 +00:00
Dana Jansens
9df8ba78f3 determine if the user/application requested its initial position or not 2002-11-06 09:19:53 +00:00
Dana Jansens
aa8047d68b use INT_MAX for the default max sizes 2002-11-06 09:14:33 +00:00
Dana Jansens
116c95b887 get the min/max sizes 2002-11-06 09:12:13 +00:00
Dana Jansens
9b23dff16c when creating an OBClient class, get all the info on that class immediately.
print the info to stdout for now too!
2002-11-06 09:04:48 +00:00
Dana Jansens
7b343db222 comment the _window member 2002-11-06 08:09:03 +00:00
Dana Jansens
63233a1fc6 make the group a window
add a XXX for later
2002-11-06 08:08:16 +00:00
Dana Jansens
d363f720a6 fix compiling with the new strut (new namespace)
and fix general errors that broke compiling.

make xeventhandler find the OBClient for most events..
2002-11-06 08:06:54 +00:00
Dana Jansens
d3b7c84d4c moving strut into its own .hh. adding OBClient class 2002-11-06 07:01:59 +00:00
Dana Jansens
d017db67e4 client.cc compiles 2002-11-06 07:01:34 +00:00
Dana Jansens
c9f36d34a4 finish conversion to the new otk::OBProperty class with its new interface 2002-11-05 09:13:46 +00:00
Dana Jansens
641bc819d1 convert XAtom to OBAtom 2002-11-05 07:48:26 +00:00
Dana Jansens
f25252a484 updated doxygen documentation 2002-11-05 05:56:44 +00:00
Dana Jansens
c3946be073 initialize the _doshutdown member 2002-11-04 09:43:42 +00:00
Dana Jansens
62356a72a9 complete the change from window.cc/hh to bbwindow.cc/hh 2002-11-04 09:40:56 +00:00
Dana Jansens
6f8b36ff82 moving window.cc/hh to bbwindow.cc/hh since we'll have our own window class coming in to replace it slowly 2002-11-04 09:38:21 +00:00
Dana Jansens
2f905c7ed8 deal with client events in the same way now 2002-11-04 09:33:23 +00:00
Dana Jansens
45c2589ef6 xeventhandler can handle everything except client messages now.
blackbox is no longer the event handler
2002-11-04 09:25:26 +00:00
Dana Jansens
7ebccbf39a new OBTimer interface 2002-11-04 06:06:13 +00:00
Dana Jansens
d557e816be include the right .hh! 2002-11-04 05:35:04 +00:00
Dana Jansens
6bba50ef34 include the timer manager class header 2002-11-04 05:34:28 +00:00
Dana Jansens
d4d89ce0bb documenting classes! 2002-11-04 03:37:17 +00:00
Dana Jansens
9259ec5732 new timer infrastructure. takes a function pointer for the timeout, with a void* parameter (useful for holding a class instance!) 2002-11-03 14:29:34 +00:00
Dana Jansens
ad80ef0f66 make it shutdown on signals 2002-11-03 12:58:17 +00:00
Dana Jansens
42e406d09d read rc3 as the default file now 2002-11-03 12:55:30 +00:00
Dana Jansens
373de009f7 new timers, timer manager 2002-11-03 12:48:10 +00:00
Dana Jansens
c5f62494f1 fix compiling in display.
make the timer manager work in and of itself
2002-11-03 12:27:49 +00:00
Dana Jansens
8ad2610917 ue default scope timevals 2002-11-03 12:07:54 +00:00
Dana Jansens
2bf55be061 add comment 2002-11-03 12:06:44 +00:00
Dana Jansens
ace8c8896a WE DONT USE BASE DISPLAY FOR ANYTHING ANY MORE!!@^!*@*!! YAY 2002-11-03 11:46:05 +00:00
Dana Jansens
dd7b8b67bd split the screeninfo class out to its own files 2002-11-03 06:09:05 +00:00
Dana Jansens
bbdca49193 gettext is ready to rock and roll 2002-11-03 05:56:15 +00:00
Dana Jansens
0eff3cc415 make strings in main.cc translatable 2002-11-01 11:18:32 +00:00
Dana Jansens
90f2414285 add gettext
change CXXFLAGS back to CPPFLAGS in the .am's
2002-11-01 10:08:32 +00:00
Dana Jansens
4c05a620cc libtool stuff 2002-11-01 04:03:00 +00:00
Dana Jansens
f127273aba make compile again 2002-11-01 04:02:33 +00:00
Dana Jansens
1824e6b100 add a cvsignore for otk.
make sexier automake shit
2002-11-01 03:45:34 +00:00
Marius Nita
110a1eeed9 moved files into otk 2002-11-01 03:30:18 +00:00
Dana Jansens
86bef745b9 big fat commit.. 2002-10-31 09:18:24 +00:00
Dana Jansens
75f84f9557 add comment for later 2002-10-31 09:06:03 +00:00
Dana Jansens
7bf96a9123 compiles now. uses xft2
remove the nls remainders
2002-10-31 08:42:45 +00:00
Dana Jansens
db451d95bf rename, remove bullshit. ya 2002-10-31 06:54:56 +00:00
Dana Jansens
60b016b7fc no more menus, at last. woop 2002-10-31 06:30:23 +00:00
Scott Moynes
87e63d53af Take menu file from rc file if it isn't specified on the command line.
It doesn't act correctly when using reconfigure, but only because I am unsure what the correct behaviour is.
2002-10-26 17:06:00 +00:00
Scott Moynes
9af642d299 Ignore dot files in the styles directory. 2002-10-26 15:31:33 +00:00
Dana Jansens
be141c2ac3 take out useless(?) assert 2002-10-24 14:50:21 +00:00
Scott Moynes
1e36acfd91 Allow variable tinting of the shadow. Use *.xft.tint: integer
integer is a number -100 to 100 that specifies the alpha channel, with
negative numbers meaning lighten the background and positive being
darken.
2002-10-23 02:46:47 +00:00
Scott Moynes
8b55442b2e use drop shadow height in the font height.
honour rc file config option for drop shadows with new shadow code
2002-10-17 02:59:30 +00:00
Scott Moynes
8552ba2ac9 xft drawing on offsets once and for all 2002-10-17 02:37:23 +00:00
Scott Moynes
d974e00bc9 fixed the drop shadow window clearing bug in Basemenu 2002-10-17 01:45:30 +00:00
Scott Moynes
ccf6cfadf7 Fix XFT redraw of text. Still needs slight work for the shadow in Basemenu 2002-10-17 00:52:03 +00:00
Scott Moynes
402e229e76 Allow for customizing of the dropShadows.
If xft.flags: shadow then you can specify the tint with xft.shadow.tint:
which should be a number 0 to 255. xft.shadow.offset: will specify how
many pixels to add in positioning.
Also, try to fix the inheritence in the pressed button borders. Need a
style to test this
2002-10-16 22:33:34 +00:00
Scott Moynes
be127cb4c6 make an *xft.flags: shadow flag to have per style resource shadows 2002-10-16 02:53:49 +00:00
Scott Moynes
fa3fb793e7 oops. fix workspace warping merge buglet 2002-10-04 03:18:28 +00:00
Scott Moynes
987cf7cc40 Added style resources for window.button.pressed.focus: and
window.button.pressed.unfocus:
Documentation to be added.
2002-10-03 03:58:07 +00:00
Scott Moynes
080ba7f9b9 remove debug code in window menu placement 2002-10-01 02:12:09 +00:00
Scott Moynes
72a2e98738 merged with 2_1-merged-to-HEAD-2002-09-30 2002-10-01 01:59:09 +00:00
Scott Moynes
783fac59c9 snap a window menu to the bottom of the screen if it is positioned too low. 2002-10-01 01:17:24 +00:00
Scott Moynes
5b8ec88623 fixed menu placement on menus with very small windows 2002-10-01 00:14:15 +00:00
Marius Nita
c2afc72a41 Fix small compile error on g++3. 2002-09-22 09:08:29 +00:00
Scott Moynes
e0d619e309 added a configure flag for enabling/disabling bitmap buttons 2002-09-14 05:43:57 +00:00
Scott Moynes
c196ecd878 more bitmap merge fixes 2002-09-14 04:52:04 +00:00
Scott Moynes
01732a20db Some bitmap bugfixes
Fixed parameters to XFillRectangle, remoced old debug code.
2002-09-14 04:01:20 +00:00
Scott Moynes
c2d992a35c merged bitmap buttons 2002-09-14 03:44:44 +00:00
Dana Jansens
15ca6904fc make alt-right click resizing work on the window handles 2002-09-11 02:14:55 +00:00
Dana Jansens
ce5313528e bindable/disableable root/workspace menus 2002-09-09 22:09:38 +00:00
Dana Jansens
3de15d0504 default drop shadows to off 2002-09-09 20:51:43 +00:00
Dana Jansens
7f001973a8 catch button presses on the window's frame window, else they end up passing up the heirarchy to the root window, and then that will do things like pop up the root menu by right clicking on the window's frame window. 2002-09-08 01:22:13 +00:00
Dana Jansens
70fed8c962 dont draw borders past the end of a texture 2002-09-07 16:50:34 +00:00
Dana Jansens
8d54452b77 lighter shadow 2002-09-07 07:35:03 +00:00
Dana Jansens
01a6d810b6 increase the reported font size when it has a shadow 2002-09-07 07:18:31 +00:00
Dana Jansens
2c01b1aa9a drop shadow with color of text 2002-09-07 06:43:18 +00:00
Dana Jansens
076ef8c10e better ropshadow? 2002-09-07 06:26:20 +00:00
Dana Jansens
02c028d8ae (optional) drop shadows for fonts 2002-09-06 16:14:55 +00:00
Dana Jansens
c1e79a4a82 back out the thick X button 2002-09-04 03:35:21 +00:00
Dana Jansens
23aea9b42f better border support for stuff. add a borderColor resource, and allow borders with gradients. basically, they can only be used with flat stuff (not raised/lowered) 2002-09-04 02:58:39 +00:00
Dana Jansens
1f5dd220e7 watch for sticky windows when mapping, let them show. 2002-09-04 02:28:42 +00:00
Dana Jansens
42e00b1c5b sync with 2.0 branch (fix auto-rasie with gtk issue) 2002-09-01 21:14:26 +00:00
Dana Jansens
e93ce60568 sync with the 2.0 branch (make XAtom::getValue not use an XGrabServer) 2002-09-01 09:51:54 +00:00
Dana Jansens
923c381dc1 sync with the 2.0 branch 2002-08-31 06:15:07 +00:00
Scott Moynes
e811623978 fixed debug flag being forced on. 2002-08-29 00:07:53 +00:00
Scott Moynes
767e04e090 Added a optional omnipresent button, enabled using the title bar layout key "S".
Needs to be documented, and the drawing tweaked a bit.
2002-08-28 23:58:32 +00:00
Dana Jansens
d139e299d5 cleanups and add a server grab in getValue 2002-08-27 12:49:04 +00:00
Dana Jansens
5033ce0a24 proper mask t catch the unmap events on systray windows 2002-08-27 10:57:15 +00:00
Dana Jansens
f5a1f592a4 fix shape support 2002-08-27 08:18:04 +00:00
Marius Nita
07e619ebbb Added missing header for clearShape, which was breaking compilation 2002-08-27 06:59:57 +00:00
Dana Jansens
9667f3a0e9 fix shape.
a) it didnt work when it added shape after mapping
b) removing shape wouldnt have worked right either
2002-08-27 03:59:51 +00:00
Scott Moynes
bb9a37ec3d Draw close button with line_width of 2. 2002-08-26 23:52:37 +00:00
Dana Jansens
f763814b33 dont limit how big a window can be resized.
dont let the user resize a window smaller than 0, which makes it wrap to a huge number
2002-08-26 12:09:28 +00:00
Dana Jansens
a6d6f0118b sync with blackbox
get rid of the default limit on window sizes
2002-08-26 05:27:25 +00:00
Dana Jansens
85612861f5 don't limit how big a window can be resized 2002-08-26 04:53:37 +00:00
Dana Jansens
d9c0cfedbd unmanage desktop windows on shutdown 2002-08-26 00:25:08 +00:00
Dana Jansens
3ad19e4a45 format comment 2002-08-26 00:23:28 +00:00
Dana Jansens
328b861d19 use the window's gravity when handling a configureRequest event for a resize only 2002-08-25 11:26:15 +00:00
Dana Jansens
db3e93a3c1 actually check if a window has the function flags approproate before trying to perform an action. (i.e. dont let windows iconify if they arent supposed to, etc) 2002-08-25 09:48:50 +00:00
Dana Jansens
45863e605c clean up the new focusing code for workspace switching 2002-08-25 08:41:18 +00:00