Commit graph

149 commits

Author SHA1 Message Date
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
Dana Jansens
7efcff07ea more compressing 2002-12-02 22:32:38 +00:00
Dana Jansens
786834abea compress property changes into a single change 2002-12-02 22:19:07 +00:00
Dana Jansens
74cb09bb2c handle map events with the Openbox class 2002-12-02 21:06:16 +00:00
Dana Jansens
c4a1fac49d manages windows that exist before running. 2002-11-11 11:25:40 +00:00
Marius Nita
5c7aabd779 wattrib doesnt get init-ed correctly when called from assert() 2002-11-11 03:57:53 +00:00
Dana Jansens
73f6bb1a7b move screen.cc/hh to bbscreen.cc/hh 2002-11-10 10:22:47 +00:00
Dana Jansens
9d5865a160 support for the shape extension works! 2002-11-10 05:54:12 +00:00
Dana Jansens
b9cac2146e WINDOWS GET FRAMES FRAME SHOW UP THEY WORK HUZZAH SOON THEYLL BE LIKE OLD TIMES! 2002-11-10 04:08:26 +00:00
Dana Jansens
8b041e2f5c add updateIconTitle 2002-11-07 08:22:27 +00:00
Dana Jansens
f7f3cd4085 set the client's desired decoration and function flags 2002-11-06 11:44:15 +00:00
Dana Jansens
9dc76e1bac support for the Mwm Hints 2002-11-06 11:31:50 +00:00
Dana Jansens
076d45d0ce read protocols too in OBClient 2002-11-06 10:05:56 +00:00
Dana Jansens
9df8ba78f3 determine if the user/application requested its initial position or not 2002-11-06 09:19:53 +00:00
Dana Jansens
aa8047d68b use INT_MAX for the default max sizes 2002-11-06 09:14:33 +00:00
Dana Jansens
116c95b887 get the min/max sizes 2002-11-06 09:12:13 +00:00
Dana Jansens
9b23dff16c when creating an OBClient class, get all the info on that class immediately.
print the info to stdout for now too!
2002-11-06 09:04:48 +00:00
Dana Jansens
d363f720a6 fix compiling with the new strut (new namespace)
and fix general errors that broke compiling.

make xeventhandler find the OBClient for most events..
2002-11-06 08:06:54 +00:00
Dana Jansens
d017db67e4 client.cc compiles 2002-11-06 07:01:34 +00:00