Commit graph

312 commits

Author SHA1 Message Date
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
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