Commit graph

355 commits

Author SHA1 Message Date
Dana Jansens
8b0daa912e rm old bb shit that we dont use 2003-01-16 07:02:47 +00:00
Dana Jansens
a7207b7d83 make an optional bool param for ustring's other constructors 2003-01-16 05:21:39 +00:00
Dana Jansens
0f7e3be6b6 make an optional bool param for ustring's default constructor 2003-01-16 05:20:33 +00:00
Dana Jansens
3e82959514 extern "C" the C headers 2003-01-15 03:18:01 +00:00
Dana Jansens
e44d7697e5 add headers for select() 2003-01-15 03:17:46 +00:00
Dana Jansens
d9a5620f80 use the better defines for the xft version 2003-01-14 23:55:07 +00:00
Dana Jansens
219e18e744 display the build version as well as the runtime version of Xft 2003-01-14 22:49:59 +00:00
Dana Jansens
231f4dadab no long used with our Timer-ng! 2003-01-14 21:14:21 +00:00
Dana Jansens
a388c41df4 dont need unistd for gettimeofday 2003-01-14 20:33:19 +00:00
Dana Jansens
96a9196cbb otk::Timer-ng!! thanks ManMower for this shizznit! 2003-01-14 09:54:05 +00:00
Dana Jansens
7f2ee77204 use the byte size for utf strings, not the character size 2003-01-13 10:33:16 +00:00
Dana Jansens
3d012bcb47 move the utf8_skip table into the .cc 2003-01-13 10:06:41 +00:00
Dana Jansens
23686632d4 fix some bugs where looked up wrong offsets for characters in the utf8_skip table, move the table into the .cc 2003-01-13 10:06:26 +00:00
Dana Jansens
b989ec13f7 set the ustring's utf type so that it matches what it appended to it 2003-01-13 09:26:38 +00:00
Dana Jansens
4c71c71d57 set the global display var 2003-01-13 09:26:09 +00:00
Dana Jansens
c34f2a5241 add ustring.i which wraps otk::ustring for to/from python conversions 2003-01-13 08:48:43 +00:00
Dana Jansens
c97915f445 un-static otk::Display. add an operator* to it. make a global ob::display var. 2003-01-13 08:48:03 +00:00
Dana Jansens
55f1381860 ustring seems to be working! yay! 2003-01-13 07:12:08 +00:00
Dana Jansens
ef02a0c8ae almost done the ustring conversion 2003-01-13 05:54:40 +00:00
Dana Jansens
5a90d2b671 otk using ustring for shit that draws. expended its inferface yet some more. 2003-01-13 04:46:50 +00:00
Dana Jansens
4947902d26 more conversion to ustring. added more members 2003-01-13 03:51:48 +00:00
Dana Jansens
2594b98ce4 rm old comment 2003-01-13 02:11:04 +00:00
Dana Jansens
7fc226b654 proper code style 2003-01-13 01:41:25 +00:00
Dana Jansens
120ed7a650 setup the locale on the X server on start 2003-01-13 01:41:06 +00:00
Dana Jansens
8b73f6f025 begin conversion to ustring. add some more members. 2003-01-13 01:08:54 +00:00
Dana Jansens
b5a05bc197 more shit 2003-01-12 23:56:16 +00:00
Dana Jansens
711e499c70 start on otk::ustring (unicode/utf8) 2003-01-12 23:55:59 +00:00
Dana Jansens
bc99e6a420 remove userstring 2003-01-12 23:55:30 +00:00
Dana Jansens
f6be8c1e38 s/atom_hh/property_hh 2003-01-12 22:54:33 +00:00
Dana Jansens
805a5dddce default to drawing as utf8 2003-01-12 22:09:16 +00:00
Dana Jansens
eb752bc9c5 put userstring in otk:: 2003-01-12 21:23:31 +00:00
Dana Jansens
74061b4e2d use "userstring" for all user viewable strings 2003-01-12 21:17:26 +00:00
Dana Jansens
718be4c911 add 'userstring', a std::string with a flag for UTF-8 2003-01-12 19:42:44 +00:00
Dana Jansens
870f6cca3d ignore focus changes from grabs always. 2003-01-12 00:30:36 +00:00
Dana Jansens
cc86c196a2 dont need 2 of these comments 2003-01-11 19:44:16 +00:00
Dana Jansens
f1b9e2168d workaround for swig problem 2003-01-11 19:39:10 +00:00
Dana Jansens
8f8acc2493 rm prefixes for all elements in the otk namepsace 2003-01-11 19:17:13 +00:00
Dana Jansens
684405eec8 add \n's to errors 2003-01-11 18:30:52 +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
ac06b3c5f3 rm debug prints 2003-01-11 07:17:22 +00:00
Dana Jansens
c637f1ffdd rm debug shit 2003-01-11 07:16:15 +00:00
Dana Jansens
19bfac5195 broken to all hell. oh no. 2003-01-11 07:13:49 +00:00
Dana Jansens
1729df46b5 make compiling 'work' with XINERAMA. it doesnt do anything tho 2003-01-11 04:40:21 +00:00
Dana Jansens
bcd808d084 add the BUTTONSDIR define 2003-01-10 22:50:20 +00:00
Dana Jansens
6c4711cbaa load buttons from the global dir if they arent found in the user dir 2003-01-10 22:40:16 +00:00
Dana Jansens
63c794a63f get the xft version from the library instead of from the headers 2003-01-10 20:33:05 +00:00
Dana Jansens
69f38b9f55 undefine the scriptdir, thats not where otk.py will be going 2003-01-10 08:36:01 +00:00
Dana Jansens
ec6951c2c7 dont build the otk wrappers for now 2003-01-10 08:32:51 +00:00
Dana Jansens
26d95a5286 dont install otk.py for now 2003-01-10 07:49:57 +00:00
Dana Jansens
678bb52123 stop including otk in the openbox module. makes the wm hooger for no good cause. simply import all the otk shit. add otk.hh 2003-01-10 06:40:31 +00:00
Dana Jansens
a6f1d6b82f add a header for including everything for otk 2003-01-10 06:34:57 +00:00
Dana Jansens
e0878c9fc2 typosnsuch 2003-01-10 03:15:50 +00:00
Dana Jansens
915b171bef install the shadow wrappers 2003-01-10 03:15:11 +00:00
Dana Jansens
385de86d90 add the shadow class wrappers 2003-01-10 03:12:42 +00:00
Dana Jansens
345d957e1e new python callbacks data, infrastructure. going to rework bindings code. cvs wont work for shit now. but thats life. 2003-01-09 22:54:31 +00:00
Dana Jansens
93811226bb ignore much fewer focus events. only ignore focusout's from activating a grab 2003-01-08 09:10:34 +00:00
Dana Jansens
b8f89ee368 ignore focus events from grabs 2003-01-08 09:05:38 +00:00
Dana Jansens
d5cff9617c rm _focus, its no longer used 2003-01-08 08:43:41 +00:00
Dana Jansens
fade5572e3 handle focus events SOO much more simply. and it works. fuck yes. at last. i think i can rest. 2003-01-08 08:40:03 +00:00
Dana Jansens
bd748f7402 rework focus event handling. does it basically like ob2 did now. and it seems to work too :> 2003-01-08 07:41:17 +00:00
Dana Jansens
3b4d453f90 rm old debug printfs 2003-01-08 06:47:13 +00:00
Dana Jansens
9bfc977827 make focus work without races. 2003-01-08 05:26:49 +00:00
Dana Jansens
bcc9f6812b stop compressing enter/leave events.. this might be responsible for the focu sfuckups? 2003-01-07 22:02:43 +00:00
Dana Jansens
e5eb783aa2 ignore the right about of unmap notifies 2003-01-07 19:54:00 +00:00
Dana Jansens
a2de94e91e in synch mode, chew up 100% cpu, cuz we cant select on the display's fd 2003-01-07 19:24:38 +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
f1ce4e660f send config req's to the master too 2003-01-07 07:34:11 +00:00
Dana Jansens
19eb13679d abort() on X errors that aren't BadWindow errors 2003-01-07 07:24:39 +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
85b0dc80cf add comment for findScreen 2003-01-07 04:06:34 +00:00
Dana Jansens
711a7d8c56 supply python routines for next/prev workspace 2003-01-07 02:24:43 +00:00
Dana Jansens
1f8b8425ae killa a debug printf 2003-01-06 07:32:26 +00:00
Dana Jansens
f3865bb12c ignore num/caps/scroll lock in events 2003-01-06 06:02:22 +00:00
Dana Jansens
d13f021b8b add support for wm_window_role 2003-01-04 19:09:52 +00:00
Dana Jansens
83ff31f8bf when a window focused that was the last focused already (this happens from grabs), dont unfocus it, just let it be 2003-01-04 06:02:42 +00:00
Dana Jansens
bf404e092b make the frame window override-redirect 2003-01-04 05:18:33 +00:00
Dana Jansens
1fd2c6c2b6 s/True/true/ 2003-01-04 04:51:49 +00:00
Dana Jansens
c33ccf60cb make the frame window override-redirect 2003-01-04 04:49:53 +00:00
Dana Jansens
867d3d9a94 rm consts that wont compile on some libfreetype's 2003-01-04 01:31:47 +00:00
Dana Jansens
8c4357fccb keep track of the last input event time 2003-01-04 01:18:24 +00:00
Dana Jansens
527697d6ae add -shadow 2003-01-04 00:12:21 +00:00
Dana Jansens
06388d73b7 restart works 2003-01-03 22:06:08 +00:00
Dana Jansens
86a2bed659 remove the block on shutdown 2003-01-03 20:10:25 +00:00
Dana Jansens
89e6d5c0e6 add/lower work 2003-01-03 18:21:28 +00:00
Dana Jansens
37c2e0f329 dont print every focus/crossing event 2003-01-03 18:17:54 +00:00
Dana Jansens
9ec1f7cdba fire the master first 2003-01-02 21:51:30 +00:00
Dana Jansens
a6661d587c bindings work. now they have a reset key too. 2002-12-31 06:59:46 +00:00
Dana Jansens
d7a30f93b5 so close to keybindings. wont link for now. 2002-12-30 22:27:46 +00:00
Dana Jansens
5fdd493d0d buttons have their pixmaps! 2002-12-27 10:07:57 +00:00
Dana Jansens
8bae1352cb fix braces 2002-12-27 09:25:40 +00:00
Dana Jansens
8c2dfe5de4 deal with when nothing has focus anymore 2002-12-27 09:18:54 +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
236f68056d fix booge bug that makes widgets not change their background when changing from a texture to a color when a color had been set previously 2002-12-26 18:08:48 +00:00
Dana Jansens
2b2f81b93c support the button pressed resources better 2002-12-26 17:22:53 +00:00
Dana Jansens
5029fc97c8 add newish stuff 2002-12-26 12:03:13 +00:00
Dana Jansens
e32610e7b1 better support for gettext 2002-12-26 11:58:57 +00:00
Dana Jansens
150c28620e build fixes for evetdispatcher 2002-12-26 10:58:05 +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
41bdbec9c6 set CXXFLAGS better 2002-12-25 20:28:12 +00:00
Dana Jansens
b34824a4e2 global python scripts. client motion/resizing is all done via python now 2002-12-25 04:54:44 +00:00
Dana Jansens
f9107b5c5a use the -I's in CFLAGS for swig 2002-12-25 02:05:39 +00:00
Dana Jansens
bf49e76420 python. no more guile. python. 2002-12-24 23:31:38 +00:00
Dana Jansens
5a139f7263 add the swig generated files 2002-12-24 21:27:39 +00:00
Dana Jansens
5869cc29ef wrap otk with swig/python 2002-12-24 21:27:16 +00:00
Dana Jansens
06de24ec66 more api cleanups 2002-12-20 15:33:58 +00:00
Dana Jansens
723739dafe api cleanups 2002-12-20 15:26:34 +00:00
Dana Jansens
77a8e11660 can tell where events are coming from! 2002-12-18 11:34:29 +00:00
Dana Jansens
db23fe0584 do need display then 2002-12-18 10:24:22 +00:00
Dana Jansens
e25a69cce8 dont need to include application here 2002-12-18 10:23:41 +00:00
Dana Jansens
25d1e3538b use OB Widgets for everything 2002-12-18 09:46:24 +00:00
Dana Jansens
84d777e89f make shit protected 2002-12-18 08:46:48 +00:00
Dana Jansens
62d719d6b7 dont pass a const 2002-12-18 08:42:40 +00:00
Dana Jansens
e7bb906637 show all children on show() 2002-12-18 08:39:16 +00:00
Dana Jansens
70eb03ad50 add an OBBackgroundWidget and use it for setting colors so far. 2002-12-18 02:28:44 +00:00
Dana Jansens
dd3decc319 fuck you basewidget 2002-12-11 00:50:26 +00:00
Dana Jansens
d691094cf7 handle config req's in dispatcher properly.
no more basewidget again.
2002-12-08 06:48:09 +00:00
Dana Jansens
1cfc76577d reverting.. that was lame 2002-12-04 14:23:25 +00:00
Dana Jansens
c187fbdf60 move event handling into basewidget again <FLINCH>
add the basewidget class
2002-12-04 13:14:11 +00:00
Dana Jansens
301adc8bc2 split up widget and basewidget 2002-12-04 13:07:40 +00:00
Dana Jansens
7dc834cc93 make setStyle() recursive 2002-12-04 11:25:43 +00:00
Dana Jansens
777be62a3a change the builtin testing font 2002-12-04 09:26:42 +00:00
Dana Jansens
fbc516442d add suport for XMotionEvents 2002-12-04 08:54:43 +00:00
Dana Jansens
56d7b547ae button press/releases WORK 2002-12-04 07:55:52 +00:00
Dana Jansens
4f01802c8c actions class can sorta handle mouse enter/leave and press/release events 2002-12-04 07:12:13 +00:00
Dana Jansens
fa05dc56ea give the grips cursors 2002-12-04 03:47:59 +00:00
Dana Jansens
bdc491ccfe map and unmap work great now yay 2002-12-04 01:29:01 +00:00
Dana Jansens
22bd294c7b unregister for events when destroyed 2002-12-04 01:02:56 +00:00
Dana Jansens
1fa445c880 handle configure requests 2002-12-04 00:26:45 +00:00
Dana Jansens
bbdfd8f1d6 scratch that 2002-12-04 00:04:27 +00:00
Dana Jansens
52b83a9dbb handle configurerequests when we cant find a target registered for them 2002-12-04 00:03:48 +00:00
Dana Jansens
829ce05c7c reverse the logic. makes more sense i think 2002-12-03 23:56:04 +00:00
Dana Jansens
ee896d9d66 no space on teh top or bottom of text.. 2002-12-03 21:32:03 +00:00
Dana Jansens
26adc8853b label and focuslabel update their textures automatically on a style change 2002-12-03 19:10:03 +00:00
Dana Jansens
f890d31d6b make setStyle virtual 2002-12-03 19:02:36 +00:00
Dana Jansens
948feddc2e update the textures being used on setStyle() calls 2002-12-03 19:01:41 +00:00
Dana Jansens
bf95658de2 show the Xft version nicer 2002-12-03 15:41:03 +00:00
Dana Jansens
cac2131e68 add otk_test 2002-12-03 09:02:37 +00:00
Dana Jansens
646a10bcc3 labels use half the bevel width for text 2002-12-03 08:58:45 +00:00
Dana Jansens
c6f228f3ff xft2 works. and works good. 2002-12-03 08:54:51 +00:00
Dana Jansens
74cb09bb2c handle map events with the Openbox class 2002-12-02 21:06:16 +00:00
Dana Jansens
fb3848450e window decorations use "unmanaged" widgets now. 2002-12-01 11:45:55 +00:00
Dana Jansens
fac1a6581b typo in comment 2002-12-01 11:40:52 +00:00
Dana Jansens
4d1a90b0d2 add a recursive flags to OtkWidget::show/hide
dont delet eshit in the style from button's destructor
2002-12-01 10:57:49 +00:00
Dana Jansens
6f0b72e8e5 big nono 2002-11-17 16:00:12 +00:00
Dana Jansens
1d897f432e add the config header and emacs comment to all the .cc's 2002-11-17 09:41:58 +00:00
Dana Jansens
638d4e6f19 change the style-load-error msg 2002-11-16 14:32:26 +00:00
Dana Jansens
12a95bfdb3 add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display.
Exit when all the "root windows" are hidden.
Support the WM_DELETE protocol to hide a "root window".
2002-11-16 14:30:18 +00:00
Dana Jansens
3bc1f37469 better msgs 2002-11-16 13:53:03 +00:00
Dana Jansens
34a9f87ed2 print a warning if more than one main widget is set 2002-11-16 13:52:13 +00:00