Commit graph

20 commits

Author SHA1 Message Date
Dana Jansens
bcfe59fce2 Fix some compiler warnings
Void function should actually be declared void. Not-reached switch
condition should still return something.
2013-08-11 14:43:23 -04:00
Dana Jansens
6eb740cf11 Allow window matching based on the group leader's name and class (Fix bug 5721)
In Openbox 3.4 we used the group leader's WM_CLASS value when it was available.
This prevents windows in the group from overriding with a specific value,
however which is bad. More rationale can be found in
http://icculus.org/pipermail/openbox/2010-September/006790.html

Some applications (eg. Firefox) use command line flags to set the WM_CLASS
property on the group leader but do not change the property on the mapped
windows themselves. This makes matching these windows not possible in Openbox
3.5.

We resolve this by exposing the group's WM_CLASS values alongside the individual
window's values. We add _OB_APP_GROUP_NAME and _OB_APP_GROUP_CLASS properties
along with "groupname" and "classname" attributes for the rc.xml application
tag.
2012-10-06 21:56:56 -04:00
Dana Jansens
aa15563fee Propagate _NET_WM_WINDOW_OPACITY to the frame window (bug #5132) 2011-10-16 18:51:51 -04:00
Dana Jansens
5d5714f01e Handle STRING and COMPOUND_TEXT type text properties.
STRING should be latin1 text (plus TAB and LF)
COMPOUND_TEXT should be encoded in the current locale.
2011-01-24 14:19:21 -05:00
Dana Jansens
5450618297 avoid new gcc warning (casting ** to const** is not valid for good reason) 2010-05-17 19:31:57 -04:00
Dana Jansens
6cf3357036 allow app rules to match windows by their title when mapping
and save the title in the _OB_APP_TITLE property
2010-01-14 18:41:21 -05:00
Dana Jansens
567fd15eeb Merge branch 'backport' into work
Conflicts:

	configure.ac
	data/rc.xml
	openbox/client.c
	openbox/event.c
	openbox/focus_cycle.c
	openbox/focus_cycle_popup.c
	openbox/openbox.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	parser/parse.c
	version.h.in
2010-01-11 16:20:53 -05:00
Dana Jansens
acafa38c8e Merge branch 'backport' into work
Conflicts:
	openbox/config.c
	openbox/event.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	openbox/screen.h
2009-12-11 19:02:11 -05:00
Mikael Magnusson
e6fea24575 Merge branch 'backport' into work
Conflicts:
	openbox/client.c
	openbox/prop.c
	openbox/prop.h
2008-10-27 00:58:56 +01:00
Dana Jansens
97de737767 Merge branch 'backport' into work
Conflicts:

	openbox/menuframe.c
	openbox/prompt.c
	openbox/prop.c
	openbox/prop.h
2008-02-22 12:31:26 -05:00
Mikael Magnusson
0ffd1ccc47 () -> (void) 2008-02-15 16:21:35 +01:00
Dana Jansens
db49122dec Merge branch 'backport' into work
Conflicts:

	openbox/frame.c
	openbox/menuframe.c
2008-02-15 10:03:55 -05:00
Dana Jansens
0dc7eca4cd Merge branch 'backport' into work
Conflicts:

	openbox/client.c
	openbox/event.c
	openbox/mouse.c
	openbox/openbox.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	parser/parse.c
	parser/parse.h
2008-02-02 11:37:35 -05:00
Mikael Magnusson
90ca468efa Use the # directive to simplify defines. 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
c22e6012d1 fix constness 2008-01-20 01:36:55 -05:00
Dana Jansens
fdabb69f4f update openbox to use the current parser interface in libobt
there is also some random bug fixes for other libobt stuff in here.
2008-01-20 01:36:55 -05:00
Dana Jansens
2f0e73cf9d add functions for setting locale strings (on top of existing functions for setting utf8 strings). they are untested though! wonder if they work? 2008-01-20 01:36:55 -05:00
Dana Jansens
0fcf5ead0f make openbox use the obt prop.c/h stuff
holy search and replace batman
2008-01-20 01:36:54 -05:00
Dana Jansens
6c8acc079a add prop.[ch] to the libobt, but they are not used yet. add a global obt_display which obt can use, and the application. 2008-01-20 01:36:54 -05:00