Commit graph

273 commits

Author SHA1 Message Date
Dana Jansens
ffba11aeb0 load menu plugins automatically from whats in the menu file
menu fixups
move enabled into the 'normal menu item' specific data stuff
2003-08-28 06:32:27 +00:00
Dana Jansens
615cbd9607 change the menu plugin interface, no need for the create/destroy functions any more.
redo the client-menu plugin to work with the new menu api
2003-08-28 05:44:13 +00:00
Dana Jansens
cbd0e4d308 add the client_list_menu plugin 2003-08-14 06:01:39 +00:00
Dana Jansens
a88e58e227 add the destructor for menus 2003-08-14 06:01:26 +00:00
Dana Jansens
35ed95fe18 move the resistance plugin into the kernel. dont resist when move/resizing with the keyboard, only when doing it with the mouse. 2003-08-12 19:57:04 +00:00
Dana Jansens
1045079482 adjust for changes to the parsing api.
split the menu into its own file.
2003-08-12 19:18:21 +00:00
Dana Jansens
a414fe42d4 remove the keyboard plugin shit 2003-08-12 07:27:19 +00:00
Dana Jansens
c90da6da78 move the keyboard and mouse plugins into the kernel for mucho sexiness.
make workspace changing a grabbed/interactive process like focus cycling is, with the popup and all.
this is some hot shit.
2003-08-12 07:26:16 +00:00
Scott Moynes
a4f023cf3a Some fixes and new bugs. Someone else can do the menus because it is
clear no one gives a fuck what I think and no one else wants a window
manager that doesn't suck the same balls as every other window manager.
2003-08-11 21:19:17 +00:00
Dana Jansens
79e189dbac changes to the timer api, pass the timer to the callback function.
add a desktop-switch popup with the desktop's name
2003-08-09 04:56:12 +00:00
Dana Jansens
f50c2bc2a3 missed changing the resize resist function 2003-08-06 04:11:08 +00:00
Dana Jansens
e74fd76330 remove the <windows> option from the resistance plugin since window and edge resistance have been separated, a 0 value will work now 2003-08-06 04:10:34 +00:00
Dana Jansens
d987d33951 disable the current desktop in the send-to menu 2003-08-06 03:56:34 +00:00
Dana Jansens
8db526a8a5 missed prefix of define 2003-08-05 18:59:59 +00:00
Dana Jansens
dbaa0c1511 pick the xinerama head of the parent if possible 2003-08-05 18:59:39 +00:00
Dana Jansens
985738469e center parentless dialogs on the screen 2003-08-05 18:58:33 +00:00
Dana Jansens
b4b0c6257c let transients go where they requested :( fuck xmms 2003-08-02 17:57:52 +00:00
Dana Jansens
cb3c457b82 place transients better 2003-08-02 06:27:05 +00:00
Dana Jansens
824bfd9d1f omg i found the bug that would make the mouse cursor end up way far from where you started the drag. 2003-08-02 06:18:53 +00:00
Dana Jansens
732990d277 kill warnings 2003-07-31 16:45:50 +00:00
Dana Jansens
07b38ba2c3 dont save/load history. its slow and its stupid. 2003-07-31 08:03:10 +00:00
Dana Jansens
07b66ee1e3 center transients 2003-07-30 17:06:09 +00:00
Scott Moynes
f37a919095 Menu stuff.
Testing may begin.
2003-07-28 02:52:56 +00:00
Dana Jansens
5d58b4fff0 split resistance strengths for screen edges and windows. also a fix for parsing changes, 2003-07-26 06:50:21 +00:00
Dana Jansens
61176f75fb the parsing shit changed but this didnt yet 2003-07-26 06:43:01 +00:00
Dana Jansens
2064042d94 lwindow needs a type 2003-07-25 05:25:19 +00:00
Dana Jansens
f3b42e60d8 double clicks only work on the same window with both clicks 2003-07-24 18:18:02 +00:00
Scott Moynes
d51702affa I had a commit message but my commit got stepped on so fuck it.
No one cares what I think anyway.
If the menu navigation isn't EXACTLY FUCKING RIGHT I WILL REMOVE IT
AND SOME OTHER POOR FUCK CAN PUT UP WITH ALL THE FUCKING BULLSHIT.
2003-07-24 06:10:55 +00:00
Dana Jansens
5be0a82a35 use ob_debug for any debug printing and only display the output when its a debug build or when --debug is passed to it 2003-07-24 06:02:38 +00:00
Dana Jansens
2603255b74 declare vars at top 2003-07-23 15:13:54 +00:00
Dana Jansens
03186a7bab i already fixed this once :) var declarations go first 2003-07-23 15:06:49 +00:00
Dana Jansens
05c0cd5ca7 add the include menu plugin 2003-07-23 04:15:42 +00:00
Scott Moynes
b52b5a6fc0 Timed menu updates. Still needs work. 2003-07-23 04:09:37 +00:00
Scott Moynes
d03c1afac6 Better placement of the client window. Might need some tweaking. 2003-07-23 04:09:11 +00:00
Scott Moynes
68c910b194 Added include_menu.c as an example of how one could write a plugin. 2003-07-23 02:01:56 +00:00
Scott Moynes
0e69ae2b96 * Change xml parsing to pass the parent node, rather than the first
child.
* Add x,y co-ordinates on showmenu action so we can place menus on keypress.
2003-07-23 01:45:44 +00:00
Dana Jansens
221415e97c set the x/y values in the moveresize struct for moveresize key actions 2003-07-22 17:00:19 +00:00
Dana Jansens
3340aaeb4d declare vars at the top of the block 2003-07-22 16:26:19 +00:00
Scott Moynes
fd19711e6a If there is a pid="true" attribute in the <menu plugin="fifo_menu">
tag, append .pid to the fifo files. This allows for more than one
openbox to be run by the same user and use fifo menus.
2003-07-19 19:09:38 +00:00
Scott Moynes
22ff8c587d Menu parsing updates for plugins.
FIFO menus are the only plugin that takes advantage of this.
Example:
<menu id="root" label="Openbox 3">
  <menu id="fonk" label="fonk" plugin="fifo_menu">
  </menu>
</menu>

This creates a FIFO ~/.openbox/fifo_menu/fonk to which you can send
menus to. The menus sent to it must be like
<fifo>
  <item>
   etc...
</fifo>

I think. If my memory serves me right.

It is all hideous, but I just wanted to experiment and see if it was
possible.
2003-07-17 01:40:27 +00:00
Dana Jansens
a95dc346fe prefix and capitalize ObMenu ObMenuEntry and ObMenuEntryRenderType
make the ObMenuEntryRenderType a standard enum instead bitflags
2003-07-10 19:27:12 +00:00
Dana Jansens
bddbe94328 make ob_state a function so it cant be changed outside of openbox.c 2003-07-10 19:06:00 +00:00
Dana Jansens
d1d84711a2 replace the focus_backup with the screen_support_win, we dont need 2 offscreen windows. 2003-07-10 18:44:27 +00:00
Dana Jansens
85112c4d08 prefix the Timer->ObTimer and TimeoutHandler->ObTimeoutHandler shitz 2003-07-10 17:06:30 +00:00
Dana Jansens
122d55fbad prefixing and capitalizing the StackLayer -> ObStackingLayer enum.
less includes in headers for less rebuilding on changes
2003-07-10 17:03:05 +00:00
Dana Jansens
7d943a950e prefixing and capitalization for the Frame->ObFrame struct and the Context->ObFrameContext enum and its constants. 2003-07-10 07:16:19 +00:00
Dana Jansens
ad45ecb6e3 kill warnings 2003-07-10 06:58:58 +00:00
Dana Jansens
2477a38d2f rename the Client struct to ObClient 2003-07-10 06:38:42 +00:00
Dana Jansens
276b2be581 add misc.h with some standard enumerations with proper prefixing and capitalizations.
use the new enums throughout.

provide keycodes and cursors through ob_cursor and ob_keycode functions, which use the new misc.h enums for picking the cursor and keycode.
2003-07-10 06:18:47 +00:00
Dana Jansens
6357583c39 rename 'xinerama' stuff to 'monitors' to be more generic and descriptive. 2003-07-10 05:44:23 +00:00