Commit graph

395 commits

Author SHA1 Message Date
Dana Jansens
083f2f5d5d add focusLast and focusLastOnDesktop options in the [focus] section of the rc3. allows more customizaton of the focus model. default to click-focus style. add handling for focus cycling when nothing on the desktop is focused. 2003-04-07 22:29:40 +00:00
Dana Jansens
2dac2cc01b ignore inferior enternotifies
add anotehr focusdebug print
2003-04-07 22:27:02 +00:00
Dana Jansens
5f53cd5fb8 check for new windows always being onscreen.
rename the client pointer to self in teh manage unmanage functions for consistancy
2003-04-07 22:26:31 +00:00
Dana Jansens
7613d4d8ec rm debug prints 2003-04-07 22:25:33 +00:00
Dana Jansens
a25b19a17f support for transients of groups 2003-04-07 08:45:52 +00:00
Dana Jansens
e6cc69ca04 support for transients of groups 2003-04-07 08:43:33 +00:00
Dana Jansens
3cbf5bfa7c missed one 2003-04-07 07:29:49 +00:00
Dana Jansens
2eb4d79326 put focus messages in ifdefs 2003-04-07 07:29:00 +00:00
Dana Jansens
79ddf91839 remove debug print 2003-04-07 07:28:06 +00:00
Dana Jansens
5f42ecfacb track window groups
iconify all its transients when a window is iconified
2003-04-07 05:47:20 +00:00
Dana Jansens
db086ef336 put focus_cycle into focus.c, use it there in the action. improved it as well to handle odd cases like modal windows. added functions to client.c which are needed by the focus cycling routine. 2003-04-07 03:46:41 +00:00
Dana Jansens
1f775fdd86 grab the other device in Sync for button/key grabs 2003-04-07 03:43:53 +00:00
Dana Jansens
d498522a56 dont toggle when no client was passed to teh action 2003-04-06 18:40:10 +00:00
Dana Jansens
d43a109ba2 nm that, pointless... 2003-04-06 18:38:51 +00:00
Dana Jansens
d1913d1d01 disable keyboard and mouse input while ob is starting or exiting 2003-04-06 18:18:55 +00:00
Dana Jansens
70e4138169 print the error when the engine cant load 2003-04-06 17:42:11 +00:00
Dana Jansens
ee2368044d clean up the module if load() fails 2003-04-06 08:25:35 +00:00
Dana Jansens
c42314ec44 add a coords popup for moving and resizing 2003-04-06 06:16:46 +00:00
Dana Jansens
b31eb83f04 add ()'s to the macros for more safety 2003-04-06 06:16:34 +00:00
Dana Jansens
6016ff8658 add the ability to render and size text labels for non-window-decorations 2003-04-06 06:16:19 +00:00
Dana Jansens
aa26b219ec make NLIMC the default titlebar layout 2003-04-06 00:09:51 +00:00
Dana Jansens
d6f9bc953a allow specifying that some focus events should be ignored for the focus order list 2003-04-05 22:56:10 +00:00
Dana Jansens
ec4e24a422 stacked and linear cycling 2003-04-05 22:44:50 +00:00
Dana Jansens
7ebc5c797f linear focus cycling of the gods 2003-04-05 22:20:14 +00:00
Dana Jansens
3778846122 typo 2003-04-05 21:49:55 +00:00
Dana Jansens
3d0ba381db put it back 2003-04-05 21:40:47 +00:00
Dana Jansens
e38b27fcce make unfocus really unfocus everything 2003-04-05 21:36:37 +00:00
Dana Jansens
3921ce3067 dont default to NULL for the engine name 2003-04-05 20:56:02 +00:00
Dana Jansens
06356d337c add engine options to the new rc file 2003-04-05 20:53:45 +00:00
Dana Jansens
bd12517c61 add focus options to the new rc file 2003-04-05 20:47:16 +00:00
Dana Jansens
cbbf90a718 change how rc parsing will work. a=b will be parsed in any [section] and given to a separate parsing callback. no more general config infrastructure needed/ 2003-04-05 20:27:03 +00:00
Dana Jansens
bca8082d6d use a context enum instead of quarks 2003-04-05 17:22:01 +00:00
Dana Jansens
d77ac21a62 reorder startup so that grabs are set up before parsing teh rc 2003-04-04 22:47:36 +00:00
Dana Jansens
68ff2eb3d2 add the keyboard plugin into the build systems
keyboard bindings are parsed from the rc file
2003-04-04 20:19:12 +00:00
Dana Jansens
59621c4f41 more using of new token struct 2003-04-04 19:02:22 +00:00
Dana Jansens
e2c3582a5c use new token structs. free token lists. 2003-04-04 19:01:25 +00:00
Dana Jansens
5da148530e attempting to parse lists 2003-04-04 18:59:25 +00:00
Dana Jansens
e974208068 allow '-' in identifiers 2003-04-03 22:16:49 +00:00
Dana Jansens
b66b0ef95a use the values from the yacc parser 2003-04-03 21:17:50 +00:00
Dana Jansens
ce901a2341 more build fixes, calling the other makefiles instead of including them 2003-04-03 21:02:13 +00:00
Dana Jansens
2d81fb038b try accomidate more versions of bison 2003-04-03 15:36:43 +00:00
Dana Jansens
9084ca41a5 more build fixes 2003-04-03 15:09:24 +00:00
Dana Jansens
400003f4f3 double break statements :) oops 2003-04-03 14:17:26 +00:00
Dana Jansens
d447dc0f59 new build system without automake 2003-04-03 05:59:03 +00:00
Dana Jansens
c84b844e94 BLEF HATE DIE 2003-04-02 19:32:58 +00:00
Dana Jansens
9dd43bb296 bison doesnt use y.tab.* 2003-04-02 19:30:47 +00:00
Dana Jansens
67bbd6970c rename the parse.yacc to parse.y 2003-04-02 19:25:41 +00:00
Dana Jansens
fadc760c66 make parse.h depend on y.tab.h 2003-04-02 19:15:20 +00:00
Dana Jansens
87fbee961f this should seriously work 2003-04-02 18:54:56 +00:00
Dana Jansens
089a7320ff undo that 2003-04-02 18:37:28 +00:00
Dana Jansens
c561ee4c7f ignore new lex/yacc gen'd files 2003-04-02 17:22:23 +00:00
Dana Jansens
8dd9a7c7fb don't include the y.tab.h inside the yacc file 2003-04-02 17:21:59 +00:00
Dana Jansens
fa741bc010 add y.tab.h to the headers so the yacc shit runs 2003-04-02 17:21:21 +00:00
Dana Jansens
7820ca56ab rm the generated files on clean 2003-04-02 17:15:03 +00:00
Dana Jansens
8fe4e3e8d7 wrong .h for the make rule 2003-04-02 17:08:01 +00:00
Dana Jansens
8887584efa deps the lex h on the c 2003-04-02 17:03:39 +00:00
Dana Jansens
71c8b0b7b2 create a generic tokenizer/sectionizer for the config file. pass off the token to functions registered for each section to parse them further. some fixes for the engine irt font shadows, and fixed a bug with rendering the iconify button when it was not in the layout 2003-04-02 07:46:46 +00:00
Dana Jansens
b10b31feb8 rm debug print 2003-04-02 06:31:04 +00:00
Dana Jansens
4398c7c168 add a shaded button 2003-03-31 22:58:54 +00:00
Dana Jansens
abbb454a29 only disallow shading when the function is not enabled, dont disallow unshading 2003-03-31 20:24:56 +00:00
Dana Jansens
a048c4302a disallow resizing of windows which are shaded 2003-03-31 20:19:59 +00:00
Dana Jansens
0327c5a778 use the frame's position in the maximize function since they're converted to the client coords before getting to client_configure 2003-03-31 07:51:04 +00:00
Dana Jansens
8d19206866 was not using the pointer properly. leaving the value untouched 2003-03-31 07:49:40 +00:00
Dana Jansens
8fbc68d46d set fullscreen and max positions properly for all gravities 2003-03-31 07:22:19 +00:00
Dana Jansens
695520283d rm a no-longer-valid comment 2003-03-31 06:46:19 +00:00
Dana Jansens
e6818c741c yet more haxes to make focus events work the way i want. this is rough shit. 2003-03-31 06:36:59 +00:00
Dana Jansens
a6d9be4f66 yet more focus fixings. RevertToPointerRoot could mess things up focusing a client and us ignoring the FocusIn of Pointer type. this is all handled now. 2003-03-30 22:58:04 +00:00
Dana Jansens
2135d9e2fd make SendToDesktop action work right, give the option of following 2003-03-29 21:18:20 +00:00
Dana Jansens
b6b514c477 rm a redundant actiondata struct 2003-03-29 20:59:20 +00:00
Dana Jansens
2309520b48 no //'s plz 2003-03-29 20:57:18 +00:00
Dana Jansens
5c472be0b3 translate sendtodesktop actions 2003-03-29 20:57:03 +00:00
Dana Jansens
56713e45fb create the dirs for themes in ~/.openbox on startup 2003-03-29 19:47:01 +00:00
Scott Moynes
a116f2c631 Menu data structures basically completed.
Need the engine support still, parser, and controllers.
2003-03-29 03:18:11 +00:00
Dana Jansens
9d136ab798 add unshaderaise and shadelower actions from Mikachu 2003-03-29 00:58:50 +00:00
Dana Jansens
f154f7b548 add a var to track errors 2003-03-29 00:48:52 +00:00
Dana Jansens
475fb805f2 don't die when someone else has a key grabbed 2003-03-29 00:48:32 +00:00
Dana Jansens
8ac5a60322 rm client_disable_decorations.. it already had an action.
add the action to the action_from_string func
2003-03-28 23:02:57 +00:00
Dana Jansens
8fb10d8d87 add client_disable_decorations 2003-03-28 22:59:26 +00:00
Dana Jansens
3e8ecbeefa onlt raise the window when sending to a desktop it wasnt already on 2003-03-28 11:17:52 +00:00
Dana Jansens
69177d8760 FocusOut's are NOT ignored. thats bullshit. fixing comment. 2003-03-28 11:14:20 +00:00
Dana Jansens
76943cdfe0 focus... works...? i have all cases of mozilla working, with RevertToPointerRoot sucking ass but.. working now. 2003-03-28 11:05:38 +00:00
Dana Jansens
0fcd4c30cc RevertToPointerRoot is the worse error case, so use it always 2003-03-28 10:47:48 +00:00
Dana Jansens
4d65fe35ff comment why NotifyAncestor is not ignored 2003-03-28 10:46:25 +00:00
Dana Jansens
5895fa84ac yet MORE focus events reworkings. mozilla behaves now too. woot 2003-03-28 10:44:22 +00:00
Dana Jansens
cc813ed698 make the value boolean 2003-03-28 10:02:21 +00:00
Dana Jansens
32808b53a5 more focus cleanups. ignored focusin's were not working right recursively.
also, when the focusin coming later is not for a valid window the fallback would not be called. both fixed.
2003-03-28 09:57:48 +00:00
Dana Jansens
ca40e8b9ec add resizing event 2003-03-28 09:33:40 +00:00
Dana Jansens
b749cd5ec4 was not moving the window between desktop focus lists sometimes. bad news. now i always do. yay! 2003-03-28 08:23:18 +00:00
Dana Jansens
4bd182605c killa debug print 2003-03-28 08:22:46 +00:00
Dana Jansens
96a81e8837 handle better the case of choosing the window to focus but it is already focused when switching desktops 2003-03-28 08:21:38 +00:00
Dana Jansens
beb489feeb comment the new parameter 2003-03-28 08:11:55 +00:00
Dana Jansens
92bea590c0 let a window be 'moved' to a new desktop without actually show/hiding it. useful for sending a window when following it, so theres no flash/flicker 2003-03-28 08:11:02 +00:00
Dana Jansens
42bbf005c8 oops that worked before i borked it bad 2003-03-28 08:06:23 +00:00
Dana Jansens
e1e3974c86 frame is a pointer 2003-03-28 07:54:48 +00:00
Dana Jansens
63bbbaefc7 dont die if a non-visible window is raised/lowered 2003-03-28 07:50:35 +00:00
Dana Jansens
66969a6ba5 make better? 2003-03-28 04:32:37 +00:00
Dana Jansens
ad4062833d sync after focusing 2003-03-28 04:12:23 +00:00
Dana Jansens
f8fb32b159 make these things one 'command' without braces 2003-03-28 04:11:17 +00:00
Dana Jansens
69abb86cb0 dont lower below lower layers 2003-03-28 03:22:23 +00:00
Dana Jansens
38c776bd4e use the struts to size the window correctly for maximized windows 2003-03-28 03:18:08 +00:00
Dana Jansens
91fed61884 read struts properly 2003-03-28 03:02:35 +00:00
Dana Jansens
5e3ab28bab skip better 2003-03-28 01:29:25 +00:00
Dana Jansens
1593473d6e skip comments and empty lines 2003-03-28 01:28:50 +00:00
Dana Jansens
e7d225b84a only use the initial_state shit when NOT starting and when managing the window 2003-03-28 01:25:51 +00:00
Dana Jansens
045c4f035c rm a bunch of prints. make switching to an empty desktop not kill focus 2003-03-28 01:14:22 +00:00
Dana Jansens
c7e818abd7 dont focus !normal windows on enter events 2003-03-28 01:13:56 +00:00
Dana Jansens
07a52aeaff mor fabulous focus fixings.
RevertToNone so that when the fallback stuff goes the window wont already have focus cuz it has the pointer in to
2003-03-28 00:27:35 +00:00
Dana Jansens
52d4433a00 fallback focus in superior fashion 2003-03-28 00:25:10 +00:00
Dana Jansens
6778db7392 better var naming 2003-03-28 00:17:10 +00:00
Dana Jansens
b23c66afd1 dont rm focus when i actually found something to fall back to with the pointer 2003-03-28 00:16:36 +00:00
Dana Jansens
c3a2684e02 watch for FocusIn's for unknown clients 2003-03-27 23:39:20 +00:00
Dana Jansens
6b52a86dc6 rm the focus plugin 2003-03-27 23:13:46 +00:00
Dana Jansens
3139c3c713 missed the end of a comment 2003-03-27 23:12:42 +00:00
Dana Jansens
bf32b376b5 handle focus in the kernel, no more plugin 2003-03-27 23:10:22 +00:00
Dana Jansens
eee483bb47 add code to fallback focus 2003-03-27 23:07:47 +00:00
Dana Jansens
8cc7c8b430 focus a window on desktop switch 2003-03-27 23:05:54 +00:00
Dana Jansens
ebab4adb85 add focus options 2003-03-27 23:04:04 +00:00
Dana Jansens
2fc662aa62 set the last time to CurrentTime for events that don't have time stamps 2003-03-27 20:28:06 +00:00
Dana Jansens
e0170fe181 rm debug print 2003-03-27 19:05:16 +00:00
Dana Jansens
f29dd7e0cd not using CurrentTime anywhere 2003-03-26 15:02:08 +00:00
Dana Jansens
1d5fa24e4b use CurrentTime again? 2003-03-26 14:39:14 +00:00
Dana Jansens
4f101c1fb4 ungrab with currenttime 2003-03-26 14:10:01 +00:00
Dana Jansens
106d5630bf use the last event timestamp when focusing the focus_backup 2003-03-26 14:06:55 +00:00
Dana Jansens
dffe960084 comment that the relative move/resize amounts need to be set 2003-03-26 13:14:50 +00:00
Dana Jansens
1a32ba561a split up the relative move/resize actions into horz/vert 2003-03-26 13:13:45 +00:00
Dana Jansens
9eeb13ec71 create actions from string names 2003-03-26 12:53:04 +00:00
Dana Jansens
68fdcde19b let a be null for action_free 2003-03-26 12:28:20 +00:00
Dana Jansens
a6815038d6 use g_warning not printf 2003-03-26 12:12:33 +00:00
Dana Jansens
093c4cb710 kill the prints again for now 2003-03-26 09:47:08 +00:00
Dana Jansens
ac735b647c dont print bad window errors 2003-03-26 09:05:58 +00:00
Dana Jansens
cc844c5794 put back map/unmap msgs 2003-03-26 09:05:49 +00:00
Dana Jansens
0c69d23c24 dont let you got to numdesktops+1 2003-03-26 08:29:34 +00:00
Dana Jansens
7c6c4984b3 rm the debug print 2003-03-26 08:23:05 +00:00
Dana Jansens
a1e450ee69 kill debug prints 2003-03-26 08:18:50 +00:00
Dana Jansens
b48c0e0b47 oops 2003-03-26 08:00:56 +00:00
Dana Jansens
f24116de75 rm some debug prints 2003-03-26 07:59:05 +00:00
Dana Jansens
059fa15ae1 use ungrab enter events 2003-03-26 07:07:55 +00:00
Dana Jansens
fef5d0d9bc use rgba icons for clients 2003-03-26 05:36:18 +00:00
Dana Jansens
647b4ff43f check for no client 2003-03-26 04:56:37 +00:00
Dana Jansens
3da099721e new output file from flex 2003-03-26 04:23:57 +00:00
Dana Jansens
37a9456f87 usnig flex directly, renaming symbols so that theres no clash with other lexers 2003-03-26 04:23:17 +00:00
Dana Jansens
5038e82085 free the string for action_restart too 2003-03-26 03:36:39 +00:00
Dana Jansens
4840f7e837 print a warning when a module fails to open 2003-03-26 01:41:06 +00:00
Dana Jansens
9be1d64d36 dont change desktop when its out of range 2003-03-25 23:59:50 +00:00
Dana Jansens
c9a35f0b81 typo 2003-03-25 02:20:16 +00:00
Dana Jansens
5722e9e98d dont accept MapRequest's for !iconic windows 2003-03-25 02:18:19 +00:00
Dana Jansens
bdf1662af2 clarify using stacking_lower for restoring the stacking order 2003-03-25 00:54:47 +00:00
Dana Jansens
d286702ed4 free the startup stacking order after using it 2003-03-25 00:44:27 +00:00
Dana Jansens
e731042dc9 read in the stacking order on startup, and use it to restore windows back to the order they were in before 2003-03-25 00:39:28 +00:00
Dana Jansens
990b74a49e dont change the stacking order hint while shuting down 2003-03-25 00:38:55 +00:00