Dana Jansens
39c6969de2
allow for the client to be validated.
...
don't manage override_redirect windows.
don't manage windows for whome get attributes fails.
validate the client before managing it.
validate the client in functions that query stuff off it: propertyHandler and clientMessageHandler
2003-01-29 08:58:28 +00:00
Dana Jansens
01a76071df
sync after sending focus
2003-01-29 00:45:28 +00:00
Dana Jansens
3f784100ab
support the aspect ratio hints in the WMNormalHints
2003-01-28 00:26:54 +00:00
Dana Jansens
5face4c6f3
use otk objects in the ob scripts by importing otk
2003-01-27 13:42:41 +00:00
Dana Jansens
997f94cf86
new/better/cleaner scripting interface
2003-01-25 16:36:55 +00:00
Dana Jansens
91c7e5c378
allow python to grab the keyboard. have release events go to the grabs callback. remove the modifier from teh state when a modifier key is the one being released
2003-01-24 07:37:26 +00:00
Dana Jansens
02e8107507
fix a comment
2003-01-24 04:19:50 +00:00
Dana Jansens
3e21214a1d
don't make dock type windows auto-omni-present.
...
add some debug prints
2003-01-24 02:27:10 +00:00
Dana Jansens
f7f5f3d08c
add printf for when a window requests its desktop
2003-01-24 01:38:39 +00:00
Dana Jansens
ab2968b3a5
add an UrgentNotify callback type. fire it when a window becomes "urgent"
2003-01-24 00:44:36 +00:00
Dana Jansens
406c79aea1
out with the blackbox source
2003-01-24 00:02:24 +00:00
Dana Jansens
f4b87e04a2
be smart about skipping focusing a window from unmap events, watch the unmap_ignore
2003-01-23 15:43:55 +00:00
Dana Jansens
b6defb3c1a
cleanups for how we display iconic state in the hints, and choose it in the mapping process. make things work with gnome-panel's restore-to-native/current-workspace
2003-01-23 14:16:30 +00:00
Dana Jansens
8b4004ac68
make docks and desktops always on all desktops
2003-01-23 13:28:37 +00:00
Dana Jansens
709c747a74
add iconifying!!!!
...
also cleanup the map process a bit, the close action wasn't being set in the allowed actions.
2003-01-23 12:34:11 +00:00
Dana Jansens
28b8f67562
remove the word "sticky" from everywhere, and replace with "all desktops". change the titlebar layout to use D instead of S for the all-desktops button
2003-01-23 05:20:13 +00:00
Dana Jansens
7b7ae097a0
make the 'toggle all desktops' button work
2003-01-23 04:49:42 +00:00
Dana Jansens
7b9d92b2e7
add decor_sticky to the default decorations list
2003-01-23 04:23:58 +00:00
Dana Jansens
bb5a07b3e1
check if the window exists before trying to focus it
2003-01-23 03:44:18 +00:00
Dana Jansens
d9d2e7a509
Some cleanups in the mapping procedure. Apply requested states during the process.
...
Add new function types for new netwm supported actions, i.e. Func_Shade and Func_Fullscreen.
Add support for the _NET_WM_FULLSCREEN state.
2003-01-17 09:15:07 +00:00
Dana Jansens
105e3524a3
add internal_move/resize and wrap them with move() and resize() which are for user use, and make sure that the window is allowed to be moved/resized.
...
add the allowed actions hint setting.
2003-01-17 07:45:07 +00:00
Dana Jansens
6a73cff16d
get all the normal hints when mapping again, oops.
2003-01-17 03:03:18 +00:00
Dana Jansens
2b0897234f
centered gravities lose one borderwidth when mapping too
2003-01-17 02:57:42 +00:00
Dana Jansens
619ad666fc
add {}'s
2003-01-17 02:53:06 +00:00
Dana Jansens
53001eebae
add whitespace
2003-01-17 02:52:26 +00:00
Dana Jansens
b8ae2f393f
try use the gravity in the WM_NORMAL hint, and fall back to the attribute
2003-01-17 02:48:29 +00:00
Dana Jansens
4c2f4e7537
add a getGravity function to get the gravity from the window attributes initially
2003-01-17 02:43:31 +00:00
Dana Jansens
f14d74a3ac
test for borders on static grav windows
2003-01-17 02:11:11 +00:00
Dana Jansens
af1ac846cc
new raise/lower window code. only restacks 2 windows (1 move) at a time, ever. ManMower, u rulz.
2003-01-16 23:32:16 +00:00
Dana Jansens
d8aff44a6a
redo otk::Property. make it static.
2003-01-16 08:44:52 +00:00
Dana Jansens
a8e98570cc
dont allow resizing < 1 (based on increments)
2003-01-16 04:10:12 +00:00
Dana Jansens
cdcc526a02
use the new non-static display
2003-01-13 09:04:57 +00:00
Dana Jansens
9e77a88d26
move the Openbox::instance pointer to simply "openbox".
2003-01-13 08:13:58 +00:00
Dana Jansens
ef02a0c8ae
almost done the ustring conversion
2003-01-13 05:54:40 +00:00
Dana Jansens
7bfe234d81
clean up childrens' transient_for refs
2003-01-12 18:29:17 +00:00
Dana Jansens
77ab46d1e3
removing all prefixes completed
2003-01-11 19:42:43 +00:00
Dana Jansens
e8f5cf2940
valgrind fixes, and fixes for writing shit all over the environment. yay~!!!!!!!
2003-01-11 11:16:36 +00:00
Dana Jansens
fd5369cd17
only send configu notify if the window is mapped (has a frame)
2003-01-11 05:45:21 +00:00
Dana Jansens
af8b457f40
send configure notify when moving a window
2003-01-11 04:04:42 +00:00
Dana Jansens
b1739374a6
change what re-maprequest events do, just convert them to net_active_window messages. make net_active_window unshade/iconify
2003-01-09 04:26:32 +00:00
Dana Jansens
e2274e0f0a
s/False/false
2003-01-09 03:53:26 +00:00
Dana Jansens
cec568b076
state_above/below work now
2003-01-08 17:00:27 +00:00
Dana Jansens
368d981208
add a -single argument which only runs on a single screen
2003-01-08 16:29:39 +00:00
Dana Jansens
f2fa99b33e
make some funcs const, and don't try focus a client if it is not visible
2003-01-08 06:45:01 +00:00
Dana Jansens
f11bd1b0cc
better reparent handling, dont fux with the event stack..
2003-01-07 20:20:14 +00:00
Dana Jansens
1b13d34c1e
i think im handling reparent events correctly now, by unmanaging the window and then XMapping the client
2003-01-07 20:06:29 +00:00
Dana Jansens
6062fe404c
handle unmaps better. all thanks to acroread sending wacky unmap events
2003-01-07 09:30:00 +00:00
Dana Jansens
13f1f39f01
dont move frame if not frame exists while mapping
2003-01-07 07:05:39 +00:00
Dana Jansens
7ca4d1cf8a
add a check for ShapeBounding shape events
2003-01-07 06:37:02 +00:00
Dana Jansens
eccab56a6c
fixed condition that could cause 2 windows to look focused, and bad things to occur
2003-01-07 05:21:12 +00:00
Dana Jansens
4c768d5d63
use client messages to switch desktops/move windows between desktops
2003-01-07 04:51:55 +00:00
Dana Jansens
d7cc09cebd
dont hide windows when switching to the current workspace
2003-01-07 01:58:39 +00:00
Dana Jansens
7175ac2b5a
windows stay on their desktops
2003-01-07 01:54:26 +00:00
Dana Jansens
3d8ffcc2cb
dont reset focus to the unfocused window!
2003-01-07 01:28:59 +00:00
Dana Jansens
00e2c5aaad
keep track of desktops...
2003-01-07 00:57:00 +00:00
Dana Jansens
dbf077a59a
rm debugging comment
2003-01-06 04:58:07 +00:00
Dana Jansens
cc39863363
handle maprequests after mapped correctly. thus making gaim happy again
2003-01-06 04:57:42 +00:00
Dana Jansens
043822f6b6
grab the first known window type
2003-01-06 04:44:00 +00:00
Dana Jansens
1297c7c157
clean up transient's parent's reference in destructor
2003-01-06 04:33:37 +00:00
Dana Jansens
34cd50ec51
gets transients! woot. tested and such.. no groups still tho
2003-01-05 02:32:39 +00:00
Dana Jansens
a93f06f5b3
keep track of transients. however not group transients yet
2003-01-05 02:24:27 +00:00
Dana Jansens
c7b22b4f9c
transient window support..halfway
2003-01-05 01:40:38 +00:00
Dana Jansens
d13f021b8b
add support for wm_window_role
2003-01-04 19:09:52 +00:00
Dana Jansens
fdb4e652f7
move the approproate code for map request handling to the client class. this will deiconify the window when requested.
2003-01-04 09:27:50 +00:00
Dana Jansens
aef2ab758d
if a dock has the 'below' state set, then it goes in the normal window layer
2003-01-04 08:54:53 +00:00
Dana Jansens
9ec2da72a5
let the user set the above/below stacking layer easily
2003-01-04 08:50:30 +00:00
Dana Jansens
056ff3b50c
better focus passing around for now
2003-01-04 08:41:42 +00:00
Dana Jansens
7bae794382
support net_wm_strut's! nothing to do with them yet however
2003-01-04 08:02:08 +00:00
Dana Jansens
58cd3958a3
decor and functions set set right for !normal windows
2003-01-04 07:36:29 +00:00
Dana Jansens
b02c91caad
more ideas in comments
2003-01-04 07:26:57 +00:00
Dana Jansens
a6f5b33ad9
configure request optimizations
2003-01-04 07:24:40 +00:00
Dana Jansens
8735c12d96
shape works again. updating the delete_window protocol update the decor.
2003-01-04 07:04:23 +00:00
Dana Jansens
7ec03b895e
move where transient shit will be
2003-01-04 06:47:47 +00:00
Dana Jansens
5e5879a52b
set the window's state so the hint always exists
2003-01-04 05:45:47 +00:00
Dana Jansens
f1f4cf57af
raise when focused with net_active_window message
2003-01-04 02:51:08 +00:00
Dana Jansens
d9e7a7b8cd
shading works from epist
2003-01-04 02:49:43 +00:00
Dana Jansens
8d5bd29854
set desktop names on startup
2003-01-04 02:03:30 +00:00
Dana Jansens
06eb14fbeb
better focusing. support for the take_focus protocol
2003-01-04 01:21:04 +00:00
Dana Jansens
fcb0820d94
add support for net_active_window and net_close_window messages
2003-01-04 00:54:19 +00:00
Dana Jansens
0ea5de6247
window states persist across restarts
2003-01-03 23:57:00 +00:00
Dana Jansens
7417e2b54e
window shading
2003-01-03 23:51:06 +00:00
Dana Jansens
86a2bed659
remove the block on shutdown
2003-01-03 20:10:25 +00:00
Dana Jansens
13f2930de7
share code for raising/lowering windows
2003-01-03 18:25:04 +00:00
Dana Jansens
89e6d5c0e6
add/lower work
2003-01-03 18:21:28 +00:00
Dana Jansens
5fdd493d0d
buttons have their pixmaps!
2002-12-27 10:07:57 +00:00
Dana Jansens
8c2dfe5de4
deal with when nothing has focus anymore
2002-12-27 09:18:54 +00:00
Dana Jansens
cb718e2ad9
handle reparent events..hopefully :>
2002-12-27 08:52:16 +00:00
Dana Jansens
3a4f91b537
enter/leave and focus events are working beautifully
2002-12-27 08:33:57 +00:00
Dana Jansens
e9ec2ce0eb
some focus improvements..
2002-12-26 19:55:55 +00:00
Dana Jansens
8c0fe026fe
focus works
2002-12-26 18:15:23 +00:00
Dana Jansens
2ae2b257d3
might not compile... ob uses its own widgets now, which subclass only the base otk widget. working on compressing focus events and handling them etc.
2002-12-25 22:02:34 +00:00
Dana Jansens
0816364a03
handle mouse clicks in the python scripts now
2002-12-25 05:46:02 +00:00
Dana Jansens
fdd5338fc1
correctly remove client borders when mapping a window with NW gravity
2002-12-24 08:28:03 +00:00
Dana Jansens
38f8155bf5
can resize now too. compress motion events.
2002-12-18 16:31:16 +00:00
Dana Jansens
77a8e11660
can tell where events are coming from!
2002-12-18 11:34:29 +00:00
Dana Jansens
52cb7bd11e
PROPERLY HANDLE CLIENT BORDERS
...
PROPERLY HANDLE CLIENT GRAVITY
YES!#%&*#!#!
windows can be moved/resized now (and the frame will play along)!
2002-12-05 13:45:00 +00:00
Dana Jansens
bdc491ccfe
map and unmap work great now yay
2002-12-04 01:29:01 +00:00
Dana Jansens
9860b76c50
unmap works.. once
2002-12-04 01:04:31 +00:00
Dana Jansens
1fa445c880
handle configure requests
2002-12-04 00:26:45 +00:00
Dana Jansens
11de5db065
better compression, dont lose events
2002-12-02 22:36:43 +00:00