summaryrefslogtreecommitdiff
path: root/openbox/screen.c
AgeCommit message (Collapse)Author
2009-11-21Merge branch 'backport' into workDana Jansens
Conflicts: openbox/popup.c
2009-11-21Add a comment for commit ec9fbf05df3ac807d60ae6af36236ffc6567bbdc regarding ↵Dana Jansens
struts with multiple monitors.
2009-11-21Some fixes for the pager popups, and avoid a crash if you destroy a popup ↵Dana Jansens
while it is going to be shown later by a delay.
2009-11-21Revert all commits for the Hooks feature to move it to a topic branch.Dana Jansens
This reverts commit fd2f617be7ff57fcb187daa737f66d243544c8cd. This reverts commit a47d0a53652a96ca1df96fc9268757df1431ae55. This reverts commit a1908e076736e1a618bd305c5963dbfecaa30497. This reverts commit dc2e6f6bf7143a56de360a393b33906735e63625. This reverts commit 985e7dadf9a3ebf4bd265d955c3198e96405e5d2. This reverts commit db781556d63d1a50bd1b1b4b6b5423ef703bf2c7. This reverts commit feec8f663f0a11546c2da87575fecc8a88d97ca1.
2009-11-07Make clang happierMikael Magnusson
Add asserts to default: in switch statements Store pointed to variables locally so it knows they don't change Remove some dead assignments Mark ob_exit_with_error as noreturn Use "%s", msg instead of just msg to printf style functions Use the c_pfocus variable
2009-09-19Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/actions/desktop.c openbox/client.c openbox/event.c openbox/extensions.c openbox/popup.c openbox/screen.c parser/parse.c
2009-07-05Fix interpretation of struts with multiple screensGeoffrey Antos
According to the WM Specification, the left, top, right, and bottom fields are to be declared relative to the overall X screen dimensions, not the monitor dimensions. The example given in the spec (v1.3 or 1.4draft2) is: "Another example is a panel on a screen using the Xinerama extension. Assume that the set up uses two monitors, one running at 1280x1024 and the other to the right running at 1024x768, with the top edge of the two physical displays aligned. If the panel wants to fill the entire bottom edge of the smaller display with a panel 50 pixels tall, it should set a bottom strut of 306, with bottom_start_x of 1280, and bottom_end_x of 2303. Note that the strut is relative to the screen edge, and not the edge of the xinerama monitor." In my case, I have a 1680x1050 monitor to the left of a 1920x1200 monitor aligned at the top. I then have a gnome-panel along the bottom edge of the 1680x1050 monitor with a height of 24 pixels. xprop reports the following partial strut: _NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 175, 0, 0, 0, 0, 0, 0, 0, 1679 which is correct according to the spec. Gnome-panel is reserving the 150 pixels along the bottom that aren't visible on the screen plus the 25 it requests for itself. However, maximizing a window on this monitor leaves a gap of exactly 150 pixels between the bottom edge of the maximized window and the top edge of the panel. Also, when the 1680x1050 monitor is the primary monitor (id=1) then the _NET_WORKAREA property on the root window is also off by 150px for the same reason. This patch fixes the two issues I mentioned for exterior monitor edges. It doesn't attempt to account for "interior" monitor edges (i.e. a 'left' strut on monitor A when monitor B is directly to the left of monitor A) because it's not possible to do so with the current strut specification (see http://mail.gnome.org/archives/wm-spec-list/2004-March/msg00004.html for a discussion on this limitation) This could be avoided by having the partial strut atom contain a xinerama screen ID that the strut applies to, but unfortunately the discussion all those years ago never got anywhere. [ quoted from bug #3792 ]
2009-07-04Show desktop switch popup on every monitorMikael Magnusson
This should be a satisfactory fix for #3694 I hope.
2008-11-15Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/event.c
2008-11-15Use ngettext for %d desktop(s).Mikael Magnusson
This poses a small problem. We currently let translators reorder this string, but ngettext only takes one numeric argument. This means that you can either get correct pluralization or the order you want, but not both. I fixed up the languages I understand at a very basic level, but the rest will need translator assistance.
2008-03-02Merge branch 'backport' into workDana Jansens
Conflicts: openbox/actions/execute.c openbox/event.c openbox/openbox.c openbox/openbox.h
2008-03-02add a RECONFIGURING state, and enter that when doing reconfiguringDana Jansens
2008-03-01queue hooks so that they don't run as each thing happens, instead run them ↵Dana Jansens
at the end. keep the openbox code paths fast.
2008-02-29change some of the hooks, and add all the hooks to the code so that they runDana Jansens
2008-02-29Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/client.c openbox/screen.c
2008-02-28Very inconsequential changes.Mikael Magnusson
2008-02-28Free copied glists when removing desktops.Mikael Magnusson
2008-02-26Merge branch 'backport' into workDana Jansens
2008-02-25show the desktop change popup before mapping/unmapping all the windowsDana Jansens
this makes a big difference if the compmgr is being laggy trying to show windows
2008-02-18Merge branch 'backport' into workDana Jansens
Conflicts: openbox/grab.c openbox/keyboard.c
2008-02-17Add a comment for translators about how to change order of arguments.Mikael Magnusson
2008-02-13Fix a minor issue with lastdesktop right after startup.Mikael Magnusson
2008-02-09Merge branch 'backport'Dana Jansens
2008-02-09Fix a minor issue with lastdesktop right after startup.Mikael Magnusson
2008-02-08Don't bother setting screen_last_desktop here, it's inited in screen_startup ↵Mikael Magnusson
anyway.
2008-02-02Merge branch 'backport' into workDana Jansens
Conflicts: openbox/client.c openbox/event.c openbox/mouse.c openbox/openbox.c openbox/prop.c openbox/prop.h openbox/screen.c parser/parse.c parser/parse.h
2008-02-02add a --config-file command line option, and OB_CONFIG_FILE root hintDana Jansens
2008-01-31make ob_debug use the g_log system, and make openbox log messages to..a log ↵Dana Jansens
file ! this will help everyone since most people do not run openbox in a terminal..
2008-01-31Merge branch 'backport' into workDana Jansens
Conflicts: openbox/client.c openbox/config.c openbox/event.c openbox/extensions.c openbox/focus_cycle_indicator.c openbox/focus_cycle_popup.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c openbox/stacking.c openbox/startupnotify.c
2008-01-31make an obt_root() macroDana Jansens
2008-01-22print a warning when the session has a different number of desktops than the ↵Dana Jansens
openbox config
2008-01-20make the obt library branch compile again with all the changes merged in ↵Dana Jansens
from backport
2008-01-20fix constnessDana Jansens
2008-01-20add functions for setting locale strings (on top of existing functions for ↵Dana Jansens
setting utf8 strings). they are untested though! wonder if they work?
2008-01-20make openbox use the obt prop.c/h stuffDana Jansens
holy search and replace batman
2008-01-20s/ob_display/obt_display/ and remove ob_displayDana Jansens
2008-01-20add prop.[ch] to the libobt, but they are not used yet. add a global ↵Dana Jansens
obt_display which obt can use, and the application.
2008-01-20move the code for tracking what extensions are available on the display into ↵Dana Jansens
the libobt
2008-01-20move the xerror handling into the libobtDana Jansens
2008-01-16Various fixes for sparse warnings.Mikael Magnusson
Define void functions with (void), not (). Add missing includes. Some functions were declared static but defined non-static. Some variables that should be file static were file global but not used in any other file. prop.h defined a new prop_atoms in each file that included it instead of declaring it extern.
2008-01-16add the new pid and ping atoms to the NET_SUPPORTED listDana Jansens
2008-01-11try to comment the code for when to save the "last desktop"Dana Jansens
2008-01-11make the time to remember last desktop a #define, and make it 750msDana Jansens
2008-01-11Don't record desktops for lastdesktop when switching away quickly again.Mikael Magnusson
When switching desktops, only record the previous desktop as the last desktop if the user stayed there for a while. This way you can scroll over a couple desktops quickly, then go back to the previous desktop you _used_, not the last you scrolled past.
2007-10-31Try to fix the popup only showing up on monitor 0.Mikael Magnusson
screen_find_monitor() should perhaps contain that big hunk of logic, I don't know if anything will break now that it returns screen_num_monitors sometimes. We'll see!
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
2007-09-04Fix calling functions with wrong number of argumentsMikael Magnusson
2007-08-22Hide the desktop cycle popup when the focus cycle popup is shown.Mikael Magnusson
2007-08-07Another leaked Rect *aMikael Magnusson
2007-08-04don't make omnipresent windows lose focus when changing desktops. this is ↵Dana Jansens
done by allowing focus_fallback to specify if focus has been lost or not. usually if you're call it, focus is lost, but not always.