Commit graph

6591 commits

Author SHA1 Message Date
Dana Jansens
512d93afcc backport the changes to render/ from the alttab branch (commit 3592046b2b) in master, as the iconcache changes depend on this
git show 3592046b -- render
2008-02-14 14:44:17 -05:00
Mikael Magnusson
e06ddf9f22 put the char member at the bottom of the struct so that it doesnt mess up alignment for the other members (assuming the compiler doesn't pad the struct appropriately anyways) 2008-02-14 14:35:28 -05:00
Dana Jansens
911413d86c obprompts do not have a stacking layer, as they don't appear directly in the stacking list 2008-02-14 14:30:10 -05:00
Dana Jansens
cd3aa44b6a draw a box inside the key-focused button in an ObPrompt. also fix rendering the buttons when they are parent-relative. 2008-02-14 14:24:37 -05:00
Dana Jansens
baf1a0919d fix min-size calculations for lineart textures 2008-02-14 14:24:37 -05:00
Dana Jansens
415c0d2721 make ObPrompts resize and redraw correctly when reconfiguring and changing themes with them open 2008-02-14 14:24:37 -05:00
Dana Jansens
c778cf15cb don't ping everything all the time. yay. ping when you close, and if it doesn't reply then show the kill prompt. also show a more correct prompt for windows connecting from non-local machines - ask to disconnect them from the X server. 2008-02-14 14:24:37 -05:00
Dana Jansens
4eecbeb611 tell what signal is going to be sent to the client when killing through the dialog 2008-02-14 14:24:37 -05:00
Dana Jansens
74a746e55f use the hover and press button colors (this was a bug) 2008-02-14 14:24:37 -05:00
Dana Jansens
0da49e82ae when drawing and measuring strings in "flow" mode, don't ellipsize so that lines can wrap 2008-02-14 14:24:37 -05:00
Dana Jansens
7b4556b211 don't kill our own ObPrompt windows with kill actions 2008-02-14 14:24:37 -05:00
Dana Jansens
972e1fc5a3 if a prompt is already showing and you try show it again, then make it active. in the "kill this?" prompt use the window's original title without any of the openbox-appended-ness 2008-02-14 14:24:36 -05:00
Dana Jansens
d714bb5708 prompt to kill windows when they are not responding 2008-02-14 14:24:07 -05:00
Dana Jansens
c7af49b5c5 let you specify return codes for the different buttons in a prompt, and specify a callback function for the prompt for when it is closed 2008-02-14 14:24:07 -05:00
Dana Jansens
ea28a9e7ab position the buttons in the bottom right instead of centering them 2008-02-14 14:24:07 -05:00
Dana Jansens
deca45dada key input works for ObPrompt windows now 2008-02-14 14:24:07 -05:00
Dana Jansens
a5005506a8 make the prompt buttons respond to button presses. keyboard input code is there too but not working yet. 2008-02-14 14:24:07 -05:00
Dana Jansens
61b8f52430 properly place the msg texture 2008-02-14 14:24:07 -05:00
Dana Jansens
457fdc5ccb Make ObPrompt windows get managed as clients, and make them able to reconfigure as well. 2008-02-14 14:24:07 -05:00
Dana Jansens
974e88581f give prompts a border, and fix how they are laid out. and make them use the multi-line text capabilities in render for the message 2008-02-14 14:24:07 -05:00
Dana Jansens
7867ced622 allow font rendering to use multiple lines 2008-02-14 14:24:07 -05:00
Dana Jansens
c313b219a2 you can create dialog windows called "prompts" which have a message and some buttons! they don't do anything interesting yet. 2008-02-14 14:24:07 -05:00
Dana Jansens
f9b59a4911 make the internal window type more easily inheritable 2008-02-14 14:24:07 -05:00
Dana Jansens
f1f61ff703 update the indent style guidelines 2008-02-14 19:40:03 +01:00
Dana Jansens
27177e498b let you match per-app settings based on the window type 2008-02-14 19:40:03 +01:00
Dana Jansens
619fd7e666 don't force fake enter events while there is a grab on the pointer. this fixes focus switching during a move/resize from mouse-button-bound actions. 2008-02-14 19:40:03 +01:00
Dana Jansens
8f5540f76d turn the new openbox.png into the default icon.h 2008-02-14 19:40:03 +01:00
Dana Jansens
c0333e9452 _net_active_window shouldn't change desktop, is the general policy concensus. 2008-02-14 19:40:03 +01:00
Dana Jansens
8186a81fe0 split menu overlap into x and y components 2008-02-14 19:40:02 +01:00
Dana Jansens
6bda8c2903 speed up the pyramid gradient using memcpy's. also make it not crash for 1px high textures.
here are some sample profiling results.  pyramid2 is the new code

  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name

 58.78      1.54     1.54      255     6.04     6.04  gradient_pyramid1
 40.46      2.60     1.06      255     4.16     4.16  gradient_pyramid2

 54.88      2.25     2.25      504     4.46     4.46  gradient_pyramid1
 44.88      4.09     1.84      504     3.65     3.65  gradient_pyramid2
2008-02-14 19:40:02 +01:00
Dana Jansens
b92cb6a08a remove an XXX comment, the sanity check seems to have worked out fine. 2008-02-14 19:40:02 +01:00
Dana Jansens
91a1b08909 force the resize popup to be on-screen (not negative position) 2008-02-14 19:40:02 +01:00
Dana Jansens
9c72998684 a small optimization for the vertical gradients, and use the same log(n) strategy to use less memcpy's for filling out the horizontal gradients 2008-02-14 19:40:02 +01:00
Dana Jansens
3611c8210c use memcpy's to speed up vertical gradients too. split the fancy memcpy() code out into the repeat_pixel function. 2008-02-14 19:40:02 +01:00
Dana Jansens
1d00d99470 use memcpy's to make splitvertical gradient much faster - using log n memcpy's is much quicker than setting a pointer value n times
Here are some profiling results.  splitvertical1 is the original code, splitvertical2 is some slight improvements in locality for it, and splitvertical3 is the new O(log n) memcpy code

  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
 49.44      0.88     0.88     1063     0.83     0.83  gradient_splitvertical1
 47.19      1.72     0.84     1063     0.79     0.79  gradient_splitvertical2
  2.81      1.77     0.05     1063     0.05     0.05  gradient_splitvertical3

i also tested this with 'time' to draw 1000 gradients, and the new code used approximately half the user time, and finished 10 seconds quicker.  so yeah, it's magical and works well.
2008-02-14 19:40:02 +01:00
Dana Jansens
18a35e0491 add --enable-gprof option for configure 2008-02-14 19:40:01 +01:00
Dana Jansens
ed81992aea make rendertest exit cleanly when it is unmapped (iconify/desktopchange) 2008-02-14 19:40:01 +01:00
Mikael Magnusson
83c739df91 typo in comment 2008-02-14 19:40:01 +01:00
Dana Jansens
38bef0a38b Make a pending ReplayPointer happen before moving/showing/hiding a window in an action.
Commit c907f5af4a broke kdesktop again, so we have to fix it at an even finer level.
2008-02-14 19:39:17 +01:00
Mikael Magnusson
c907f5af4a Wrap the focus action in actions_client_move.
When alt-tabbing to iconified audacious and the playlist or eq window pops up under
the cursor, they "stole" focus from the main window.
2008-02-13 21:37:28 -05:00
Mikael Magnusson
d5a25283dc Fix a minor issue with lastdesktop right after startup. 2008-02-13 21:36:16 -05:00
Mikael Magnusson
eddcfdfdcd Update dutch translation. 2008-02-12 19:48:31 +01:00
Dana Jansens
a161f4e812 apparently gnome has hidden gnome-settings-daemon in libexec, so put that in the autostart.sh 2008-02-11 13:30:40 -05:00
Dana Jansens
2e96d75364 missing >/dev/null for a which statement 2008-02-11 09:43:31 -05:00
Dana Jansens
be6fd760f1 using () for a class that doesn't inherit breaks old python 2008-02-11 09:40:24 -05:00
Dana Jansens
64398a2b5f grammar hammer 2008-02-10 02:06:46 -05:00
Dana Jansens
f0d31a52b7 make white font shadows (negative shadowtint) work right.. this has been busted a long time. thank you nvidia. 2008-02-10 01:52:08 -05:00
Dana Jansens
b2e52c7b48 make xdg-autostart check for PyXDG and print a better error than a backtrace. and make the executing actually work 2008-02-09 19:02:08 -05:00
Dana Jansens
11408575b3 make an xdg-autostart script. it is very fancy. 2008-02-09 19:02:03 -05:00
Mikael Magnusson
e5f21a4a87 Update swedish translation.
NB: using 3.4.6.1 to mean the --config-file translation is included and 3.4.6 for everything before that.
2008-02-09 09:42:31 +01:00