Dana Jansens
c768a7dae7
catch focus out events on the frame window - this happens with revert to parent when a window is iconified. we get focusin on the frame without a focus out - which then makes us fallback. but catch the resulting focusout on the frame to make the window lose its focused decor
2007-06-02 03:16:02 +00:00
Dana Jansens
a866259d1f
when finding edges and we're omnipresent only use windows on screen
2007-06-02 00:12:37 +00:00
Dana Jansens
10f79f4dae
change which windows are used for finding edges. its the same as window resistance really now. and works if the window isnt on the current desktop
2007-06-02 00:05:06 +00:00
Dana Jansens
2b28aa8c41
smrts.
...
compare windows for restacking based on their desktops and if they are iconified. dont compare to irrelavent ones. also if the sibling isn't valid then don't use it.
2007-06-01 23:46:38 +00:00
Dana Jansens
22a17d3a28
only do restack checks on windows that are visible
2007-06-01 23:41:53 +00:00
Mikael Magnusson
47529e777f
revert 7246 and simplify action_raiselower a bit, turns out 7246 wasn't needed for that after all
2007-06-01 23:39:52 +00:00
Dana Jansens
3547fe26ed
formatting
2007-06-01 23:24:01 +00:00
Mikael Magnusson
0f677834e2
have stacking_restack_request return a bool that says if it did something with TopIf/BottomIf (other cases always return true)
2007-06-01 23:20:05 +00:00
Dana Jansens
819be4fea8
missing a var name
2007-06-01 22:58:41 +00:00
Mikael Magnusson
3c4e59d597
i think this would overflow?
2007-06-01 21:36:16 +00:00
Dana Jansens
3da77dbf71
big explanation
2007-06-01 16:32:51 +00:00
Dana Jansens
668e855b96
fix java
2007-06-01 16:14:03 +00:00
Dana Jansens
eb237bf379
add comment
2007-06-01 05:21:54 +00:00
Dana Jansens
af42ac2a53
less configure events on mapping
2007-06-01 05:21:09 +00:00
Dana Jansens
32b64b6cf5
fix comment
2007-06-01 04:59:57 +00:00
Dana Jansens
9b5770277d
less configurenotify spam
2007-06-01 04:54:42 +00:00
Dana Jansens
fba24cf073
make the default drag threshold 8px
2007-06-01 01:56:46 +00:00
Dana Jansens
2d9260f8c4
make escape close the whole menu
2007-05-31 23:30:50 +00:00
Dana Jansens
55886f27aa
nothing really..
2007-05-31 23:26:34 +00:00
Dana Jansens
6fbeeb8032
don't hover buttons while the pointer is grabbed
2007-05-31 23:15:26 +00:00
Dana Jansens
50a0bf090b
when reconfiguring, readjust clients positions based on the change in their decoration sizes and their gravity
2007-05-31 23:07:16 +00:00
Dana Jansens
e8cd4c4d8d
fix ooffice (and all stupid windows that use static gravity)
2007-05-31 21:33:51 +00:00
Dana Jansens
5588c49335
add an allow_fallback option when opening a theme
2007-05-31 15:40:41 +00:00
Dana Jansens
467b7f4d4d
make it possible to iconify a modal window when its parent is the only window left on the desktop.
...
when focus falls off of a window, don't allow focus to go back to that same target - when a window is iconified is the case.
what focus_fallback_target, to check whe allow_refocus is false, check where focus will actually be sent
2007-05-30 20:53:00 +00:00
Dana Jansens
4ff0d49cc7
deiconify modal windows when you try to focus their parent
2007-05-30 20:46:46 +00:00
Dana Jansens
5074d902aa
add a big comment about more menus
2007-05-30 20:33:54 +00:00
Dana Jansens
24df4baa6b
dont need to recurse
2007-05-30 20:30:24 +00:00
Dana Jansens
7d93a21878
let new utility windows get focus under the normal rules
2007-05-30 19:16:19 +00:00
Dana Jansens
b2dfa2fc9b
don't hide the dock when the mouse goes into a dock app
2007-05-30 17:55:36 +00:00
Dana Jansens
999cf25006
missing header
2007-05-30 13:52:31 +00:00
Dana Jansens
9a3464b8e3
that change was a bug after all. mika was right!
2007-05-30 02:19:02 +00:00
Dana Jansens
5ed8f27186
fix a segfault
2007-05-30 02:03:29 +00:00
Dana Jansens
16e40dbd0c
send dcop's output to dev null
2007-05-29 23:11:17 +00:00
Dana Jansens
a9b411ce84
fix the bottom decor stuff for maximized windows. kill the border and tings at the bottom for fullmax windows.
2007-05-29 21:04:06 +00:00
Dana Jansens
e473ec2b60
dont center utility and stuff windows on screen
2007-05-29 20:47:46 +00:00
Dana Jansens
a4150ae3d9
add comments
2007-05-29 12:26:41 +00:00
Dana Jansens
ac72dafab4
fix clients with static gravity
2007-05-29 12:23:52 +00:00
Dana Jansens
292cb8b42e
center splash screens like parentless transients
2007-05-29 12:21:46 +00:00
Dana Jansens
a71a98b667
set a OB_ICONIFY_ALPHA define in misc.h for the 3 places to all use
2007-05-29 03:55:56 +00:00
Dana Jansens
7b14d44b39
g_spawn_async wants a char**, not const
2007-05-29 03:53:57 +00:00
Dana Jansens
cb5cc0d7ac
trying to be as cool as mika /._.;\
2007-05-29 03:40:43 +00:00
Dana Jansens
1d267613a3
dont free random stuff
2007-05-29 03:38:18 +00:00
Dana Jansens
13f812174e
let gcc do the math. it should be compiler optimized away
2007-05-29 03:37:01 +00:00
Dana Jansens
28ad33fd5f
brackets ftw. opacity for rgba's works.
2007-05-29 03:36:12 +00:00
Mikael Magnusson
5e98d8a452
set alpha based on iconicness in client list menus
2007-05-29 03:32:04 +00:00
Dana Jansens
f38be06788
set the alpha based on iconicness
2007-05-29 03:30:43 +00:00
Dana Jansens
66d51f2635
alpha :x not width
2007-05-29 03:28:40 +00:00
Dana Jansens
319fb35962
add the rgba alpha to the menu entries
2007-05-29 03:24:04 +00:00
Dana Jansens
c4eaa94385
put an alpha channel in the rgba texture
2007-05-29 03:22:55 +00:00
Dana Jansens
6e06e45fb6
fix hack for windows moving by their decor size
2007-05-29 00:42:16 +00:00
Mikael Magnusson
39d94f0db0
no pointless using of the comma operator
2007-05-29 00:14:56 +00:00
Mikael Magnusson
e215fc0110
make next/previouswindow and dirfocus actions show the focus_cycle_indicator even if they target the focused window, remove an unused variable from focus_cycle but not from focus_directional_cycle, there we use it to fix the aforementioned indicator.
2007-05-29 00:06:51 +00:00
Dana Jansens
6fa15756c3
wasted checked, configure will do them for us
2007-05-29 00:04:07 +00:00
Dana Jansens
ba2de2d512
give the client a 0 border again.
2007-05-28 23:15:51 +00:00
Dana Jansens
56b01b73a8
have the clientpadding color show during resize, and no flashing on unmap. we win !
2007-05-28 22:46:28 +00:00
Dana Jansens
2aa0a6b01b
get rid of the plate window
2007-05-28 22:30:59 +00:00
Dana Jansens
a1511e4655
get rid of the "inner" window
2007-05-28 22:18:32 +00:00
Dana Jansens
3e8d8108e7
when focus goes to the root window, and it is coming from another screen, fall back to a client
2007-05-28 21:57:11 +00:00
Dana Jansens
6e5d9c5337
use new functions to cancel key grabs
2007-05-28 21:56:27 +00:00
Dana Jansens
c7731ecb8d
a better ordering for mapping window configure events
...
configure the window to find where it will actually be, with all the startup states off. then apply the startup states to those dimensions
2007-05-28 21:08:28 +00:00
Dana Jansens
78ff91ae6c
fix comment
2007-05-28 20:16:43 +00:00
Dana Jansens
b30380700f
tell the ksplash screen we've started up, through the dcop command line program, if it's around
2007-05-28 20:03:57 +00:00
Dana Jansens
c726a1f709
set the current theme in a root property
2007-05-28 13:37:32 +00:00
Dana Jansens
9d8e1da42a
remove ob_config atom, its not used
2007-05-28 13:33:44 +00:00
Dana Jansens
123ee25c59
final touches for r6990-6992
2007-05-28 04:26:14 +00:00
Dana Jansens
2a84418ee4
missed one
2007-05-28 04:20:02 +00:00
Dana Jansens
be3b78736f
better more obvious code
2007-05-28 04:18:54 +00:00
Dana Jansens
2f579df4e7
call client_reconfigure after setup_decor_and_functions to make the changes appear
2007-05-28 04:14:03 +00:00
Dana Jansens
cc2237bb4f
fix a comment
2007-05-28 04:09:39 +00:00
Dana Jansens
0299cdedd7
make mouse clicks higher up in the menu select the submenu
2007-05-28 03:48:04 +00:00
Dana Jansens
f8aab34e52
dont make motions in menus outside of the active menu, its child, and its parent, do anything
2007-05-28 03:31:06 +00:00
Dana Jansens
6a2010199b
OPTIMZIE
2007-05-28 03:05:03 +00:00
Dana Jansens
78c80b68dc
7/16 opacity! heh
2007-05-28 03:02:54 +00:00
Dana Jansens
451fb42cd0
3/8 opacity for iconic windows
2007-05-28 03:02:00 +00:00
Dana Jansens
db4bc708d3
make iconic windows have 50% opacity in the alt-tab box
2007-05-28 02:56:35 +00:00
Dana Jansens
8205b6581d
update the strut when strut_partial changes
2007-05-28 02:23:23 +00:00
Dana Jansens
2050e99a5f
dont count non-normal windows as parents, in the group too
2007-05-28 02:21:10 +00:00
Dana Jansens
a5aa1af32c
typo again!?
2007-05-28 02:15:47 +00:00
Dana Jansens
5ec53919bd
dont count non-normal windows as parents
2007-05-28 02:15:31 +00:00
Dana Jansens
9182f1a603
typo and ()s
2007-05-28 02:13:17 +00:00
Dana Jansens
301016fd2b
don't give focus to transient when it is ambiguous, but only if they have a parent
2007-05-28 02:12:36 +00:00
Dana Jansens
e9f6255b18
properly search for a focused window in the transient tree
2007-05-28 02:02:13 +00:00
Dana Jansens
30912d467a
do try_configure to find out what width the window will actually be, before adjust the x/y based on gravity, if they didn't specify the x/y
2007-05-28 01:42:50 +00:00
Dana Jansens
33406a1c7f
when compressing motion events use both xy and rootxy
2007-05-28 01:07:45 +00:00
Dana Jansens
461ae2a833
add a comment and make it smarter about when to let you focus cycle to windows with modal children
2007-05-28 00:38:44 +00:00
Dana Jansens
e48dce6707
add a comment
2007-05-28 00:35:11 +00:00
Dana Jansens
16fcb1213d
when you focus a window, bring any modal children it has to that desktop
...
when falling back, return the window which actually was focused by client_focus
let you focus cycle to windows when their modal window is on another desktop (it will be brought over)
2007-05-28 00:33:58 +00:00
Dana Jansens
8874ec1fc4
put transients on the current desktop when their parent is on all desktops
2007-05-28 00:05:51 +00:00
Dana Jansens
078f6e5ad0
properly align stuff when the icon is on the right side
2007-05-27 23:33:27 +00:00
Mikael Magnusson
0c8c23e8fd
only hilight the first entry when opening the menu with a keybind
2007-05-27 23:11:14 +00:00
Dana Jansens
c53db44602
ignore focusout notifyungrab.
...
fix focus bug in firefox where you use gmarks popup and when you go to a page with it, it think focus went to a black hole
2007-05-27 23:09:22 +00:00
Dana Jansens
b8fded742a
make focuslast only apply to switching desktops, like 3.3.1
2007-05-27 22:50:40 +00:00
Dana Jansens
568ca95bc2
unused variables
2007-05-27 22:48:40 +00:00
Dana Jansens
5395d30623
put xerrors in the debug output when they are being ignored
2007-05-27 22:39:57 +00:00
Dana Jansens
65bf23c27d
when colormap changes and it is installed, reinstall the new one
...
also add a debug print
2007-05-27 22:39:30 +00:00
Dana Jansens
a59540f25a
improve the colormap setting code
2007-05-27 22:38:48 +00:00
Dana Jansens
35889c2854
mssing a break; *^^;*
2007-05-27 22:37:16 +00:00
Dana Jansens
a9ff8217bf
debug prints improved
2007-05-27 22:31:38 +00:00
Dana Jansens
547da27332
only 1 unmap is generated when we reparent the window at startup. not sure when this changed but weve changed our eventmasks, or maybe it was always wrong. but yeh.
2007-05-27 22:23:47 +00:00
Dana Jansens
c189771cef
when an app doesn't specify PPosition or USPosition, then assume its PPosition
2007-05-27 21:30:16 +00:00
Mikael Magnusson
47744e03c3
don't crash when you press enter with nothing selected in the menu
2007-05-27 18:57:51 +00:00
Mikael Magnusson
7f9080c6a0
hilight the first normal entry also if there is a menuheader/separator before it
2007-05-27 17:31:22 +00:00
Dana Jansens
914d18f364
fix formatting
2007-05-27 16:35:44 +00:00
Dana Jansens
01a7a9edb7
fix window gravity when there is a border width
2007-05-27 16:33:59 +00:00
Dana Jansens
8e19e99ac8
debug print modified and the confignotify test
2007-05-27 15:28:16 +00:00
Dana Jansens
2521fd24c5
don't set the above member in synthetic configurenotify events
...
add more output in confignotify test
2007-05-27 14:49:44 +00:00
Dana Jansens
cace930f8c
only need to call xconfigurewindow once
2007-05-27 14:33:37 +00:00
Dana Jansens
10002eaa27
don't queue focusing actions. so they don't hide the menu right away
2007-05-27 05:07:17 +00:00
Dana Jansens
fe99440c16
don't set the global moving state unless the move/resize is accepted
2007-05-27 04:16:14 +00:00
Dana Jansens
47986dcd9c
always set all the coords, as the x/y only change when resizing the border too
2007-05-27 00:35:00 +00:00
Mikael Magnusson
c11d83e5ae
this fits in 80 cols on one line and oh my god I wrote where instead of we're :(((((((((((((((((( sad face
2007-05-26 23:32:25 +00:00
Mikael Magnusson
fb952d863a
don't fake an enter event if where still in the same window
2007-05-26 23:30:59 +00:00
Dana Jansens
a38012f2ff
only readjust the frame size when the client needs to be resized
2007-05-26 23:12:29 +00:00
Dana Jansens
5883164b19
fix for not changing clients' border widths on them
2007-05-26 23:09:34 +00:00
Dana Jansens
2e529e3ff3
don't change clients' borders
2007-05-26 22:55:13 +00:00
Dana Jansens
306ea13177
we set borderwidth to 0 so always give that to the client consistently
2007-05-26 22:41:31 +00:00
Dana Jansens
a4f868a195
send the client's border width in configurenotify messages, so it can get the right offset
2007-05-26 22:28:27 +00:00
Dana Jansens
5e9e266722
change in how things are ungrabbed to avoid grabwhilenotify. don't ungrab every key press. just ungrab the passive grab when there is no active grab and we are going to move focus.
...
this should be less intrusive and seems to work
2007-05-26 22:13:34 +00:00
Dana Jansens
4a45cabd4f
revert r6802.
...
it seems that focusin/out notifygrab business is only affected by *keyboard* grabs, not pointer grabs, at least not passive pointer grabs
2007-05-26 22:03:07 +00:00
Dana Jansens
aa7c36d1bc
only kill focus cycling when the window being destroyed was in the list of targets
2007-05-26 21:22:28 +00:00
Dana Jansens
11c4ce4903
don't need the client destructor now
2007-05-26 21:09:48 +00:00
Dana Jansens
5d9b059601
oops was saving tthe options in the wrong place.
...
save the panels/dockwindows/desktopwindows/alldesktops options when focus cycling starts
2007-05-26 21:03:48 +00:00
Dana Jansens
c090f63011
save the panels/dockwindows/desktopwindows/alldesktops options when the focus cycling popup is shown
2007-05-26 20:56:00 +00:00
Dana Jansens
12bbc0cc43
use focus_cycle_stop to cancel focus cycling
2007-05-26 20:52:21 +00:00
Dana Jansens
508ce538c0
when canceling focus cycling, cancel both normal and directional
2007-05-26 20:48:52 +00:00
Dana Jansens
a76ac8205c
don't crash when a window adds itself to the focus order while cycling
2007-05-26 20:43:08 +00:00
Dana Jansens
959fff5e1c
drop the startup notify timeout from 30 to 20 seconds
2007-05-26 19:58:20 +00:00
Dana Jansens
23f9ae2768
add a comment about the last revision
2007-05-26 19:48:55 +00:00
Dana Jansens
47a4c3324a
don't map the client window when grabbing the frame. we need to set up the client and send configurenotifies and stuff *before* sending the map notify
2007-05-26 19:46:28 +00:00
Dana Jansens
16ae58681e
remove a debug print
2007-05-26 17:36:05 +00:00
Dana Jansens
09f4483ce0
fix titleleft and titleright for fullmax windows without decorations
2007-05-26 15:53:05 +00:00
Dana Jansens
a8fe821fdd
use the PSize and USSize hints to decide to resize windows on map or not
2007-05-26 15:38:54 +00:00
Dana Jansens
e9ccc6a82e
fix a debug print
2007-05-26 15:25:57 +00:00
Dana Jansens
fd2fe67592
+1 in the wrong place meant bad decorations
2007-05-26 15:22:18 +00:00
Dana Jansens
7d164842e0
give focus to new windows when *any* relative already has focus..
...
don't give it when it will not go to the window anyway tho, like if there is already a modal child for it
2007-05-26 14:56:53 +00:00
Dana Jansens
5a1fa9210d
add a debug print
2007-05-26 03:09:45 +00:00
Dana Jansens
b60cf73900
only auto-activate normal windows when they raise themselves (not splash screens or panels or desktops - what desktop would raise itself heh)
2007-05-26 03:08:07 +00:00
Dana Jansens
de76611e8a
only preserve focus for normal omnipresent windows
2007-05-25 23:42:44 +00:00
Dana Jansens
40f20e93ca
move some code aaround for focusing. proper layer calculation for fullscreen windows based on focus. hopeuflly not break sometihng else.
2007-05-25 22:55:37 +00:00
Dana Jansens
9d0dfca7b0
i broke desktop switching
2007-05-25 21:40:24 +00:00
Dana Jansens
e10c54137a
let you use control button to run keyboard accels in menus
2007-05-25 19:01:57 +00:00
Dana Jansens
5d5156dcb3
dont use empty desktop names from the rc file
2007-05-25 17:49:15 +00:00
Dana Jansens
1f71a0db72
small optimization heh for screen_set_desktop - set the root proerty less
...
initialize screen_last_desktop properly
2007-05-25 15:49:16 +00:00
Dana Jansens
ad8e8d4988
less negatives means less confusing.. but yeah. get rid of omnipresent check in focus_fallback
2007-05-25 15:41:14 +00:00
Mikael Magnusson
cca8a90301
haha typo etc
2007-05-25 15:36:26 +00:00
Mikael Magnusson
91dbbeb65e
missed a spot
2007-05-25 15:35:24 +00:00
Mikael Magnusson
ddd2a4da21
check desktop switching stuff in screen_set_desktop
2007-05-25 15:34:31 +00:00
Dana Jansens
336011efb1
prevent flicker in the follow actiosn again instead of in focus fallback. focus fallback needs to be very reliable.
2007-05-25 15:23:48 +00:00
Dana Jansens
7cf4c970ae
debug print in focus.c
...
when focus goes to something that isn't a client (window already unmapped) then set focus_client to NULL so we know nothing has focus right now
2007-05-25 15:02:20 +00:00
Dana Jansens
6a9d502f20
put the actions back so they don't have to be smart.
...
make focus_fallback not send focus anywhere if the new target is the same as what is already focused
2007-05-25 14:44:49 +00:00