Commit graph

887 commits

Author SHA1 Message Date
Dana Jansens
f320a02397 clean up the systray and desktop lists 2002-07-11 00:41:56 +00:00
Dana Jansens
cac80d06ef restart the window manager on a SIGHUP 2002-07-10 22:29:57 +00:00
Dana Jansens
9e99a9a1e2 sync with bb cvs 2002-07-10 22:24:48 +00:00
Dana Jansens
b21cf8b335 add another return, and return a value for a non-void funtion. 2002-07-10 17:49:05 +00:00
Dana Jansens
25f3456b5d missing a ; 2002-07-10 17:47:59 +00:00
Dana Jansens
66119f751d add some returns so the compiler doesnt get confused 2002-07-10 17:46:21 +00:00
Dana Jansens
235d9e4c40 use a BPen in the BFont class for drawing standard X fonts 2002-07-09 06:50:01 +00:00
Dana Jansens
0c04fb5260 synch with bb-cvs.
add window resize zones. the resource has been renamed from windowZones to resizeZones.
2002-07-09 06:09:10 +00:00
Dana Jansens
8e34bfcfcb keep iconified windows' workspace set to BSENTINEL, but set the NETWM hint to 0xffffffff (all desktops) 2002-07-09 04:49:04 +00:00
Dana Jansens
f2ecfb623b when a window is iconified, set its workspace to 'all workspaces' so it shows up in taskbars still. otherwise its impossible to get back iconified windows. update teh stacking list when windows switch workspaces. 2002-07-09 01:22:16 +00:00
Dana Jansens
20bc088a99 add option to the rc file to use/not use AA for Xft fonts 2002-07-08 04:40:34 +00:00
Dana Jansens
1618ecc845 extend the style format to use xft.(font|size|flags) to specify an xft font 2002-07-08 02:28:24 +00:00
Dana Jansens
137a0c4e59 allow style options in the rc file to override those found in the style 2002-07-07 21:16:35 +00:00
Dana Jansens
32c1369752 no need to call XrmInit outside of Config class. fix indenting. 2002-07-07 20:38:39 +00:00
Dana Jansens
1da5287620 dont need to XrmInit outside of the Config class. fix indenting. 2002-07-07 20:38:00 +00:00
Dana Jansens
6d4aa1af4e fix a debug print 2002-07-07 19:17:04 +00:00
Dana Jansens
ed3e597500 don't cast char*'s to string's needlessly 2002-07-07 11:17:44 +00:00
Dana Jansens
300491ce5a sync with bb-cvs 2002-07-07 10:27:06 +00:00
Dana Jansens
b29977196b try make the ~/.openbox dir if it doesnt exist. 2002-07-07 10:26:42 +00:00
Dana Jansens
b950402ba2 remove some debug fprintfs 2002-07-06 00:29:12 +00:00
Dana Jansens
5282d92b62 was ending up using the wrong cache items. now i find and release it every time a string is drawn 2002-07-06 00:28:27 +00:00
Dana Jansens
6716bd3323 sync with bb-cvs: re-add support for alt-button2, fix some off by 2's temorarily 2002-07-05 23:56:10 +00:00
Dana Jansens
9d2f88e05a use the True/False as is the blackbox code standard. 2002-07-05 22:09:40 +00:00
Dana Jansens
4abbbd9f84 remove compiler warnings 2002-07-05 20:13:56 +00:00
Dana Jansens
b3c3157354 fix a memleak reported by valgrind 2002-07-05 19:48:03 +00:00
Dana Jansens
6954842d84 when placing a window, dont use its strut while placing itself. 2002-07-05 19:47:44 +00:00
Dana Jansens
e15e4a9e03 make iconified windows uniconify on an XMapRequestEvent.
sync with blackbox cvs.
2002-07-05 01:24:32 +00:00
Dana Jansens
be2f47223c make the styles' doJustify methods stop returning the string length as this is no longer needed with the BFont class 2002-07-04 21:33:27 +00:00
Dana Jansens
08d793bb79 add BFont class, with Xft support 2002-07-03 06:34:25 +00:00
Dana Jansens
9aaf4f8de7 some memory bugs from woodblock (thanks!) 2002-07-03 05:26:11 +00:00
Dana Jansens
75a068cca2 removing old Makefile.in, rolling back Makefile.am to before the mappable muse button bindings 2002-07-03 01:31:32 +00:00
Dana Jansens
888c0bac90 backing out all changes to make mouse button mapping's configurable 2002-07-02 14:57:02 +00:00
Dana Jansens
ffa4c7f341 sync with bb. mostly cleanups in Window.cc 2002-06-30 09:53:52 +00:00
Dana Jansens
18064df19f add capability to stick a window from input, and make close buttons work. 2002-06-30 03:30:54 +00:00
Dana Jansens
351a06655b Configureable button mappings! 2002-06-29 23:50:04 +00:00
Dana Jansens
b0d81f77aa proper order for the stacking order list 2002-06-28 04:27:49 +00:00
Dana Jansens
871602208a make desktop windows get lowered properly 2002-06-28 03:39:22 +00:00
Dana Jansens
eb136b9629 use the _NET_WM_DESKTOP_NAMES root property 2002-06-28 01:44:47 +00:00
Dana Jansens
e9f582ae97 make getting a list of strings work right 2002-06-28 01:43:32 +00:00
Dana Jansens
578a5cc980 make fully max'd windows properly snap 2002-06-27 17:54:32 +00:00
Dana Jansens
b2e9af8886 add the functionality for window-window snapping 2002-06-22 04:48:33 +00:00
Dana Jansens
f4c0547b7a merge from netwm-merge2 to netwm-merge3. Basically, all of netwm that we intend to support is 'supported'. Just need to squash bugs now. 2002-06-21 20:40:14 +00:00
Dana Jansens
1766453ca2 sync with blackbox-cvs 2002-06-21 01:06:29 +00:00
Dana Jansens
8941da8e41 change to match blackbox 2002-06-07 00:28:40 +00:00
Dana Jansens
e90fafd2fd fix off-by-ones in window-to-window snapping. move the property from the blackbox class to the screen class. 2002-06-07 00:24:02 +00:00
Dana Jansens
aad50046de synched with bb-cvs. couple bug fixes. 2002-06-05 04:20:08 +00:00
Dana Jansens
7a55323343 syching with bb-cvs. rm .\#* on make dist-clean. nls updates. 2002-06-05 03:51:26 +00:00
Dana Jansens
a7db565c75 window-to-window snapping is now a run-time option.
window-corner snapping added, and also is a run-time option.
2002-06-02 00:30:55 +00:00
Dana Jansens
f0c2fa18be window-to-window corner snapping! 2002-06-01 23:48:21 +00:00
Dana Jansens
39d598e556 backing out sticky transients change, this should go in the netwm branch 2002-06-01 18:08:49 +00:00
Dana Jansens
1775e867c4 sync with bb-cvs 2002-06-01 17:54:32 +00:00
Dana Jansens
4e0fde35ac make all parents/transients that are related have the same sticky state. 2002-06-01 17:18:55 +00:00
Dana Jansens
20bac0772c on reconfigure, save all of the open submenus instead of just one, and then reopen them all as best as possible. 2002-06-01 17:14:32 +00:00
Dana Jansens
e149ab6c29 no need to try the same screen edge twice for snapping when full max is on 2002-05-30 23:17:54 +00:00
Dana Jansens
9ccebf1118 redecorating fixups. sync with bb cvs. 2002-05-30 08:55:30 +00:00
Dana Jansens
c5c5a80c7e fix bug from merging last netwm stuff 2002-05-30 07:14:43 +00:00
Dana Jansens
5336c900d0 merge in netwm branch at tag netwm-merge2 2002-05-30 06:51:43 +00:00
Dana Jansens
23640740ca sync with bb cvs 2002-05-30 04:35:22 +00:00
Dana Jansens
4787715525 save the right number of workspaces to the rc when adding/removing one 2002-05-29 09:11:41 +00:00
Dana Jansens
53353465f2 fix so that FocusIn events for focus transer from root->client are used. 2002-05-28 19:34:23 +00:00
Dana Jansens
b8ee3dbc45 merging in netwm changes at merge point "netwm-merge1". This add the XAtom class, and sets the net_supported_wm_check related atoms. 2002-05-28 14:32:42 +00:00
Dana Jansens
12fcb33bfa re-added UnderMouse Placement
added NLS support in the new configure system.
2002-05-28 12:39:23 +00:00
Dana Jansens
b48e215ca6 updated nls to use openbox.cat 2002-05-28 12:21:38 +00:00
Dana Jansens
8eb930551c disable the current workspace in the send-to menu 2002-05-28 11:55:43 +00:00
Dana Jansens
46b2484eda let a window snap to more than one window at a time 2002-05-28 11:46:29 +00:00
Dana Jansens
734a96739d window-to-window snapping 2002-05-28 11:38:37 +00:00
Dana Jansens
0bf0d84443 adding .cvsignore files to the repository to clean up the output whenever you commit some sort of cvs action 2002-05-28 10:33:56 +00:00
Dana Jansens
b13452a0c0 when nothing is to be focused, give the root window focus instead of the toolbar (since the toolbar is not neccesarily mapped anymore!) 2002-05-28 10:15:08 +00:00
Dana Jansens
57ac5e5b5e sync with bb-cvs 2002-05-28 09:53:11 +00:00
Dana Jansens
6284d4ef90 fix bug where destroying the wrong windows in BlackboxWindow::positionButtons.
make util/ directory use the new config.h too
2002-05-28 09:38:40 +00:00
Dana Jansens
62ea1c5937 use config.h for configuration options instead of a bunch of -D's on the compile command lines 2002-05-28 07:41:47 +00:00
Dana Jansens
5377e3fde1 added "Hide Toolbar" option. 2002-05-27 05:06:04 +00:00
Dana Jansens
b0f8eab0e6 make window menu behavior consistant. ignore !button1. 2002-05-27 03:55:18 +00:00
Dana Jansens
341c4e04ff mouse wheel support
custom titlebar layout
2002-05-27 03:12:21 +00:00
Dana Jansens
c2ab902334 prevent (and if need be revert) shading if titlebar decor is toggled off 2002-05-26 20:53:48 +00:00
Dana Jansens
f5f7c8fb4e use the raw screen size not the strut adjusted size to determine max_height and width of a client 2002-05-26 20:51:33 +00:00
Dana Jansens
59cea4f2d3 save workspace names properly with the new Configuration class. 2002-05-26 20:51:12 +00:00
Dana Jansens
0305cbdc3a add Configuration class for generic configuration data load/save-ing.
use Configuration class throughout code. no longer save rc file on exit, save when any options are changed.
2002-05-26 20:25:38 +00:00
Dana Jansens
0c7e8e4011 fixed the geometry window not getting the proper pixmap. This was caused by using a style with the window.label.focus set to parentrelative. The window label's parent is the title bar but the geometry window's parent is root. The code now detects the parentrelative and tries to use the window.title as intended. 2002-05-25 15:46:08 +00:00
Dana Jansens
c04cb76409 - raise the window during maximization if the user clicked the maximize button, but otherwise don't
- two fixes here.  1) only raise window in maximize if the window is focused, 2) remap window on reparent event
2002-05-25 15:45:09 +00:00
Dana Jansens
2f65b6533c make use of the --enable-clobber option 2002-05-25 03:46:25 +00:00
Dana Jansens
d744d37540 reindent version string 2002-05-25 03:24:39 +00:00
Dana Jansens
e5d6ed912c reindent again. better now. 2002-05-25 03:23:44 +00:00
Dana Jansens
ca5b573f63 reindent the help/usage message 2002-05-25 02:58:51 +00:00
Dana Jansens
b3737edc7c use openbox/ dir for rc file and menu file. turn menu into a command line option instead of an rc file option 2002-05-25 02:24:30 +00:00
Dana Jansens
e5bdc51167 build a 'openbox' binary 2002-05-25 01:18:50 +00:00
Dana Jansens
f70f3028ce use our default style 2002-05-25 01:11:24 +00:00
Dana Jansens
f992b34c7d use our version string 2002-05-25 01:10:44 +00:00
Dana Jansens
20063c2246 import from bb-cvs 2002-05-25 00:30:31 +00:00
Dana Jansens
8794d357e6 import from bb-cvs
added slit and enable-clobber defines back in Makefile.am
2002-05-25 00:29:44 +00:00
Dana Jansens
18bdbfaad2 better string get/set 2002-05-24 18:19:22 +00:00
Dana Jansens
120d8e5ac3 updated -version output ot list myself 2002-05-23 15:40:11 +00:00
Dana Jansens
bbbe226ccc refix i18n for --disable-nls 2002-05-23 15:22:48 +00:00
Dana Jansens
e7c332a586 missing an include 2002-05-23 15:12:38 +00:00
Dana Jansens
ac62af410d fix compiling with --disable-nls 2002-05-23 15:11:41 +00:00
Dana Jansens
d03852ad25 fix compliling with --disable-slit 2002-05-23 15:00:15 +00:00
Dana Jansens
a85c9a7c6e added XAtom class, and it all now compiles. 2002-05-23 14:53:06 +00:00
Dana Jansens
67b4df1eff merge the sticky window fix from 1.2. 2002-05-23 14:27:52 +00:00
Dana Jansens
fda410fdf2 fixed sticky windows! 2002-05-23 06:23:22 +00:00
Dana Jansens
20d7381ffb new versions of the X classes
added an Atom in XAtom and functionality in XScreen and XDisplay
2002-05-17 02:49:26 +00:00
Dana Jansens
de712f8567 XDisplay's nextEvent completed 2002-05-16 22:48:44 +00:00
Dana Jansens
ae3dc273c4 new i18n class using overloaded operator() instead of getMessage() 2002-05-16 22:35:59 +00:00
Dana Jansens
91a7ca7d20 added the X classes to the build process though they aren't sued by anything else yet. They now compile too. 2002-05-16 18:39:03 +00:00
Dana Jansens
cc7cb82deb adding new X base classes which encapsulate all X server interation 2002-05-16 15:50:41 +00:00
Dana Jansens
4f04dcaf22 removing auto-generated stuff from cvs 2002-05-16 15:27:36 +00:00
Dana Jansens
ae093dba2f make a new autoRaiseDelay value take effect without having to restart 2002-05-16 09:24:40 +00:00
Dana Jansens
7f3d32e3dc make auto-raise value load. 2002-05-16 07:52:13 +00:00
Dana Jansens
927091eef1 fix off-by-one window resizing bug 2002-05-16 07:16:32 +00:00
Dana Jansens
5d6413d495 fix for slit direction menu not reconfiguring properly 2002-05-16 05:59:02 +00:00
Dana Jansens
90e7db977f *** empty log message *** 2002-05-16 04:41:56 +00:00
Dana Jansens
a3a23c28f0 moved menu from a rc file option to a command line option 2002-05-15 22:23:35 +00:00
Dana Jansens
878d57337f update changelog.
removed a redundant var from BaseDisplay.
2002-05-14 23:30:22 +00:00
Dana Jansens
e7978c7d24 confine the mouse to the window for button grabs so that alt-click-drag on a window that wont move doesnt let the mouse leave the window and cause havoc 2002-05-14 23:15:38 +00:00
Dana Jansens
f75083669f new version of bsetroot ported from blackbox cvs 2002-05-14 22:15:01 +00:00
Dana Jansens
527864614b set the button windows to None when they are destroyed so we know they are no longer valid windows 2002-05-14 19:32:32 +00:00
Dana Jansens
1b1efab489 compile with -Wall -W -pendantic when --enable-debug is set. 2002-05-14 19:28:34 +00:00
Dana Jansens
f00ed578ba new focus code! working better than ever! 2002-05-14 07:53:22 +00:00
Dana Jansens
e81b9d6a72 fix for changing window buttons order. destroy them properly when they no longer exist and recreate them if they dont exist yet 2002-05-14 00:47:16 +00:00
Dana Jansens
d6c02ad70c fix segfaut from uninitialized focused_screen pointer 2002-05-13 23:09:20 +00:00
Dana Jansens
6d16679486 focus code updates 2002-05-13 00:23:59 +00:00
Dana Jansens
6486b64576 LinkedList->STL conversion completed. LinkedList is no longer use and it has been removed from the source tree. 2002-05-12 22:45:28 +00:00
Dana Jansens
d58f7b569e no more use of LinkedList in BaseDisplay 2002-05-12 22:40:32 +00:00
Dana Jansens
eb8a11a5a7 removed LinkedLists in BaseDisplay and Image. Only 1 left in BaseDisplay now 2002-05-12 21:46:02 +00:00
Dana Jansens
ebdf25bf67 removed all 'using namespace std;' calls. 2002-05-12 21:15:40 +00:00
Dana Jansens
4969c1b084 move some typedefs into class scope 2002-05-12 20:56:40 +00:00
Dana Jansens
30b899fc02 converted all of the openbox class LinkedLists to STL objects 2002-05-12 20:46:02 +00:00
Dana Jansens
57fb41c806 converted the remaining LinkedLists in Screen to STL objects. 2002-05-12 09:15:09 +00:00
Dana Jansens
addc23faf5 not initializing a pointer to NULL 2002-05-12 01:40:36 +00:00
Dana Jansens
a0dbb0e13f couple of LinkedLists converted to STL lists in BScreen
changed teh calls to XSetInputFocus. Using the root window as the fallback when there is nothing to focus instead of the toolbar. Also, always using 'RevertToPointerRoot' instead of sometimes 'RevertToParent'
2002-05-12 01:23:48 +00:00
Dana Jansens
f804f86c3e use screen instead of its ImageControl to get/set the image dither value 2002-05-11 18:36:26 +00:00
Dana Jansens
c7810a3c38 make image dithering value load correctly 2002-05-11 18:33:29 +00:00
Dana Jansens
b424a72384 converted from LinkedList to STL vector and list 2002-05-11 05:33:49 +00:00
Dana Jansens
9f9cdf1194 fixes for using ostrstream in gcc3. have to unfreeze the string more. annoying.
save workspace names/count properly
2002-05-10 07:13:40 +00:00
Dana Jansens
098fae70a6 better gcc3 compat. using ostrstream again. and using namespace std;
some focus changes. workspace contains a focused window instead of openbox class. this fixes a seg
2002-05-10 02:58:09 +00:00
Dana Jansens
8956328138 gcc 3 compatibility, converted strstreams to stringstreams 2002-05-07 15:34:46 +00:00
Dana Jansens
38de48bd8b stop moving a window if it is maximized 2002-05-03 22:02:51 +00:00
Dana Jansens
445e28af9a windows at positions x<0 or y<0 are no longer ignored in the placing code 2002-05-02 04:44:19 +00:00
Dana Jansens
ba832151d0 better toolbar strftime size/padding fix 2002-05-01 22:30:44 +00:00
Dana Jansens
73f0a90993 BScreen::resource.root_command wasnt being initialized 2002-05-01 22:21:12 +00:00
Dana Jansens
5f9c458fbc fix possible seg because of new move code. make sure that the masked_window pointer gets cleanup up (call endMove) when a window is destroyed (pointer is then invalid) 2002-05-01 07:13:12 +00:00
Dana Jansens
0be1c1e8d7 when a window begins moving, make sure another window is not moving already, and if it is, end its move 2002-04-30 08:09:53 +00:00
Dana Jansens
f4d29bb737 make sure that the only time Click-to-place kicks in is when initially placing/mapping the window 2002-04-30 07:46:46 +00:00
Dana Jansens
5705ea3613 bug #1 from click placement fixed. was catching more motionNotify events than i wanted to with the new/modified move grabs. now i drop any left-over extras when the move completes so they dont come in too late 2002-04-30 07:24:54 +00:00
Dana Jansens
f290e1c04c save the titlebarLayout in the default config 2002-04-30 02:08:33 +00:00
Dana Jansens
84f0293a88 fix bug with window menu positioning 2002-04-29 23:27:31 +00:00
Dana Jansens
22f8550d45 fixed col placement 2002-04-29 20:29:10 +00:00
Dana Jansens
00dc78c66f better logic when changing a window's decoration level, for choosing what elements of decoration get placed on the window. 2002-04-29 07:31:44 +00:00
Dana Jansens
fb1ef42d42 fixed bug from converting over to STL 2002-04-29 01:58:28 +00:00
Dana Jansens
127252cc10 when a window is iconified, it was being moved, end the move cleanly 2002-04-28 19:17:16 +00:00
Dana Jansens
5e3ca8e665 don't click-to-place windows when they specify a position 2002-04-28 19:14:54 +00:00
Dana Jansens
4852193a57 properly handle placing a window while another window is still placing. 2002-04-28 19:09:25 +00:00
Dana Jansens
1789f16af9 if user is moving a window and switches workspaces, stop moving that window 2002-04-28 12:34:34 +00:00
Dana Jansens
8ef0610e90 added ClickMouse window placement policy 2002-04-28 12:12:24 +00:00
Dana Jansens
830e53f25c moved the 'moving window' logic into separate functions "startMove" "doMove" and "endMove" 2002-04-28 11:26:55 +00:00
Dana Jansens
ad7f61121c new row/col Smart Placement from colophon 2002-04-28 01:05:12 +00:00
Dana Jansens
20cd70c466 added UnderMouse windwo placement. 2002-04-28 00:11:19 +00:00
Dana Jansens
07281446ea better cascadePlacement. uses screen.availableArea(). 2002-04-27 21:15:00 +00:00
Dana Jansens
e5685e3cfd added BScreen::availableArea() which returns a rect specifying where windows can be placed on the screen, and what area they can fill when maximized 2002-04-27 19:25:20 +00:00
Dana Jansens
fb96e47f23 removed debugging couts 2002-04-27 19:24:09 +00:00
Dana Jansens
b7d0a77d16 add std:: to the vector typedef in Basemenu
converted slit to use a std::list instead of LinkedList
2002-04-27 18:53:59 +00:00
Dana Jansens
5c9ab8b845 converted from LinkedList to a vector 2002-04-27 18:21:21 +00:00
Dana Jansens
3001cec790 more dithering fix. 2002-04-26 07:38:17 +00:00
Dana Jansens
b2453eec0e that segfaulted. oops. added a workaround so setImageDither doesnt reconfig when saving off all the rc values 2002-04-26 07:19:22 +00:00
Dana Jansens
3f6f897d88 when Image Dither is changed in the menu, make ob reconfigure so it uses the dithering 2002-04-26 07:13:22 +00:00
Dana Jansens
9fa48a9fbe fix Resource class so that you cant cast a string to a Resource 2002-04-24 20:34:17 +00:00
Dana Jansens
1a44d80843 Rolled back to the old row and column smart placement so we can get a 1.0.0 release out the door. 2002-04-23 19:59:44 +00:00
Dana Jansens
6a36505f8a even more fixes for maximizing/placement with hidden slit/toolbar/etc 2002-04-22 23:00:57 +00:00
Dana Jansens
2809005ab0 maximize and placeWindow now behave properly when the slit is hidden 2002-04-22 22:24:15 +00:00
Dana Jansens
6f2064b186 posible fix for maximizing when slit is auto-hidden 2002-04-22 18:59:04 +00:00
Dana Jansens
75c0a76a53 changed external window interface to only have an area(), no size() and origin(), since all of their values are also in area()
changed toolbar external inteface to have an area, no more getX/Y/Width/Height
2002-04-21 18:52:28 +00:00
Dana Jansens
b8dd077ab0 some placement fixes from colophon. 2002-04-21 17:54:51 +00:00
Dana Jansens
7eb8d6966c new row and column placement, using a modified bestfit. These don't work right yet, nor does bestfit, but they are coming. 2002-04-21 07:58:46 +00:00
Dana Jansens
e1b78a1f84 even better bestfit placement. way to go colophon! 2002-04-21 03:36:09 +00:00
Dana Jansens
18499a6920 specify the std:: namespace for the ostrstreams. 2002-04-21 02:17:34 +00:00
Dana Jansens
32951060f6 bestfit placement now honors the left->right and top->bottom options for window placement.
fix for the placement config menu.
2002-04-21 02:02:27 +00:00
Dana Jansens
981ed3081c compile fix for --disable-slit 2002-04-20 20:01:26 +00:00
Dana Jansens
8e083798b5 better logic to not place windows over the slit and toolbar
maximize uses this same logic to not maximize over the toolbar *and the slit*
2002-04-20 19:53:19 +00:00
Dana Jansens
ca3bc6421b changes to bestfit from ruhi. takes windows sizes into account properly, and places windows 1 borderwidth apart on all sides, while still placeing up against the edge of the screen. 2002-04-20 18:30:47 +00:00
Dana Jansens
de7a567d5b on reconfigure, if an option isn't specified in the rc file, then it will revert to its default value instead of staying at its current value. 2002-04-20 18:24:12 +00:00
Dana Jansens
874d0ea446 comment typo and function spacing fix 2002-04-20 18:13:55 +00:00
Scott Moynes
0a3cfdfcb9 fixed memory leaks for strftime_format and rootcommand 2002-04-20 15:28:14 +00:00
Scott Moynes
bed4d7c1e5 fixed memory leak of application_name 2002-04-20 15:26:41 +00:00
Scott Moynes
62e1784161 fixed a memory leak for resource.titlebar_layout 2002-04-20 15:25:18 +00:00
Dana Jansens
8f8eba7b96 fixed memory leak in screen::load() 2002-04-19 21:05:49 +00:00
Dana Jansens
7440ad2e6f starting openbox without an rc file now works. it makes an empty Xrm db instead of crashing :) 2002-04-19 07:50:02 +00:00
Dana Jansens
940c1f614f temprary fix for the memleaks in ::load() and ::set* when using ostrstreams. Need to find a better solution for strings than std::string and ostrstream, or else put up with memory leaks all over the place. 2002-04-19 06:51:08 +00:00
Scott Moynes
66e3f4d060 added new bsetbg manpage 2002-04-18 21:07:47 +00:00
Dana Jansens
5067369f76 fix 2 bus errors on osx:
- it's std::string doesnt like being set to NULL.
 - in Window.cc, caught someone using a membr variable after calling 'delete this'. bad.
2002-04-18 20:56:23 +00:00
Dana Jansens
fa90396976 optimized the finding-the-slit-position code in positionWindow 2002-04-18 18:49:22 +00:00
Dana Jansens
83b39a9a3e added Inflate, Deflate, and Translate to the Rect geometry class 2002-04-18 18:11:33 +00:00
Dana Jansens
13ac6f2abd remove debugging couts 2002-04-18 07:28:12 +00:00
Dana Jansens
f27fe4edbb temporary solution to avoid placing windows over the slit and toolbar, until NETWM is in effect. 2002-04-18 07:26:05 +00:00
Dana Jansens
4602d87180 now yuo can change styles again! (oops) wasnt saving teh nwe style file to the Resource class when it changed. 2002-04-18 03:00:12 +00:00
Dana Jansens
e148f58d0e maps/unmaps the toolbar when its resource setting is loaded from the file so it takes effect during a reconfigure. 2002-04-18 02:05:51 +00:00
Dana Jansens
d99593673c accidently removed a line somehow. OpaqueMove is now read from the rc file. 2002-04-18 00:47:08 +00:00
Dana Jansens
307da13fff menus update their values when they are reconfigure()d.
the screen, toolbar and slit rc values are reloaded in BScreen::reconfigure() before the menus.
the toolbar and slit rc values are explicitly loaded in their constructors, as is BScreen's.
2002-04-17 23:07:11 +00:00
Dana Jansens
9cd9d92bb1 configuration changes "done"!!
on start, the config file is read entirely off the disc, and missing values are assigned defaults.
the config file is immediately written back to the disk to populate missing defaults in the file.
any time a config option is changed the control, the config file is re-written with the change.
choosing reconfig will reload the current config file on the disc.
on shutdown, nothing is written to the config file.
2002-04-17 08:30:55 +00:00
Dana Jansens
66c879bd5c Toolbar saves its settings as their changed
Main config's Hide Toolbar option is also saved when it is changed
Removed 2 debug couts from Slit
2002-04-17 03:44:09 +00:00
Dana Jansens
73a3c979b3 Slit loads its own settings and saves them as they are changed
added an assert in Resource
2002-04-16 23:50:53 +00:00
Scott Moynes
fe9b1efde5 fixed snap to edges with toolbar hidden 2002-04-16 22:50:18 +00:00
Dana Jansens
43e9d583c5 renamed the obResource class to Resource. 2002-04-16 22:08:37 +00:00
Scott Moynes
82e61c015f fixed HAVE_STRING_H introduced from some parrallel development. blast 2002-04-16 20:30:53 +00:00
Scott Moynes
29fff5f56f Added a runtime option for hiding the toolbar totally. Will be cleaner
later. Stay tuned.
2002-04-16 20:22:01 +00:00
Dana Jansens
509c88f501 removed unneeded #include <X11/Xutil.h> 2002-04-16 14:55:38 +00:00
Dana Jansens
113181910a reversed tehmouse wheel buttons on the root window. scrolling up now goes to the next workspace. 2002-04-16 07:20:25 +00:00
Dana Jansens
251dd4034f get rid of the STDC_HEADERS check... this failed on IRIX with MIPSpro, use checks for individual headers instead 2002-04-16 06:25:00 +00:00
Dana Jansens
67e5cb217e removed the code to make the .blackboxrc symlink to openbox's rc file (it cored anyways) 2002-04-16 05:55:10 +00:00
Dana Jansens
897a9711d6 applied Ruhi's cleanup patch. moves colSmartPlacement into its own function
using Geomtry objects instead of integer pairs in all of the placeWindow code now
2002-04-16 01:10:53 +00:00
Scott Moynes
adcdf31702 added some consts to the cascade code 2002-04-15 15:45:11 +00:00
Dana Jansens
dbd6327646 apparently there were compiling problems with automake/autoconf. This should make those go away. 2002-04-15 06:44:49 +00:00
Scott Moynes
df9d0c891a Added a fallback for Best Fit to cascade. Also, moved cascade to its own
function. May not be needed.
2002-04-15 02:37:18 +00:00
Dana Jansens
25cbe08cb6 Slit has an area Rect now, and returns Rect, Size, and Points instead of getX/Y and getWidth/Height. 2002-04-14 19:30:38 +00:00
Dana Jansens
44e3582d5e BScreen (ScreenInfo) now contains a size() instead of a getWidth/getHeight 2002-04-14 18:48:32 +00:00
Dana Jansens
bea6e5f78d changed OpenboxWindow to not have getFrameX/getWidth/etc functions, and to return Origins and Sizes and Rects, in fuctions like size(), origin(), and area(). 2002-04-14 18:28:11 +00:00
Dana Jansens
3dcebcf56c Added Util.h, which contains only an ASSERT macro for now 2002-04-14 15:57:07 +00:00
Dana Jansens
0cfca85d27 changed version number to 1.0.0. fixed a warning in BaseMenu from pointer->reference conversion 2002-04-14 15:26:38 +00:00
Dana Jansens
ffce7be325 using references instead of pointers if possible in Image 2002-04-14 14:28:02 +00:00
Dana Jansens
9bf23ee332 using a Screen reference instead of pointer in Workspace 2002-04-14 14:20:02 +00:00
Dana Jansens
ba6e2034e7 using a reference for Openbox instead of a pointer 2002-04-14 14:04:16 +00:00
Dana Jansens
72af8cea6a using some references instead of pointers where possible in Screen, ScreenInfo, Slit, Toolbar, and Netizen 2002-04-14 13:58:17 +00:00
Dana Jansens
9ea141105e only add one extra space to pad the clock in the toolbar 2002-04-14 13:34:53 +00:00
Dana Jansens
351f1d0331 Using some references instead of pointers for the menus. 2002-04-14 11:37:22 +00:00
Dana Jansens
d00ef14582 made shaded windows snap properly at their bottom, using their shaded height.
window.getHeight() now returns the different/correct value when a window is shaded.
2002-04-14 09:39:14 +00:00
Dana Jansens
bb1a97327b changing the fix for fonts clipping in the titlebar. broken fonts (e.g. gelly caused problems in the old method. 2002-04-14 08:20:56 +00:00
Dana Jansens
424d476f7c added first revision of the BestFit placement type.
moved RowSmart placement type out of placeWindow() to its own function like bestFit. Will continue moving other placement types into their own functions.
2002-04-14 01:11:51 +00:00
Dana Jansens
24f9448c2e adding Geometry classes: Point, Size, and Rect 2002-04-13 23:41:36 +00:00
Dana Jansens
e17c54e3f8 removed all Xrm database calls from Screen.cc (style loading).
This completes the conversion to using the obResource class, there are no class to Xrm* except in Resource.cc/h
2002-04-13 22:42:31 +00:00
Scott Moynes
b7fa41a30b Fixed a bug in the bsetroot build that caused really strange behaviour 2002-04-13 21:26:00 +00:00
Scott Moynes
a619b3d1c8 added symlinking. needs a little work. 2002-04-13 02:09:37 +00:00
Dana Jansens
456cf2d506 real_reconfigure now using obResource instead of teh XrmDatabase calls.
obResource class calls XrmInitialize().
2002-04-12 06:11:31 +00:00
Dana Jansens
8d3c97389f save_rc() using the obResource class to save blackbox's configuration.
renamed BScreen::getCount to BScreen::getWorkspaceCount.
2002-04-12 06:05:04 +00:00
Dana Jansens
e532e9576b changed the default edge-snap distance from 0 to 4. This way new users will see that the option is there for them to change. 2002-04-11 06:59:34 +00:00
Dana Jansens
6ea740cd0e load_rc(BScreen *) now uses the obResource class to load its configuration
added a few consts in BScreen to be compatible with the new code.
reordered the compilation in src/ so that Resource.cc is in alphabetical order
2002-04-11 06:58:53 +00:00
Dana Jansens
17ef263859 load_rc() now uses the obResource class to load its configuration 2002-04-11 05:05:48 +00:00
Dana Jansens
455b288c3e added the obResource class which handles Xresouce database files in a sane manner 2002-04-11 03:57:05 +00:00
Dana Jansens
40d73351a2 added the obResource class which handles Xresouce database files in a sane manner. 2002-04-11 03:51:17 +00:00
Dana Jansens
dfc5f03458 Initial revision 2002-04-11 03:20:38 +00:00