Commit graph

52 commits

Author SHA1 Message Date
Mikael Magnusson
39dfb7458a Pass the GravityPoint as const* instead of by value 2014-10-11 02:13:49 +02:00
Mikael Magnusson
1b3afcff1f Move common gravity application to screen.c 2014-10-06 22:05:26 +02:00
Dana Jansens
7b408bc3b8 Add a strict option to the ToggleShowDesktop action
When the strict option is used, normal windows are not able to show themselves
while showing the desktop.
2013-09-09 10:47:43 -04:00
Dana Jansens
76ae19924d add function screen_compare_desktops()
tells if two windows' current desktops are considered logically on the same
  desktop (taking "all desktops" into account)
if a window is on "all desktops" it is considered to be on the current desktop
  only - windows can only be in one place at a time.
2011-01-24 14:19:22 -05:00
Dana Jansens
34178097d5 use const Rect* not Rect const* 2010-04-16 11:37:21 -04:00
Dana Jansens
64adc0eeba add a function client_is_oldfullscreen() that determines if a window is an "oldschool fullscreen window" or not. use this throughout. and allow oldschool fullscreen windows to move to 0,0 even with a strut there. 2010-03-01 16:32:27 -05:00
Dana Jansens
aeac3b735b remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible 2010-02-12 14:37:33 -05:00
Dana Jansens
1d57f7b085 using g_slice_new() instead of g_new() part 1 2010-02-12 13:44:10 -05:00
Dana Jansens
1a34857640 Make the relative desktop switching actions interactive
The desktop popup can now be shown "permanently" in which case it stays until
you tell it to hide.
2009-12-17 10:33:06 -05:00
Dana Jansens
50d6626811 Merge branch 'backport' into work
Conflicts:

	obt/keyboard.c
	obt/keyboard.h
	openbox/event.c
	openbox/menuframe.c
	openbox/moveresize.c
	openbox/openbox.c
	openbox/screen.c
2009-12-16 15:39:25 -05:00
Dana Jansens
3c688bc4a7 Make the NET_WORKAREA hint work the way it used to, across all monitors
The spec is not going to change this hint, but rather add a new one. So for now
just revert to the old behaviour.
2009-12-15 14:53:29 -05:00
Dana Jansens
111465b737 Let menus place themselves on monitors where the mouse is not present
This fixes a bug which forced menus to show up on the same monitor as the
mouse pointer.
2009-12-14 16:08:30 -05:00
Dana Jansens
acafa38c8e Merge branch 'backport' into work
Conflicts:
	openbox/config.c
	openbox/event.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	openbox/screen.h
2009-12-11 19:02:11 -05:00
Dana Jansens
aa329719b9 Add a primaryMonitor config option, where the focus-cycle and keychain popups will appear 2009-12-09 16:41:52 -05:00
Mikael Magnusson
9e05faf3d6 () -> (void) also in .h files, and fix a place that gave arguments when it shouldn't have. 2008-02-15 16:47:10 +01:00
Mikael Magnusson
e4f24d84a0 Hide the desktop cycle popup when the focus cycle popup is shown. 2007-08-22 18:00:12 +02:00
Dana Jansens
3b4b52921a show a popup notification when switching desktops (also make all the config options export time in milliseconds not half milli half micro) 2007-08-03 20:40:13 -04:00
Dana Jansens
97792a403a warp desktops when you hit the edge of the screen while moving a window 2007-06-23 19:52:09 +00:00
Dana Jansens
8bcd349e4e move logic for add/remove desktop into screen.c 2007-06-23 16:15:46 +00:00
Dana Jansens
eb6a2e9c4b xinerama support like crazy for struts and everything else too. this probably crashes but its been way too long without a commit. 2007-06-13 11:15:51 +00:00
Dana Jansens
7a6a516b8e very cool struts. partial struts actually are partial struts now. possibly way broken with xinerama? 2007-06-13 01:50:01 +00:00
Dana Jansens
5579b28481 make popup dialogs appear on the active monitor with xinerama 2007-06-07 15:07:50 +00:00
Dana Jansens
6f6ab8c442 save and restore the desktop number/layout/names in the session.
also fix a segfault in some debug prints, printing ints as strings!
2007-05-23 03:07:50 +00:00
Dana Jansens
9aa5ca29ae updates for the build system. always set Openbox on the support window 2007-05-15 02:32:49 +00:00
Dana Jansens
65d50861ad when un-showing the desktop if a window is getting shown, iconify the others so just the one is shown 2007-05-10 23:22:54 +00:00
Dana Jansens
4546925b58 get the mouse pointer position if it is on another screen too.
let you move/resize from the client menu if the mouse is on another screen
2007-05-09 04:04:53 +00:00
Dana Jansens
740c8af41e add .desktops for running Openbox, KDE/Openbox and GNOME/Openbox
add more .desktops for gnome and update it
add scripts to run an KDE/Openbox and GNOME/Openbox session
also add scripts for openbox-gnome and openbox-kde which are placeholders and will be replaced by real programs.
also set the name on the wm_support_win to be how we were called (which is passed in the environment) rather than just "Openbox"
add an envionment variable for wanting to be notified (SIGUSR2) when openbox reconfigures. this would be used by openbox-shell to update the root window.. if i make such a thing.. i dunno.
2007-05-07 01:41:48 +00:00
Dana Jansens
a7f65a818c add an allDesktops option to Next/PreviousWindow to alt-tab across all desktops. 2007-05-06 05:51:08 +00:00
Dana Jansens
fde5ca09e9 when restoring from show-desktop mode because a window is going to be focused, then don't restore focus how it was before showing the desktop. 2007-05-05 02:48:39 +00:00
Dana Jansens
0116d82463 don't activate and change desktops if the client's not on the current desktop and its user_time is older than the last time you changed desktops 2007-04-24 19:53:50 +00:00
Dana Jansens
2442cdfd85 1) translate all of openbox's output
2) update copyrights.
3) make release. ok that part not quite yet.
2007-04-23 17:56:35 +00:00
Dana Jansens
7229bea3c6 client_configure_full is trying to move a window, it shouldn't determine the window's monitor from its current position, but from the new position instead. move client_monitor()'s logic into screen, more generically, and let client_configure_full use that 2007-03-11 17:34:07 +00:00
Dana Jansens
740c5b2a20 consistant glib type usage 2003-10-15 03:59:35 +00:00
Dana Jansens
07c3a31cf5 make the desktop popup a public function 2003-09-26 07:41:16 +00:00
Dana Jansens
16f46c296d no tabs 2003-09-17 07:44:49 +00:00
Dana Jansens
c4e4760c41 add copyright headers, adjust --version output to include copyright, and --help output to not include version output. 2003-09-17 07:32:52 +00:00
Dana Jansens
7416313cad remove all the startup notification code from screen.c 2003-09-03 20:32:21 +00:00
Dana Jansens
806a8c411f add a reconfigure action, also reconfigure on SIGUSR2.
support reconfiguring throughout the entire codebase.
2003-09-03 18:11:39 +00:00
Dana Jansens
854da68d0f add the DesktopLast action, props to marius nita for this one 2003-08-31 20:06:42 +00:00
Dana Jansens
2c6c0757fa make interactive actions a type and not special cases.
add the <interactive> option to them to turn off interactivity
2003-08-30 16:58:30 +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
Dana Jansens
1ffc7fa9ec move ob_pointer_pos to screen_pointer_pos 2003-07-10 19:07:58 +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
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
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
Dana Jansens
34e819738b xinerama support 2003-06-27 04:20:30 +00:00
Dana Jansens
f26f23de50 all my changes while i was offline.
better alt-tabbing. better transient handling. i dont even know. lots of fucking cool shit so WATCH the FUCK OUT.
2003-05-09 16:57:17 +00:00
Dana Jansens
d4b20aef31 rip the prop code i wrote in cwmcc out and make it all 64bit friendly (i think!). stop using gulong for values from the xserver, using guint32 instead. 2003-04-14 21:34:35 +00:00