Dana Jansens
d3b7c84d4c
moving strut into its own .hh. adding OBClient class
2002-11-06 07:01:59 +00:00
Dana Jansens
d017db67e4
client.cc compiles
2002-11-06 07:01:34 +00:00
Dana Jansens
c9f36d34a4
finish conversion to the new otk::OBProperty class with its new interface
2002-11-05 09:13:46 +00:00
Dana Jansens
641bc819d1
convert XAtom to OBAtom
2002-11-05 07:48:26 +00:00
Dana Jansens
f25252a484
updated doxygen documentation
2002-11-05 05:56:44 +00:00
Dana Jansens
c3946be073
initialize the _doshutdown member
2002-11-04 09:43:42 +00:00
Dana Jansens
62356a72a9
complete the change from window.cc/hh to bbwindow.cc/hh
2002-11-04 09:40:56 +00:00
Dana Jansens
6f8b36ff82
moving window.cc/hh to bbwindow.cc/hh since we'll have our own window class coming in to replace it slowly
2002-11-04 09:38:21 +00:00
Dana Jansens
2f905c7ed8
deal with client events in the same way now
2002-11-04 09:33:23 +00:00
Dana Jansens
45c2589ef6
xeventhandler can handle everything except client messages now.
...
blackbox is no longer the event handler
2002-11-04 09:25:26 +00:00
Dana Jansens
7ebccbf39a
new OBTimer interface
2002-11-04 06:06:13 +00:00
Dana Jansens
d557e816be
include the right .hh!
2002-11-04 05:35:04 +00:00
Dana Jansens
6bba50ef34
include the timer manager class header
2002-11-04 05:34:28 +00:00
Dana Jansens
d4d89ce0bb
documenting classes!
2002-11-04 03:37:17 +00:00
Dana Jansens
9259ec5732
new timer infrastructure. takes a function pointer for the timeout, with a void* parameter (useful for holding a class instance!)
2002-11-03 14:29:34 +00:00
Dana Jansens
ad80ef0f66
make it shutdown on signals
2002-11-03 12:58:17 +00:00
Dana Jansens
42e406d09d
read rc3 as the default file now
2002-11-03 12:55:30 +00:00
Dana Jansens
373de009f7
new timers, timer manager
2002-11-03 12:48:10 +00:00
Dana Jansens
c5f62494f1
fix compiling in display.
...
make the timer manager work in and of itself
2002-11-03 12:27:49 +00:00
Dana Jansens
8ad2610917
ue default scope timevals
2002-11-03 12:07:54 +00:00
Dana Jansens
2bf55be061
add comment
2002-11-03 12:06:44 +00:00
Dana Jansens
ace8c8896a
WE DONT USE BASE DISPLAY FOR ANYTHING ANY MORE!!@^!*@*!! YAY
2002-11-03 11:46:05 +00:00
Dana Jansens
dd7b8b67bd
split the screeninfo class out to its own files
2002-11-03 06:09:05 +00:00
Dana Jansens
bbdca49193
gettext is ready to rock and roll
2002-11-03 05:56:15 +00:00
Dana Jansens
0eff3cc415
make strings in main.cc translatable
2002-11-01 11:18:32 +00:00
Dana Jansens
90f2414285
add gettext
...
change CXXFLAGS back to CPPFLAGS in the .am's
2002-11-01 10:08:32 +00:00
Dana Jansens
4c05a620cc
libtool stuff
2002-11-01 04:03:00 +00:00
Dana Jansens
f127273aba
make compile again
2002-11-01 04:02:33 +00:00
Dana Jansens
1824e6b100
add a cvsignore for otk.
...
make sexier automake shit
2002-11-01 03:45:34 +00:00
Marius Nita
110a1eeed9
moved files into otk
2002-11-01 03:30:18 +00:00
Dana Jansens
86bef745b9
big fat commit..
2002-10-31 09:18:24 +00:00
Dana Jansens
75f84f9557
add comment for later
2002-10-31 09:06:03 +00:00
Dana Jansens
7bf96a9123
compiles now. uses xft2
...
remove the nls remainders
2002-10-31 08:42:45 +00:00
Dana Jansens
db451d95bf
rename, remove bullshit. ya
2002-10-31 06:54:56 +00:00
Dana Jansens
60b016b7fc
no more menus, at last. woop
2002-10-31 06:30:23 +00:00
Scott Moynes
87e63d53af
Take menu file from rc file if it isn't specified on the command line.
...
It doesn't act correctly when using reconfigure, but only because I am unsure what the correct behaviour is.
2002-10-26 17:06:00 +00:00
Scott Moynes
9af642d299
Ignore dot files in the styles directory.
2002-10-26 15:31:33 +00:00
Dana Jansens
be141c2ac3
take out useless(?) assert
2002-10-24 14:50:21 +00:00
Scott Moynes
1e36acfd91
Allow variable tinting of the shadow. Use *.xft.tint: integer
...
integer is a number -100 to 100 that specifies the alpha channel, with
negative numbers meaning lighten the background and positive being
darken.
2002-10-23 02:46:47 +00:00
Scott Moynes
8b55442b2e
use drop shadow height in the font height.
...
honour rc file config option for drop shadows with new shadow code
2002-10-17 02:59:30 +00:00
Scott Moynes
8552ba2ac9
xft drawing on offsets once and for all
2002-10-17 02:37:23 +00:00
Scott Moynes
d974e00bc9
fixed the drop shadow window clearing bug in Basemenu
2002-10-17 01:45:30 +00:00
Scott Moynes
ccf6cfadf7
Fix XFT redraw of text. Still needs slight work for the shadow in Basemenu
2002-10-17 00:52:03 +00:00
Scott Moynes
402e229e76
Allow for customizing of the dropShadows.
...
If xft.flags: shadow then you can specify the tint with xft.shadow.tint:
which should be a number 0 to 255. xft.shadow.offset: will specify how
many pixels to add in positioning.
Also, try to fix the inheritence in the pressed button borders. Need a
style to test this
2002-10-16 22:33:34 +00:00
Scott Moynes
be127cb4c6
make an *xft.flags: shadow flag to have per style resource shadows
2002-10-16 02:53:49 +00:00
Scott Moynes
fa3fb793e7
oops. fix workspace warping merge buglet
2002-10-04 03:18:28 +00:00
Scott Moynes
987cf7cc40
Added style resources for window.button.pressed.focus: and
...
window.button.pressed.unfocus:
Documentation to be added.
2002-10-03 03:58:07 +00:00
Scott Moynes
080ba7f9b9
remove debug code in window menu placement
2002-10-01 02:12:09 +00:00
Scott Moynes
72a2e98738
merged with 2_1-merged-to-HEAD-2002-09-30
2002-10-01 01:59:09 +00:00
Scott Moynes
783fac59c9
snap a window menu to the bottom of the screen if it is positioned too low.
2002-10-01 01:17:24 +00:00
Scott Moynes
5b8ec88623
fixed menu placement on menus with very small windows
2002-10-01 00:14:15 +00:00
Marius Nita
c2afc72a41
Fix small compile error on g++3.
2002-09-22 09:08:29 +00:00
Scott Moynes
e0d619e309
added a configure flag for enabling/disabling bitmap buttons
2002-09-14 05:43:57 +00:00
Scott Moynes
c196ecd878
more bitmap merge fixes
2002-09-14 04:52:04 +00:00
Scott Moynes
01732a20db
Some bitmap bugfixes
...
Fixed parameters to XFillRectangle, remoced old debug code.
2002-09-14 04:01:20 +00:00
Scott Moynes
c2d992a35c
merged bitmap buttons
2002-09-14 03:44:44 +00:00
Dana Jansens
15ca6904fc
make alt-right click resizing work on the window handles
2002-09-11 02:14:55 +00:00
Dana Jansens
ce5313528e
bindable/disableable root/workspace menus
2002-09-09 22:09:38 +00:00
Dana Jansens
3de15d0504
default drop shadows to off
2002-09-09 20:51:43 +00:00
Dana Jansens
7f001973a8
catch button presses on the window's frame window, else they end up passing up the heirarchy to the root window, and then that will do things like pop up the root menu by right clicking on the window's frame window.
2002-09-08 01:22:13 +00:00
Dana Jansens
70fed8c962
dont draw borders past the end of a texture
2002-09-07 16:50:34 +00:00
Dana Jansens
8d54452b77
lighter shadow
2002-09-07 07:35:03 +00:00
Dana Jansens
01a6d810b6
increase the reported font size when it has a shadow
2002-09-07 07:18:31 +00:00
Dana Jansens
2c01b1aa9a
drop shadow with color of text
2002-09-07 06:43:18 +00:00
Dana Jansens
076ef8c10e
better ropshadow?
2002-09-07 06:26:20 +00:00
Dana Jansens
02c028d8ae
(optional) drop shadows for fonts
2002-09-06 16:14:55 +00:00
Dana Jansens
c1e79a4a82
back out the thick X button
2002-09-04 03:35:21 +00:00
Dana Jansens
23aea9b42f
better border support for stuff. add a borderColor resource, and allow borders with gradients. basically, they can only be used with flat stuff (not raised/lowered)
2002-09-04 02:58:39 +00:00
Dana Jansens
1f5dd220e7
watch for sticky windows when mapping, let them show.
2002-09-04 02:28:42 +00:00
Dana Jansens
42e00b1c5b
sync with 2.0 branch (fix auto-rasie with gtk issue)
2002-09-01 21:14:26 +00:00
Dana Jansens
e93ce60568
sync with the 2.0 branch (make XAtom::getValue not use an XGrabServer)
2002-09-01 09:51:54 +00:00
Dana Jansens
923c381dc1
sync with the 2.0 branch
2002-08-31 06:15:07 +00:00
Scott Moynes
e811623978
fixed debug flag being forced on.
2002-08-29 00:07:53 +00:00
Scott Moynes
767e04e090
Added a optional omnipresent button, enabled using the title bar layout key "S".
...
Needs to be documented, and the drawing tweaked a bit.
2002-08-28 23:58:32 +00:00
Dana Jansens
d139e299d5
cleanups and add a server grab in getValue
2002-08-27 12:49:04 +00:00
Dana Jansens
5033ce0a24
proper mask t catch the unmap events on systray windows
2002-08-27 10:57:15 +00:00
Dana Jansens
f5a1f592a4
fix shape support
2002-08-27 08:18:04 +00:00
Marius Nita
07e619ebbb
Added missing header for clearShape, which was breaking compilation
2002-08-27 06:59:57 +00:00
Dana Jansens
9667f3a0e9
fix shape.
...
a) it didnt work when it added shape after mapping
b) removing shape wouldnt have worked right either
2002-08-27 03:59:51 +00:00
Scott Moynes
bb9a37ec3d
Draw close button with line_width of 2.
2002-08-26 23:52:37 +00:00
Dana Jansens
f763814b33
dont limit how big a window can be resized.
...
dont let the user resize a window smaller than 0, which makes it wrap to a huge number
2002-08-26 12:09:28 +00:00
Dana Jansens
a6d6f0118b
sync with blackbox
...
get rid of the default limit on window sizes
2002-08-26 05:27:25 +00:00
Dana Jansens
85612861f5
don't limit how big a window can be resized
2002-08-26 04:53:37 +00:00
Dana Jansens
d9c0cfedbd
unmanage desktop windows on shutdown
2002-08-26 00:25:08 +00:00
Dana Jansens
3ad19e4a45
format comment
2002-08-26 00:23:28 +00:00
Dana Jansens
328b861d19
use the window's gravity when handling a configureRequest event for a resize only
2002-08-25 11:26:15 +00:00
Dana Jansens
db3e93a3c1
actually check if a window has the function flags approproate before trying to perform an action. (i.e. dont let windows iconify if they arent supposed to, etc)
2002-08-25 09:48:50 +00:00
Dana Jansens
45863e605c
clean up the new focusing code for workspace switching
2002-08-25 08:41:18 +00:00
Dana Jansens
3ee18e2f5f
explicitly set the focused window instead of waiting for the x server when changing workspaces, otherwise, if you move througha workspace before the xserver distributes your focus, you end up losing which window had the focus
2002-08-25 08:11:43 +00:00
Dana Jansens
2c1ce30804
dont add sticky windows to the stacking list more than once
2002-08-24 22:22:52 +00:00
Dana Jansens
23e92e110e
put !normal windows in the general client list too
2002-08-24 20:54:24 +00:00
Dana Jansens
82bf5b555f
put !normal windows in the stacking client list as well as the normal client list
2002-08-24 20:43:58 +00:00
Dana Jansens
b1da899b32
try see if this broke gnome-panel
2002-08-24 19:58:25 +00:00
Dana Jansens
81cdff0693
don't unmap/remap sticky windows on a workspace change, but still make sloppy focus work right.
2002-08-24 08:09:35 +00:00
Dana Jansens
0f4737f0f1
put !normal windows in the screen window list
...
catch systray apps unmap/destroy events
2002-08-24 05:49:22 +00:00
Dana Jansens
8344443c10
handle systray apps closing..
2002-08-24 04:41:22 +00:00
Dana Jansens
57a46b4f0f
default to line width of 0, which is more efficient than 1
2002-08-24 01:14:34 +00:00
Dana Jansens
cbf4bb3d62
use the snap offset as the margin for placing windows instead of a fixed value of 1
2002-08-23 23:13:21 +00:00
Dana Jansens
8dc38853ef
dont autoraise when the window isn't going to get focused either. sdl-fullscreen bug fixed.
2002-08-23 07:28:04 +00:00
Dana Jansens
d1b2c03152
get default line width to 1, and make it a more easily used parameter in BPen
2002-08-23 05:35:34 +00:00
Dana Jansens
469b9b3087
give gc's/BPen's a width
2002-08-23 05:12:07 +00:00
Dana Jansens
78a8ca9e53
the comment more accurate
2002-08-22 04:05:43 +00:00
Dana Jansens
33d2ceccbe
s/__openbox_version/OPENBOX_VERSION
2002-08-22 03:53:17 +00:00
Dana Jansens
a1b96061eb
sync with bb-cvs
2002-08-22 03:46:45 +00:00
Dana Jansens
4d0f46e554
dont use __ for variables.. its illegal. (thanks ppl for the patch.)
2002-08-22 01:03:08 +00:00
Dana Jansens
8a48fff773
support for showing the root and workspace menu with epist
2002-08-22 00:57:29 +00:00
Dana Jansens
cc5bde6d00
toggledecor almost done
...
some code cleanups/fixes
2002-08-21 23:57:03 +00:00
Dana Jansens
d181f1ad05
dont grab other windows while warping in opaque mode
2002-08-21 09:50:47 +00:00
Dana Jansens
d7a655137b
dont pass an unused parameter, and return an unused value
2002-08-21 09:23:00 +00:00
Dana Jansens
9d40660bce
warping works!
2002-08-21 08:59:28 +00:00
Dana Jansens
a9bfdcaa06
making warping work.. hopefully.
...
fix for leaving !normal windows behind in the window list
2002-08-21 07:47:52 +00:00
Dana Jansens
183cf03a4f
set a workspace and window number even for !normal windows
2002-08-21 06:35:29 +00:00
Dana Jansens
aa9ade7a90
add support for the kde-override hint, making the windows get no decorations.
...
also, read the window type as an array, as it is supposed to be read.
2002-08-21 06:09:31 +00:00
Dana Jansens
b1223a2acc
change how the pointer is moved.. try make this more consistant when warping at high speeds.
2002-08-20 18:43:29 +00:00
Dana Jansens
551a17d256
Fix send to menu, having deleted workspaces in it.
...
Fix workspace warping, move the mouse and window the same amount.
Fix workspace switching. Put old code back that worked better.
2002-08-20 15:38:51 +00:00
Dana Jansens
24f64750e9
change default style to mbdtex
2002-08-16 21:14:27 +00:00
Dana Jansens
a2db09b869
ignore the EnterNotify for focusing when changing workspaces in an ACTIVE_WINDOW change, so that the right window gets focused, not the window under the mouse.
2002-08-16 04:25:13 +00:00
Dana Jansens
a0c7fe1f12
sync with bb-cvs.
...
Add the if(sticky) check back into the changing-transient-state code.. test this with vanrijn/bbkeys/klaunch!
2002-08-15 16:27:02 +00:00
Dana Jansens
b016470119
testing whether i caused a bug with this code
2002-08-14 15:10:57 +00:00
Dana Jansens
74a4bc01a7
properly watch for windows on other workspaces when mapping.
2002-08-14 06:26:42 +00:00
Dana Jansens
4bebd476c3
remove the net_wm_desktop/state hints from a window when we stop managing it, so that if an app reuses the window, we don't place it on the wrong workspace the second time.
2002-08-14 06:15:08 +00:00
Dana Jansens
ef66d63b42
dont let windows get initially mapped when they arent on the current workspace
2002-08-13 21:25:41 +00:00
Dana Jansens
91b0784330
don't actually focus windows when adding them to the current workspace. this is already handled elsewhere, ands the window probably isnt evenmapped yet
2002-08-13 21:14:37 +00:00
Dana Jansens
1a145bba61
resize with alt+right click in all the same places that alt+left click moves
2002-08-13 17:49:34 +00:00
Dana Jansens
aa2ec5f217
don't make Decor_Close depend on MWM hints. Thats not part of them.
2002-08-13 13:53:41 +00:00
Dana Jansens
6838ab254f
fix whitespace
2002-08-12 21:00:12 +00:00
Dana Jansens
f633c5f057
allow the user to specify the modmask used to mouse events on windows
2002-08-10 18:21:10 +00:00
Dana Jansens
6e07a64d33
add the FlatBorder texture type
2002-08-10 17:36:26 +00:00
Dana Jansens
ff3d12175e
when updating the client menu for windows that aren't in the client menu, just ignore the request gracefully
2002-08-10 16:53:17 +00:00
Dana Jansens
175a7e5d1c
sync with bb-cvs
2002-08-10 16:52:43 +00:00
Dana Jansens
0f71036099
support the blackbox hints right and the blackbox attributes for decoration state
2002-08-10 16:15:19 +00:00
Dana Jansens
35818cc2f1
reconfigure wont break decor highlighting now
2002-08-10 00:03:29 +00:00
Dana Jansens
36db2d24ef
set a window's decorations based on mwm and window type. Ignore the different blackbox 'levels' since they arent ever used anyways. This makes toggling a window's decor always work right too!
...
Also, make XGrabServer calls while workspace warping ot make sure another window isnt grabbed in place of the one thats warping
2002-08-09 23:55:18 +00:00
Dana Jansens
bc3268b6f9
handle toolbars and utility windows proper. also, no more crashes from kpager (i really hope :P), at least not the same way
2002-08-09 00:44:35 +00:00
Dana Jansens
01096f8674
sync with blackbox-cvs
2002-08-08 23:07:24 +00:00
Dana Jansens
2d5e1c55f1
don't let windows snap to themself
2002-08-08 23:02:52 +00:00
Dana Jansens
027dbd1c20
watch for transient == ~0ul
2002-08-08 05:00:43 +00:00
Dana Jansens
f3a54e41a0
use the old method for showing windows on workspace change
2002-08-08 05:00:14 +00:00
Dana Jansens
72c56d793b
sync with blackbox
2002-08-07 00:24:58 +00:00
Dana Jansens
4e84a99f0a
disable things in the placement menu when they dont have any effect for the selected placement type
2002-08-06 23:39:13 +00:00
Dana Jansens
00391787e3
perhaps fix a segfault here
2002-08-06 22:21:12 +00:00
Dana Jansens
b8c0c7af12
dont snap things around crazy with small windows in resistance mode
2002-08-06 12:03:08 +00:00
Dana Jansens
08e28f38a9
add a sanity check for the snap offset, limiting it to 50
2002-08-03 17:05:09 +00:00
Dana Jansens
dba5b809ec
change default resistance to 18
2002-08-02 21:41:41 +00:00
Dana Jansens
b9e40b8b1e
add the resource for the window snapping offset
2002-08-02 21:07:17 +00:00
Dana Jansens
b34a0d1ce2
save the window-to-window snapping right
2002-08-02 20:56:25 +00:00
Dana Jansens
1ecf3b734a
honor the snap_offset properly for windows, and for edges(?)
2002-08-02 20:50:51 +00:00
Dana Jansens
22869af55c
snap to windows/edges an optional offset away
2002-08-02 20:37:33 +00:00
Dana Jansens
347baf0c0b
had an extra window placement menu
2002-08-02 20:22:36 +00:00
Dana Jansens
50598700df
keep the new menus on top of normal windows
2002-08-02 19:58:18 +00:00