Commit graph

4756 commits

Author SHA1 Message Date
Dana Jansens
d638272782 change version to 3.4, i think that will be next release number? and reset the libraries binary ages stuff, cuz they aren't backwards compatible with the last release. 2007-03-11 17:36:27 +00:00
Dana Jansens
7229bea3c6 client_configure_full is trying to move a window, it shouldn't determine the window's monitor from its current position, but from the new position instead. move client_monitor()'s logic into screen, more generically, and let client_configure_full use that 2007-03-11 17:34:07 +00:00
Dana Jansens
fe31716486 fallback to transient parents properly 2007-03-11 17:05:07 +00:00
Dana Jansens
62a39c4c70 stacking has been made more reliable with groups and group transients.
this was a pretty invasive change in client.c though, so it may break things?

it did expose some bugginess in client_calc_layer, which is now better than ever, hopefully there isn't more to be found.
2007-03-11 16:58:19 +00:00
Mikael Magnusson
1ff3c1dd9d note things in CHANGELOG and mark xml theme entry as maybe 2007-03-11 15:52:52 +00:00
Mikael Magnusson
c5d2a9bc98 allow setting startupnotify per execute action, default to disabled. use like this: <action name="execute"><execute>program</execute><startupnotify><enabled>true</enabled><name>something descriptive</name><icon>name of an icon in the icon theme to show</icon></startupnotify</action> 2007-03-11 15:41:47 +00:00
Dana Jansens
923e0edfa8 look for more things to cancel startup notification on, from the wmclass. if the wmclass is related to the name or the binary name, then it will cancel it also. this is so that oldschool stuff doesn't thing its opening forever. 2007-03-11 14:31:11 +00:00
Dana Jansens
2c98204dfe make _NET_ACTIVE_WINDOW requests look at the timestamp when the user didn't
request it
2007-03-11 14:17:14 +00:00
Dana Jansens
6a61f0c433 fix non instrusive stacking adds, they didnt account for layers at all 2007-03-11 14:16:24 +00:00
Dana Jansens
aaabb13c0a add _NET_WM_FULL_PLACEMENT, cuz openbox does do placement, even tho it can be sucky right now, lol. but it's good for dialogs and stuff, which is what this is talking about.
also add _NET_WM_MOVERESIZE_CANCEL.
2007-03-11 05:00:56 +00:00
Dana Jansens
19b480058e wow... this is a big commit...
all related to _NET_WM_USER_TIME and focus stealing prevention

a) add launcher startup notification. this means when you run something from
   the openbox menu or a key/mouse binding, that startup notification will go
   on in openbox and other applications like your panel or something
b) add the _NET_WM_USER_TIME property for windows
c) use the _NET_WM_USER_TIME data and startup notification to prevent focus
   stealing.
d) cookie party !! ! all are invited.
e) oh yeah, and pass around timestamps for a lot more things. like, when you
   run an action, send the timestamp for the event that is running the action.
   this is important for startup notification. this also affects menus.
f) yes.. cookies..

would it be a good idea to disable focus stealing prevention if a window takes
too long to load? i mean.. maybe after a certain length of time, a user can't be
expected to not do anything in any other windows, but would they still want the
new application to focus then? HMM. open question i guess..
2007-03-11 04:44:15 +00:00
Dana Jansens
9d6e390765 add the _NET_WM_USER_TIME property support. When focus_new is enabled, don't focus new windows if the user is doing something in another window since it launched. If we can tell when it launched, either from the _NET_WM_USER_TIME or from startup notification. 2007-03-11 02:06:34 +00:00
Dana Jansens
bd19fd06db remove the kde icon hint, they use the EWMH icon now 2007-03-11 00:59:13 +00:00
Dana Jansens
35ab1264ee remove the kde frame extents property, add the _NET_FRAME_EXTENTS property in its stead 2007-03-11 00:12:37 +00:00
Dana Jansens
8c9b2e8f17 >:| I put old code back somehow.. thanks mika. hooray peer review :) 2007-03-11 00:00:05 +00:00
Dana Jansens
f6265e82e6 1) Remove support for the Urgent hint. This will no longer do anything within Openbox
2) Add support for _NET_WM_STATE_DEMANDS_ATTENTION. Yay!
2007-03-10 23:57:33 +00:00
Dana Jansens
ccebe3c441 skip windows in alt-tab that have SKIP_PAGER set. perhaps this is a better metric.. also this is for mikachu <3 2007-03-10 23:09:27 +00:00
Dana Jansens
42c6cdd0c8 people have started using SKIP_TASKBAR, and it's not for stuff you don't want to be able to alt-tab to. so don't put that in here anymore. 2007-03-10 23:03:08 +00:00
Dana Jansens
ec67e96583 make startup notification a little more robust. obconf is just broken, between
the application and it's .desktop.
2007-03-10 22:52:50 +00:00
Dana Jansens
3f7ad89510 let windows move themselves off the screen somewhat, but don't let them resize themselves off the screen (unless they're moving too) 2007-03-10 22:24:47 +00:00
Dana Jansens
49dd40d99f no longer honor transient_for = None or Root. it violates the ICCCM and is causing problems. there are proper ways to make group transient windows with the EWMH. 2007-03-10 20:52:04 +00:00
Dana Jansens
1fdb434f5d add grouptran test, which will actually not make valid transient windows
add missing include to title.c
2007-03-10 20:50:49 +00:00
Mikael Magnusson
fe0e870179 Update with all important changes 2007-03-10 10:26:50 +00:00
Mikael Magnusson
ec172ab490 some more stuff 2007-03-10 10:22:30 +00:00
Mikael Magnusson
84f97ecd58 at least the CHANGELOG file gets some updates 2007-03-10 10:21:17 +00:00
Mikael Magnusson
1897c9dd4f yet another pointless commit to test post-commit hook 2007-03-10 10:19:15 +00:00
Mikael Magnusson
c7b34a5f29 another pointless commit to test post-commit hook 2007-03-10 10:16:32 +00:00
Mikael Magnusson
f16087ed8b pointless commit to test post-commit hook 2007-03-10 10:10:20 +00:00
Dana Jansens
4fa19b5985 more cleverness for window placing.
make sure its 10% on the screen in some direction always..

but if the application is placing itself, make sure its on the screen entirely,
and also put it entirely on one monitor if you have xinerama.

if it's bigger than the monitor's space though, it won't do anything with it..
2007-03-10 01:08:19 +00:00
Dana Jansens
ae246097a5 let you put windows with the titlebar off screen.. for mikachu.
but also don't let applications put themselves under the struts!
2007-03-10 00:44:43 +00:00
Dana Jansens
96abc207f2 one more fix.. oops :) 2007-03-08 03:32:29 +00:00
Dana Jansens
976eb4c511 fix rendering of the new top corner resize handles 2007-03-08 03:31:42 +00:00
Dana Jansens
56307d6077 a) remove the top_grip_height business from the theme
b) make the focus indicator based on border width and padding, not the handle height
c) add 2 more windows for the top corners for resizing, much easier to find them now. also base their width on padding, not the handle height or other weird things
2007-03-08 01:26:03 +00:00
Dana Jansens
b5af5ad3e8 was using paddingx for y-things, oops 2007-03-08 01:08:44 +00:00
Dana Jansens
b37a8b7e76 Fix possible crashingness, from last commit. 2007-03-08 01:03:13 +00:00
Dana Jansens
a79651294c Split RrPaint to RrPaint and RrPaintPixmap, so you can paint things other than windows. If you don't free the returned pixmap though, you will be leaking memory in the server! 2007-03-07 22:57:10 +00:00
Dana Jansens
efedb4df9c Be more lenient with errors in xml file. If there are errors, try to keep loading it anyways. 2007-03-07 22:56:37 +00:00
Dana Jansens
1cbd7960fb don't install the old themeupdate.py file 2007-03-06 02:58:24 +00:00
Mikael Magnusson
c18edc32aa update my theme 2007-03-05 16:55:21 +00:00
Dana Jansens
a79ff2cd44 put artists original comments back into the themes after regenerating them 2007-03-05 16:48:49 +00:00
Dana Jansens
d4977a6d03 missed updating this one 2007-03-05 16:46:51 +00:00
Dana Jansens
80207fa30f proper shadow tint values 2007-03-05 16:33:22 +00:00
Dana Jansens
82be671c64 scale the shadows up, they were /100 before, now they are /255 2007-03-05 16:32:50 +00:00
Dana Jansens
afac57ad00 theme converter had a bug! menu item font is parsed now. 2007-03-05 16:28:04 +00:00
Dana Jansens
b31189b91a was looking for menu items font in the wrong place 2007-03-05 16:27:02 +00:00
Dana Jansens
358c203df2 follow new xsd 2007-03-05 16:24:35 +00:00
Dana Jansens
45087efbcd point and padding became redundant.. do remove padding type from xsd and use point type. also fix bug in theme parser where it was looking for wrong one. 2007-03-05 16:23:13 +00:00
Dana Jansens
88204502a8 don't use handle_height for focus indicators, use top_grip_height. is this better? 2007-03-05 16:10:32 +00:00
Dana Jansens
ec304c9e43 scary commit..but here goes.
YOUR THEMES ARE NOW OFFICIALLY BROKEN.

Openbox has just moved it's theme format to an XML based one. The details of
this format can be found in data/themerc.xsd (and http://openbox.org/themerc.xsd

ALSO! This is very good and important and stuff! In the tools directory you
will find THEMETOXML ! This tool takes a themerc on stdin, and spits out
the same theme in theme.xml format. So this is all you need to do to update
your themes.

PLEASE NOTE: This themetoxml does _not_ install itself anywhere. It simply
builds and then lives out in its tools/themetoxml directory, and that's it. So
if you want to use it, that is where to find it.

In moving to the new XML format, a number of additions/changes to the theme
engine have been made. Themetoxml takes these into account and will set all
the new things appropriately to make your theme look the same as it always has.

New additions include..
* padding now has an horizontal and vertical component, instead of being one number
* menus can have different borders than windows (color and size)
* menu offset can now be negative. it's a little weird, but someone will want it no doubt
* fonts are no longer controled by the theme at all, however font shadowing is, and on that note..
* font shadows are now any color you want, not just black and white
* you can now set the shadow anywhere you can set the text's color, so you have more control, i.e. you can set shadow on active menu items but not inactive, or disabled, etc.
* every color now has an alpha channel. at the moment they don't do anything, besides the font shadow one, but it leaves room for future explorations. it is REALLY HIGHLY RECOMMENDED that you set the alpha to 255 all the time, until such time as it could be useful. otherwise one day your theme may turn awful for people.
* font colors are in the range 0-255, in case you were wondering, and they have to be specified in decimal
* if you'd like to change you font's you can do so in your configuration file. this is how it is going to stay. changing the font in the theme assumes too much about peoples eye sight and locality and stuff. it doesn't belong there, sorry. the system-wide default rc.xml includes the new font settings for your viewing pleasure, and ill drop an example of it below.
* shadows can now be positioned in any direction, they have both an x and a y offset which can be negative and positive. and offset of 0,0 will disable the shadow

This isn't a release or anything. If someone had some good ideas about the xml theme format, I'd like to hear them. But I don't think it will be changing much right now beyond where it is. I don't even know how the new functionality will play out for themers, so we'll see.

Whew.. I guess that's it. I'm not sure if I mentioned every little change or not, but oh well. Mileage may vary.. Please send any feedback.

Here's the font configuration example. Hopefully ObConf will let you set this real soon.

<theme>
...
  <font place="ActiveWindow">
    <name>arial,sans</name>
    <size>7</size>
    <weight>bold</weight>
    <slant>normal</slant>
  </font>
  <font place="InactiveWindow">
    <name>arial,sans</name>
    <size>7</size>
    <weight>bold</weight>
    <slant>normal</slant>
  </font>
  <font place="MenuTitle">
    <name>arial,sans</name>
    <size>8</size>
    <weight>bold</weight>
    <slant>normal</slant>
  </font>
  <font place="MenuItem">
    <name>arial,sans</name>
    <size>8</size>
    <weight>bold</weight>
    <slant>normal</slant>
  </font>
</theme>
2007-03-05 15:44:17 +00:00
Dana Jansens
d209d828a7 assert on invalid color values 2007-03-05 05:25:16 +00:00