Commit graph

395 commits

Author SHA1 Message Date
Dana Jansens
434ed8b0bb add action.h for menu entries 2003-03-24 22:07:30 +00:00
Dana Jansens
22be74583b you cant reference yourself as a type 2003-03-24 22:04:43 +00:00
Dana Jansens
d56e90fac8 use g_hash_table properly 2003-03-24 22:03:38 +00:00
Scott Moynes
3443454f33 Added some menu structure. 2003-03-24 21:54:47 +00:00
Dana Jansens
c2684d312b make sure the ConfigureNotify is propogated even when there is no change 2003-03-24 20:15:36 +00:00
Dana Jansens
c9ba604668 always send the event on a final configure even if there was no real move 2003-03-24 20:09:31 +00:00
Dana Jansens
7beec94a1f make sure windows which cant be moved or resized also can't be fullscreened 2003-03-24 20:05:11 +00:00
Dana Jansens
0d84c43d2a only configure the engine if something changed 2003-03-24 19:59:46 +00:00
Dana Jansens
436c85576e only perform the actions necessary when performing an engine_adjust_area. pass whether the client has moved or resized 2003-03-24 19:52:09 +00:00
Dana Jansens
2bdc37e920 double ptrs suck! yay shape! 2003-03-24 19:10:33 +00:00
Dana Jansens
7567e3d781 handle shape events 2003-03-24 19:07:28 +00:00
Dana Jansens
66dc14754b dont move/resize !normal windows 2003-03-24 18:42:20 +00:00
Dana Jansens
44c5552427 kill debug prints 2003-03-24 05:38:46 +00:00
Dana Jansens
e238e4ac2d kill debug print 2003-03-24 05:38:28 +00:00
Dana Jansens
3b14b587ef more focus improvements. everything seems to work! 2003-03-24 04:56:46 +00:00
Dana Jansens
d82048b4e5 Time is declared in Xlib.h 2003-03-24 04:01:38 +00:00
Dana Jansens
1dec895d2e not. 2003-03-24 00:51:59 +00:00
Dana Jansens
2bdccde5c2 focus seems to work when not remote too now 2003-03-24 00:49:31 +00:00
Dana Jansens
137efd1367 more focus fixes. i wish this could end. 2003-03-24 00:46:21 +00:00
Dana Jansens
7bb829f8b7 no \n in g_message 2003-03-24 00:40:29 +00:00
Dana Jansens
4a6e98cad8 add restart and exit actions 2003-03-24 00:01:55 +00:00
Dana Jansens
687559cb2d yet more improvements to focus handling 2003-03-23 23:47:47 +00:00
Dana Jansens
88097ba46c compare it to null like i do elsewhere 2003-03-23 20:45:31 +00:00
Dana Jansens
d88f34e100 code optimization 2003-03-23 20:45:15 +00:00
Dana Jansens
b18f5f1d2b when adjusting the trasient lists, set them, dont leave them hanging into space 2003-03-23 20:34:13 +00:00
Dana Jansens
cf37170bff whitespace 2003-03-23 19:44:43 +00:00
Dana Jansens
86a8d8031b use gnew0 to make life easy 2003-03-23 19:44:30 +00:00
Dana Jansens
5d7d6038ca use the plugins' plugin_setup_config function 2003-03-23 19:44:10 +00:00
Dana Jansens
fdf4265a13 kill debug print 2003-03-23 19:40:23 +00:00
Dana Jansens
e7e2a69fd0 handle multiple maprequests graciously 2003-03-23 19:39:20 +00:00
Dana Jansens
08a70966ee oops 2003-03-23 19:03:47 +00:00
Dana Jansens
d1de946a62 move windows when the number of desktops changes and they arent on a desktop anymore 2003-03-23 18:21:45 +00:00
Dana Jansens
b2c508d97e set focus_order back to null on shutdown so g_renew would work 2003-03-23 18:11:46 +00:00
Dana Jansens
3994683200 rm the themerc stuff 2003-03-23 16:19:15 +00:00
Dana Jansens
85238a1eaa rm themerc.[ch] 2003-03-23 16:14:32 +00:00
Dana Jansens
d8268296fb better parsing errors 2003-03-23 00:52:01 +00:00
Dana Jansens
6cebd34855 add booleans 2003-03-23 00:39:04 +00:00
Dana Jansens
ddb5d43edc properly parse comments!
parse booleans
2003-03-23 00:38:37 +00:00
Dana Jansens
3cc402bd56 add descriptive names and long descriptions to config var def'ns. set these for the kernel config options. 2003-03-23 00:16:04 +00:00
Dana Jansens
5bf68f762b make the openbox engine use the new config shit instead of the themerc shit.
order te startup so that plugins can set up their config shit before parsing the config, then the config is parsed, engine is loaded, and finally the plugins are officially started.
2003-03-22 23:26:43 +00:00
Dana Jansens
4cc0d9b72d only load the system rc if the user rc didnt load 2003-03-22 22:51:27 +00:00
Dana Jansens
9f68b12062 load the engine out of the config shit. tho the ordering is fucked atm 2003-03-22 22:45:05 +00:00
Dana Jansens
93783c2a04 parse lines that start with '#' as comments 2003-03-22 22:26:25 +00:00
Dana Jansens
2b1a11c69d let identifiers have '.' in them 2003-03-22 22:20:24 +00:00
Dana Jansens
799fe5a8bc give the filename to the parser for errors 2003-03-22 22:02:14 +00:00
Dana Jansens
a26cd30bf0 remove debug print 2003-03-22 22:00:12 +00:00
Dana Jansens
e5be9ad6cc yah. fuck 2003-03-22 21:58:57 +00:00
Dana Jansens
8b02e6b51a add a check for adding the same exact def'n twice 2003-03-22 21:58:26 +00:00
Dana Jansens
94f2b4a7b8 config system fleshed out. many thanks to woodlbock for his code! yay! 2003-03-22 21:53:41 +00:00
Dana Jansens
84a4e2ba22 ignore cparse.c 2003-03-22 14:42:16 +00:00
Dana Jansens
53882f7609 didnt belong 2003-03-22 14:41:43 +00:00
Dana Jansens
56dc0446cd start the config system, add the config file parser 2003-03-22 14:41:19 +00:00
Dana Jansens
ff06051eb7 asserts in unmanage to try track a crash 2003-03-22 13:26:28 +00:00
Dana Jansens
a5b371cfe7 blef 2003-03-22 13:18:45 +00:00
Dana Jansens
9b514b3b61 add the client_kill function, and the kill action, and bind it to the middle mouse button on the close button. 2003-03-22 06:58:38 +00:00
Dana Jansens
78aa056eeb make the ~/.openbox dir on startup 2003-03-22 03:40:09 +00:00
Dana Jansens
dd6e27f2c3 rename the res_name and res_class members to name and class 2003-03-22 00:35:02 +00:00
Dana Jansens
0a69cfc6d2 add strict ansi compliance 2003-03-21 20:25:34 +00:00
Dana Jansens
ab44e44a55 ignore the openbox3 binary 2003-03-21 18:46:11 +00:00
Dana Jansens
624d277ffb build 'openbox3' instead of 'ob3' 2003-03-21 18:45:29 +00:00
Dana Jansens
359ef29082 build the binary called 'openbox3' 2003-03-21 18:44:34 +00:00
Dana Jansens
327a0b3de7 always adjust the frames size and position together, so there is no more weird resizing before moving and edge flickering when resizing from the top/left 2003-03-21 18:38:08 +00:00
Dana Jansens
a822cbe13b dont focus anything in the kernel from showing-the-desktop mode 2003-03-21 17:23:00 +00:00
Dana Jansens
90cc2b2bab better comment for Event_Client_Moving 2003-03-21 10:44:54 +00:00
Dana Jansens
178fdf254d choke on invalid options on the cmd line 2003-03-21 10:41:56 +00:00
Dana Jansens
94d871a390 dont check for != NULL before freeing. pointless. 2003-03-21 10:35:35 +00:00
Dana Jansens
d4601cd034 don't check for != NULL before freeing. pointless 2003-03-21 10:34:44 +00:00
Dana Jansens
d33dce4827 defn vars at the top of funcs 2003-03-21 10:33:26 +00:00
Dana Jansens
9a4ccc919c add the client_set_focused function.
make focus state be changed internally immediately after calling the X functions to make it so, basically, assume their success. this elimiates races all over the place with our state vs the server's state.
2003-03-21 10:26:26 +00:00
Dana Jansens
5034073da7 use the client_set_focused function when getting FocusIn/Out events 2003-03-21 10:24:24 +00:00
Dana Jansens
a3c9271ca2 init the focus_client ptr in startup 2003-03-21 10:23:57 +00:00
Dana Jansens
0cb6f81276 dont use the client's colormap if it is set to None! 2003-03-21 09:54:54 +00:00
Dana Jansens
c2cbef62bb add a dispatched event for interactively moving a window.
move window snapping/resistance out of the kernel.
make the action_move dispatch the new event.
2003-03-21 09:41:01 +00:00
Dana Jansens
3904699688 snap window-to-window 2003-03-21 08:37:22 +00:00
Dana Jansens
a3012eafbd rm debug prints 2003-03-21 08:19:40 +00:00
Dana Jansens
b23c65362d rm debug print 2003-03-21 08:19:18 +00:00
Dana Jansens
db75d406ce rm the focused member from the client struct, it was redundant with the focus_client variable around 2003-03-21 08:18:39 +00:00
Dana Jansens
ca45916f77 update engine last for focus events 2003-03-21 08:17:43 +00:00
Dana Jansens
d38855a0a5 dont set the restart path to "", load the placement plugin 2003-03-21 07:53:13 +00:00
Dana Jansens
29e3748605 add a window placement plugin 2003-03-21 07:33:07 +00:00
Dana Jansens
e8ed8b3c2a show windows before hiding when switching desktops 2003-03-20 22:36:01 +00:00
Dana Jansens
35c095014e add -help -version -sync and -rc cmd line options 2003-03-20 22:14:15 +00:00
Dana Jansens
17cc975cc9 add the binary and urls to the Makefile and -D's 2003-03-20 22:06:08 +00:00
Dana Jansens
bf707e7240 add RECT_CONTAINS 2003-03-20 21:53:04 +00:00
Dana Jansens
45f6d52712 save decor and functions per client for fullscreening! 2003-03-20 21:52:49 +00:00
Dana Jansens
f76b26e4ad lock the size/position of maximized and fullscreen clients 2003-03-20 21:49:39 +00:00
Dana Jansens
ba2c6a23df lock the position/size of maximized windows 2003-03-20 21:09:56 +00:00
Dana Jansens
8758271498 restart and catch errors appropriately 2003-03-20 07:48:59 +00:00
Dana Jansens
26f66bc932 init the GError to NULL 2003-03-20 01:55:25 +00:00
Dana Jansens
396d559b3f can restart now 2003-03-20 01:53:38 +00:00
Dana Jansens
c1e6991224 restart will work soon 2003-03-19 21:54:29 +00:00
Dana Jansens
6321d28652 no \n in g_messages 2003-03-19 19:58:25 +00:00
Dana Jansens
44889c3c69 MapRequest needs to activate the window 2003-03-19 19:56:53 +00:00
Dana Jansens
e442c6cc56 snap windows when moving them 2003-03-19 19:22:13 +00:00
Dana Jansens
5b5ab0408a add code for snapping windows to screen edges 2003-03-19 19:21:55 +00:00
Dana Jansens
bcca5bb967 add funcs to grab buttons and keys 2003-03-19 18:55:56 +00:00
Dana Jansens
080b36cfc2 export the NumLock and ScrollLock masks 2003-03-19 18:55:36 +00:00
Dana Jansens
89142ea6b4 dont need a mask_list here 2003-03-19 18:55:21 +00:00
Dana Jansens
fd9dc6f9d5 grab all lock keys 2003-03-19 18:55:10 +00:00
Dana Jansens
90e654131d break, dont return 2003-03-19 17:24:47 +00:00
Dana Jansens
0c16988daa add code to make net_active_window events work 2003-03-19 17:24:24 +00:00
Dana Jansens
75ee81d9bf add focusraise 2003-03-19 17:24:03 +00:00
Dana Jansens
d42335e54d put the comment where it belongs 2003-03-19 09:36:55 +00:00
Dana Jansens
4fbc127a57 on shutdown: destroy the net support window. clear a few more properties we dont want across restart. select NoEventMask on root. 2003-03-19 09:36:09 +00:00
Dana Jansens
16787d0a17 oops 2003-03-19 09:33:52 +00:00
Dana Jansens
152c638ef1 destroy the focus_backup 2003-03-19 09:32:51 +00:00
Dana Jansens
bd9846e635 erase the openbox_pid hint on the root window when we shutdown 2003-03-19 09:03:54 +00:00
Dana Jansens
4732930eec ignore !normal crossing events 2003-03-19 08:19:27 +00:00
Dana Jansens
59be9ae1d2 start with 0 desktops, so the focus_order stuff all gets initialized properly 2003-03-19 08:06:19 +00:00
Dana Jansens
8428becfde the focus_order shit is init'd by the screen_startup setting the number of desktops 2003-03-19 08:05:58 +00:00
Dana Jansens
9a5f1d7b5e shutdown everything before closing the display 2003-03-19 08:05:25 +00:00
Dana Jansens
4bceaaf165 comment what funcs is 2003-03-19 07:40:07 +00:00
Dana Jansens
0a855f3e49 close the channel by unref'ing it 2003-03-19 07:34:31 +00:00
Dana Jansens
ef43db32eb rm the comments pointer bindings stuff, thats in a plugin now 2003-03-19 07:12:00 +00:00
Dana Jansens
b3817126ee add new windows to the back of the focus order list 2003-03-19 07:10:05 +00:00
Dana Jansens
648c55b829 move the focus_order lists into the kernel 2003-03-19 07:08:15 +00:00
Dana Jansens
597fad9d8d add focus actions 2003-03-19 06:01:06 +00:00
Dana Jansens
4bcd03b2d0 mouse and key bindings plugins work. segfault somewhere still on shutdown 2003-03-19 04:16:19 +00:00
Dana Jansens
51b93d9c4c reset focus to root before exiting 2003-03-19 01:01:57 +00:00
Dana Jansens
7d215bd255 add 'grab_server' for grabbing .. the .. server! 2003-03-18 20:00:44 +00:00
Dana Jansens
598c5d6c07 provide functions for grabbing and ungrabbing the keyboard and pointer 2003-03-18 19:51:56 +00:00
Dana Jansens
a91a6f97da kill some whitespace 2003-03-18 09:10:48 +00:00
Dana Jansens
77a46782db kill a comment 2003-03-18 09:10:35 +00:00
Dana Jansens
77bd016628 dont set the focused client if it's already set 2003-03-18 09:08:55 +00:00
Dana Jansens
6e29605d41 send the right client for unfocus events 2003-03-18 08:48:14 +00:00
Dana Jansens
002bf5e7e6 send unfocus events after focus events 2003-03-18 08:41:50 +00:00
Dana Jansens
ad44e8a708 add actions for key/mouse bindings etc 2003-03-18 08:39:28 +00:00
Dana Jansens
bfea000a74 add a keyboard plugin 2003-03-18 05:29:01 +00:00
Dana Jansens
4ed3fb8915 plugins work.
start a focus plugin.
2003-03-18 03:11:55 +00:00
Dana Jansens
8886f1109d make sure theres always a client for client events 2003-03-17 22:13:06 +00:00
Dana Jansens
ccc5f02051 oops missing a */ 2003-03-17 22:12:26 +00:00
Dana Jansens
21c1cd4cb6 fix comments 2003-03-17 22:12:05 +00:00
Dana Jansens
df3d926cb2 rming almost all the old python stuffs 2003-03-17 22:04:20 +00:00
Dana Jansens
75b07a2bb3 all events are dispatched 2003-03-17 20:16:32 +00:00
Dana Jansens
9b33f7ded6 stop using python internally. add an event dispatcher 2003-03-17 19:54:37 +00:00
Dana Jansens
698b9a0998 dont skip ungrab corssing events 2003-03-17 06:34:12 +00:00
Dana Jansens
1fae0f4df3 declare variables first! 2003-03-17 02:12:00 +00:00
Dana Jansens
7f561a6a7a make client_showhide a static function 2003-03-17 02:05:05 +00:00
Dana Jansens
216a04bdd0 speed up workspace switching by causing the minimal number of expose events (none for the hiding windows!) 2003-03-17 02:03:45 +00:00
Dana Jansens
432ac0983e give engines mouse event notifications. make the openbox engine display pressed buttons 2003-03-17 01:47:20 +00:00
Dana Jansens
3b0b41ba81 pixmap button masks work (hardcoded) 2003-03-17 01:15:17 +00:00
Dana Jansens
bb3e654ede will draw fonts when stop segging 2003-03-16 23:45:25 +00:00
Dana Jansens
7f590e5360 pointer's variables are config vars 2003-03-16 23:15:20 +00:00
Derek Foreman
9ecdf13b8d added font_startup 2003-03-16 22:35:55 +00:00
Dana Jansens
f8a47de5ec merge the C branch into HEAD 2003-03-16 21:11:39 +00:00