Commit graph

2864 commits

Author SHA1 Message Date
Dana Jansens
5563e251c3 Merge branch 'backport' into work 2008-01-31 17:32:37 -05:00
Dana Jansens
6a3ac556b9 when checking that a window is onscreen, if there are screens with higher indices than where it appeared, they would trump things and force the window onto the first screen. now, only assume the window is on no screens if it actually is on no screens 2008-01-31 17:31:51 -05:00
Dana Jansens
e0c1978c51 generalize the window managing process into window_manage, which handles dock apps and the like 2008-01-31 16:50:54 -05:00
Dana Jansens
45e2039a58 unlink the log file when opening it so you get a new file 2008-01-31 12:54:52 -05:00
Mikael Magnusson
e0eb926ac2 Fix a memleak. (unref ObtPaths) 2008-01-31 12:54:51 -05:00
Dana Jansens
a21840cbb7 make ob_debug use the g_log system, and make openbox log messages to..a log file ! this will help everyone since most people do not run openbox in a terminal.. 2008-01-31 12:54:51 -05:00
Dana Jansens
20b8fcfa33 Merge branch 'backport' into work
Conflicts:

	openbox/client.c
	openbox/config.c
	openbox/event.c
	openbox/extensions.c
	openbox/focus_cycle_indicator.c
	openbox/focus_cycle_popup.c
	openbox/menuframe.c
	openbox/moveresize.c
	openbox/openbox.c
	openbox/screen.c
	openbox/stacking.c
	openbox/startupnotify.c
2008-01-31 12:51:38 -05:00
Dana Jansens
dc94a241c3 don't deiconify windows on reconfigure if they cant be iconified directly. stop managing windows in reverse order on restart it messes up the dock among other things 2008-01-31 12:26:22 -05:00
Dana Jansens
33131761db don't check for the root window in the window hash tables. waste of cpu 2008-01-31 12:26:22 -05:00
Mikael Magnusson
a0acc01f2c Fix a typo that broke transient window hints. 2008-01-31 12:25:31 -05:00
Dana Jansens
d81c4be600 don't assert when you window_find(0)/dockapp_find(0), just return 0 2008-01-31 12:25:31 -05:00
Dana Jansens
8b23b1a5b4 put openbox saved sessions in CACHE_HOME not DATA_HOME. more correct! i think. 2008-01-31 12:25:31 -05:00
Dana Jansens
52369e319f simplify window.h macros, and rename the window types to ObWindowClass for consistent name style 2008-01-31 12:25:31 -05:00
Dana Jansens
73c9a0e06b make an obt_root() macro 2008-01-31 12:25:31 -05:00
Dana Jansens
46cf95d36b make menu event handling work more like how other events are handled, less special-casey 2008-01-31 12:25:30 -05:00
Dana Jansens
29637976e6 make the window.h interface more consistent with the rest of openbox, hide the window_map behind some functions, and make obdockapps not obwindows anymore 2008-01-31 12:25:30 -05:00
Dana Jansens
d11ac82062 don't deiconify windows on reconfigure if they cant be iconified directly. stop managing windows in reverse order on restart it messes up the dock among other things 2008-01-31 11:23:43 -05:00
Dana Jansens
e7e02728a3 reordering things when mapping windows a little to work with iconified windows with iconified toolbars on restart. (e.g. ooffice) 2008-01-28 00:30:44 -05:00
Dana Jansens
3b48aa4ea2 fix a rare assert condition (window maps in iconic state but is not allowed to be iconic) 2008-01-27 23:38:28 -05:00
Mikael Magnusson
d783705141 Change <placeOn> to <monitor>. 2008-01-27 21:03:55 +01:00
Dana Jansens
dd740b5562 replace the <active> placement option with <placeOn>active/mouse/any</placeOn> 2008-01-27 11:31:23 -05:00
Dana Jansens
d409936faa get rid of copying the rrappearances for each menu frame, except for the one that is actually useful 2008-01-27 04:59:39 -05:00
Dana Jansens
a4d13100e6 use setenv/unsetenv instead of putenv, cuz they are not ugly and confusing wrt memory leaks 2008-01-27 04:25:09 -05:00
Dana Jansens
3a03a554f0 window a window stops responding to pings, don't use the xsync protocol while resizing it - its not going to be responding to it anyways 2008-01-27 03:17:50 -05:00
Dana Jansens
ee0477d167 only store icons for windows that are 64px or smaller, as we don't have need for any bigger icons at this time. unless they only provide icons bigger than that, then just store one of them (the smallest) 2008-01-27 03:14:35 -05:00
Dana Jansens
6be65a7ddd we alloc theme elements for every window frame, but really it is unneccesary 2008-01-27 02:53:26 -05:00
Dana Jansens
dd8cb753c1 add a missing #include 2008-01-27 02:41:21 -05:00
Dana Jansens
8af80aa8dd when ignoring enter events, only ignore up to the current serial (NextRequest()-1). Don't ignore enters that come after this with the next serial. 2008-01-27 02:39:39 -05:00
Dana Jansens
4307366b71 create fake enter events for button press bindings. only swallow enter events when focus.undermouse is not on (for non-mouse actions) 2008-01-27 02:39:39 -05:00
Mikael Magnusson
2c05d1fb52 Add a few missing includes and remove a stray debug printf. 2008-01-26 18:48:35 +01:00
Dana Jansens
be71b344fa only add borders and stuff to the dock's size if it is holding anything. otherwise it gets a non-zero size which messes with resistence/placement/etc 2008-01-26 01:17:56 -05:00
Dana Jansens
1c2ec09e43 fix a memleak in client_update_icon_geometry 2008-01-25 10:32:39 -05:00
Dana Jansens
01a60706be fix a mem leak 2008-01-25 10:29:49 -05:00
Dana Jansens
7b181fe23d fix a mem leak 2008-01-25 10:27:44 -05:00
Dana Jansens
41aeb42af1 Create fake enter events in fewer situations - avoiding times that you don't actually want them. Ignore event serials without using XSync, so that we aren't doing an XSync 100 times per minute - slow! 2008-01-25 10:21:24 -05:00
Mikael Magnusson
1d9991a0cd Fix some memleaks.
missing RrFontClose for osd_font in two places.
missing a g_free(area);
2008-01-25 13:29:46 +01:00
Dana Jansens
3febcbb9ae skip enter events caused by temporarily raising windows during alt-tab. also caused by the focus cycle indicator moving 2008-01-25 00:48:45 -05:00
Dana Jansens
bed3cb7a30 strip non-modifier masks from the keyboard state for keyreleases when xkb is present too 2008-01-24 20:19:33 -05:00
Dana Jansens
f476442531 print a warning when the session has a different number of desktops than the openbox config 2008-01-22 13:01:56 -05:00
Dana Jansens
1b33ab6c0d use the <wmclass> for startup notfication in the execute action. when present don't use the check against the binary. 2008-01-21 22:27:03 -05:00
Dana Jansens
b77a03a1f2 only unset the startup_desktop_id once, and dont free the string we pass to putenv 2008-01-20 18:34:26 -05:00
Dana Jansens
6a8a8531ba check them startupnotify-provided wmclass against both parts of a window's wm_class hint, as the spec doth say so. 2008-01-20 09:52:10 -05:00
Dana Jansens
ea481338b5 make the obt library branch compile again with all the changes merged in from backport 2008-01-20 01:36:56 -05:00
Dana Jansens
700b2c0aec make the mainloop not depend on an X display, and make it uses the obt_display automatically 2008-01-20 01:36:56 -05:00
Dana Jansens
07d5674d39 move the xdg path stuff into obt/paths.[ch], and make render and openbox use it 2008-01-20 01:36:55 -05:00
Dana Jansens
1a0a1626b6 small api change for parsing 2008-01-20 01:36:55 -05:00
Dana Jansens
2e8c9a13d4 was using random memory for parsing pipe menus with the new parse api 2008-01-20 01:36:55 -05:00
Dana Jansens
c22e6012d1 fix constness 2008-01-20 01:36:55 -05:00
Dana Jansens
6653c9db22 s/xmlChildrenNode/children/ 2008-01-20 01:36:55 -05:00
Dana Jansens
edeb0a2727 add obt_parse_tree_from_root and use it, cuz it's nice 2008-01-20 01:36:55 -05:00