Dana Jansens
5592351585
give clients being restored from a session a little more flexibility in lpacement so they will go back where they were when saved
2003-10-11 07:35:05 +00:00
Dana Jansens
c2b0272fde
color_black was unused
2003-10-11 06:48:13 +00:00
Dana Jansens
377d20e7bf
use RrColorPixel
2003-10-11 06:47:29 +00:00
Dana Jansens
b49b7c415c
free menuframes when they fail to show themselves
2003-10-11 06:47:11 +00:00
Dana Jansens
7833271d14
switch to the desktop after activating the client. this means that for omnipresent windows, you still move to the desktop on which you selected it.
2003-10-11 04:11:29 +00:00
Dana Jansens
469b0c1ca9
handle case where session saves a 0 width/height (for maximized windows!)
2003-10-11 03:44:05 +00:00
Dana Jansens
34446063fa
if the current SN_WM owner is our window (can this happen?) then ignore it
2003-10-11 03:43:18 +00:00
Dana Jansens
da9bda5e9b
remove the --sm-disable from argv
2003-10-10 16:20:48 +00:00
Dana Jansens
c8678108eb
indenting
2003-10-10 08:28:18 +00:00
Dana Jansens
1be38a0418
set the defaults for typed windows in client_get_all:
...
desktop types get put on all desktops
dock types get put in the ABOVE layer
2003-10-10 08:22:14 +00:00
Dana Jansens
e1eff99176
do client_raise after client_focus for new windows
2003-10-10 06:00:27 +00:00
Dana Jansens
423d70b418
dont leave the focus indicator hanging around when dialogs are disabled
2003-10-10 05:56:12 +00:00
Dana Jansens
6212a5ff9c
same shit different pile
2003-10-10 05:39:59 +00:00
Dana Jansens
6a00a44b99
indenting
2003-10-10 05:36:02 +00:00
Dana Jansens
97ffa9e3e2
make a copy of the color
2003-10-10 05:33:31 +00:00
Dana Jansens
364bb1550a
dont set ret unless you will be returning TRUE
2003-10-10 04:33:12 +00:00
Dana Jansens
6dddd86975
indenting
2003-10-10 04:18:19 +00:00
Dana Jansens
322fc41e49
only restack group windows on the same desktop
2003-10-10 03:45:01 +00:00
Dana Jansens
9eed0756a4
add the focus cycle indicator to directional focus cycling
2003-10-09 19:58:09 +00:00
Dana Jansens
e2389fab78
change the min width of the indicator to 3 and use the actual height of the handle
2003-10-09 19:44:02 +00:00
Dana Jansens
a95a364b9a
for very small windows make sure you can resize them larger
2003-10-09 19:40:37 +00:00
Dana Jansens
da226cdeff
raise grouped util windows with main windows
2003-10-09 19:29:51 +00:00
Dana Jansens
e5f8c683da
smarter avoidance of windows in the focus cycling stuff, doesnt cycle to util windows
2003-10-09 19:29:42 +00:00
Dana Jansens
b84a934ab7
provide function to tell if a client has any group siblings
2003-10-09 19:29:10 +00:00
Dana Jansens
d38c835cef
when the frame is adjusted while the focus_cycle_target is that frame's client, then redraw the indicator
2003-10-09 19:18:20 +00:00
Dana Jansens
ff08e38027
supply focus_cycle_draw_indicator which draws/moves/resizes the focus cycling indicator
2003-10-09 19:17:51 +00:00
Dana Jansens
e69da364cc
make keyboard events work on the focus_cycle_target again
2003-10-09 19:08:07 +00:00
Dana Jansens
0ba8c17565
use focus_hilite to pick which window gets keyboard events
2003-10-09 18:54:08 +00:00
Dana Jansens
04ab35aa14
show an indicator similar to metacity's for focus cycling windows
2003-10-09 18:49:41 +00:00
Dana Jansens
bb52941999
cancel focus delays when the user runs a focus (or focus cycle) action, and when focusing new windows
2003-10-09 18:49:14 +00:00
Dana Jansens
8e34732b3a
let stuff cancel any focus delays going on
2003-10-09 18:48:44 +00:00
Dana Jansens
df436132bd
remove windows from the focus delay timer when the pointer leaves them
2003-10-09 17:32:37 +00:00
Dana Jansens
0843ff29b8
disable the decorate option for non-normal (undecorated) windows
2003-10-09 16:51:22 +00:00
Dana Jansens
5c390b9344
indenting
2003-10-09 16:46:54 +00:00
Dana Jansens
133ce865f7
change the labels in the client menu depending on the window's state
2003-10-09 16:45:14 +00:00
Dana Jansens
b7d2693742
dont give decorless windows a border when toggling decorations
2003-10-09 16:36:28 +00:00
Dana Jansens
b9d47c49d6
for dock windows, honor both the above and below states, keeping docks above and below *all* normal windows though (even 'above'/'below' ones). if the dock doesn't specify then it will stack along with normal windows.
2003-10-09 16:34:37 +00:00
Dana Jansens
00f6bbb1ab
put dock in the dock_above/below layer
2003-10-09 16:33:30 +00:00
Dana Jansens
8401315466
add a dock below layer, and dock above layer
2003-10-09 16:33:20 +00:00
Dana Jansens
b0d892e975
seggie
2003-10-08 19:23:53 +00:00
Dana Jansens
723ecebc2f
use focus_hilite to ensure that when a wnidow thats not focused is hilighted, the hilight is removed when focus gets assigned
2003-10-08 18:29:12 +00:00
Dana Jansens
735ee93689
set focus_hilite when switching desktops and hjilitin a window which isnt focused yet
2003-10-08 18:28:51 +00:00
Dana Jansens
fe3e73f190
add a focus_hilite variable
2003-10-08 18:28:31 +00:00
Dana Jansens
440b862204
indenting
2003-10-08 18:27:30 +00:00
Dana Jansens
b968a7ac19
indenting
2003-10-08 18:27:10 +00:00
Dana Jansens
fb8a9a6363
indenting
2003-10-08 18:23:48 +00:00
Dana Jansens
8852ee21b0
alt-drag resizing can resize in just vertical and horizontal directions now
2003-10-06 17:47:41 +00:00
Dana Jansens
f55766cc55
save premax values properly, individually for each direction
2003-10-06 17:33:23 +00:00
Dana Jansens
92c8e947c9
resist screen physical edges as well as strut edges
2003-10-06 09:30:20 +00:00
Dana Jansens
c4fcfc07e1
dont resize the window when restoring session state if the sizes are invalid
2003-10-03 07:33:27 +00:00
Dana Jansens
2a2008e837
always set focus_out, since a focusin can come first and mess up the old logic
2003-10-03 07:24:33 +00:00
Dana Jansens
2572f111e0
indenting
2003-10-03 07:07:57 +00:00
Dana Jansens
aa6bedd78b
remove debug prints
2003-10-03 07:05:36 +00:00
Dana Jansens
783f5aed00
run the event done stuff before firing queued actions
2003-10-03 06:56:54 +00:00
Dana Jansens
51780c10ea
hilight the fallback target before it actually gets focused to avoid flickering
2003-10-03 04:43:18 +00:00
Dana Jansens
6611c30854
let functions get which window would be selected on a focus fallback
2003-10-03 04:37:16 +00:00
Dana Jansens
242dc35a36
indenting
2003-10-03 04:27:44 +00:00
Dana Jansens
e2f3c00224
remove debug prints
2003-10-03 04:20:23 +00:00
Dana Jansens
4a14e50ae7
indenting
2003-10-02 04:21:37 +00:00
Dana Jansens
9bd60fd92b
dont queue up interative end actions
2003-10-02 04:06:40 +00:00
Dana Jansens
c88e66b8ff
use frame->visible instead of the desktop number
2003-10-01 17:51:20 +00:00
Dana Jansens
6f5292c87e
define DEBUG, NDEBUG, and G_DISABLE_ASSERTS
2003-10-01 17:28:12 +00:00
Dana Jansens
825426373c
remoce debug print
2003-09-29 17:10:28 +00:00
Dana Jansens
97e854b07d
use a client destructor to watch for focus_in/out becoming invalid
2003-09-29 16:32:53 +00:00
Dana Jansens
58977733d0
completely rework focus tracking. i hope this is sane... it seems to be working much better in every way thus far.
2003-09-29 10:06:19 +00:00
Dana Jansens
f81f352f4e
dont use the X done callback
2003-09-29 10:05:51 +00:00
Dana Jansens
c8565d21d4
provide a callback for when there are no more X events to process
2003-09-29 10:05:43 +00:00
Dana Jansens
c22a6b32ab
only fallback when nothing is focused, provide comment explaining why
2003-09-29 10:05:18 +00:00
Dana Jansens
9bac22eb40
indenting, focus fallback to None not PointerRoot
2003-09-29 10:03:28 +00:00
Dana Jansens
474a40754b
only do sloppy focus/raise if the client is not already focused
2003-09-29 08:02:16 +00:00
Dana Jansens
638fc4b70b
dont start a move/resize on clients that cant do it
2003-09-29 07:41:11 +00:00
Dana Jansens
8feba8518b
when a window is lowered, move it to the bottom of the focus order list
2003-09-29 07:25:00 +00:00
Dana Jansens
d50cf297e7
dialog options are no longer used
2003-09-29 06:59:46 +00:00
Dana Jansens
2c99038a0a
make the Desktop action default to non-interactive
2003-09-29 06:33:17 +00:00
Dana Jansens
43dabc2b9b
remove unused var
2003-09-29 03:37:12 +00:00
Dana Jansens
b7b187693e
start menus with the cursor inside it, not over the border, a little closer to the items..
2003-09-28 09:48:58 +00:00
Dana Jansens
a1be19e627
when nothing in a menu is selected, still let keybindings work
2003-09-28 09:47:17 +00:00
Dana Jansens
7101e30ed8
make the timeout apply to releases on menu items too
2003-09-28 09:31:23 +00:00
Dana Jansens
b8ba1cff1f
perhaps fix problems of being left in menus without being able to control openbox
2003-09-28 09:24:22 +00:00
Dana Jansens
8e63ffdabd
add option for under-mouse placement
2003-09-28 09:01:04 +00:00
Dana Jansens
fa962c1604
removing focusLast again..
2003-09-28 08:45:43 +00:00
Dana Jansens
f9c659c12c
fix resizing to 0 from aspect ratios
2003-09-28 07:38:55 +00:00
Dana Jansens
a434669d17
remove debug prints
2003-09-28 06:48:35 +00:00
Dana Jansens
dee3d68c22
try grab an icon even when there are none
2003-09-28 06:34:31 +00:00
Dana Jansens
f6ba1f27b9
halfway through client changes but...
...
should fix crashes irt actions in the action queue for clients that have been destroyed. now those actions are skipped or performed without a client as possible.
2003-09-28 06:31:00 +00:00
Dana Jansens
e30ae5696f
remove from parents when changing groups
2003-09-27 17:57:02 +00:00
Dana Jansens
0dfff40a30
formatting, add an assert
2003-09-27 17:50:28 +00:00
Dana Jansens
51cc41e4db
indenting
2003-09-27 17:39:44 +00:00
Dana Jansens
ac3a588266
properly show/hide the dialog for the Desktop action
2003-09-27 17:24:45 +00:00
Dana Jansens
26852af7a1
better focus fallbacking n shit
2003-09-27 06:42:34 +00:00
Dana Jansens
fbed66cc81
ok unfocus before removing transient shit, but remove focus related flags so we don't get focused in the fallback.
2003-09-27 06:41:00 +00:00
Dana Jansens
af7278b6e5
that was a really bad idea, i didnt mean it, i swear
2003-09-27 06:30:51 +00:00
Dana Jansens
bc1148f0b3
fix cancelling desktordir actions
2003-09-27 05:57:08 +00:00
Dana Jansens
4ae6be577d
some smarter focus fallback for sloppy focus
2003-09-27 05:31:40 +00:00
Dana Jansens
8aee387193
unfocus before unlinking the client from the transient tree
2003-09-27 05:19:15 +00:00
Dana Jansens
598bf575c8
allow focus and desktop actions to specify a <dialog>yesorno</dialog> value
2003-09-26 20:04:29 +00:00
Dana Jansens
ad29434250
remove the dialog options
2003-09-26 20:03:57 +00:00
Dana Jansens
90445487e1
dont use undermouse at all if focusNew is off
2003-09-26 19:39:33 +00:00
Dana Jansens
9e000dc6fd
use under-mouse placement *instead* of smart placement when using focus-follows-mouse AND focus-new-windows
2003-09-26 19:31:54 +00:00
Dana Jansens
0908816132
when looking for the focus target, search for modal children in the entire transient tree, not just children of the client on which focus is requested
2003-09-26 19:05:06 +00:00