summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove now unused vo_calc_drwXY function.reimar2009-02-121-17/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28547 b3059339-0415-0410-9bf9-f77b7e298cf2
* Only set VO_EVENT_RESIZE if size actually changed, not if e.g. the window wasreimar2009-02-121-2/+6
| | | | | | | only moved to the foreground. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28541 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add standard license headers, unify header formatting.diego2009-02-081-0/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28481 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factor calc_drwXY out of vo_xv and vo_xvmc.cehoyos2009-01-091-0/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28285 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variable.diego2008-12-241-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28191 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, forgot an assignment, broke special keys handling for X11-based vos.reimar2008-12-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28175 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add and use a special lookup function to do table-based translation to ↵reimar2008-12-201-39/+14
| | | | | | MPlayer keycodes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28172 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a table to translate X11 to MPlayer keycodes.reimar2008-12-201-145/+46
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28170 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify handling of X11 key events that are just passed through.reimar2008-12-201-97/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28168 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set the base size window manager hint, otherwise some subtract the minimumreimar2008-12-051-0/+7
| | | | | | | | size of 4x4 from the numbers displayed to the user which might be confusing. Based on patch by Bert Wesarg [bert wesarg googlemail com]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28097 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factor common code like -wid handling, vo_gc creation etc. out intoreimar2008-11-191-0/+23
| | | | | | | x11_common.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27961 b3059339-0415-0410-9bf9-f77b7e298cf2
* include limits.h for INT_MAX.reimar2008-11-151-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27927 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify vo_vm_switch and vo_vm_close, everyone was using the (almost) samereimar2008-11-151-22/+18
| | | | | | | boiler-plate code with them, just with different bugs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27924 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set modified window position and monitor aspect in vo_vm_switch instead of inreimar2008-11-151-0/+7
| | | | | | | individual vo drivers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27923 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set modeline_width/height to sane values in vo_vm_switch even whenreimar2008-11-151-1/+4
| | | | | | | the XF86VidMode extension is not available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27921 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace some of the different inconsistent XGetGeometry uses by areimar2008-11-151-19/+17
| | | | | | | vo_x11_update_geometry function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27919 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove X11 backing store: this is now a useless flag.ben2008-10-291-2/+2
| | | | | | | | | | | | | | | Also, it is mandatory for Xserver 1.5.x (part of Xorg 7.4, shipped on all Linux distributions starting from Oct. 08) and will be removed from Xserver 1.6 anyhow ... Patch by Stephane Marchesin (marchesin at icps dot u dash strasbg dot fr). For more info, see long flame thread at: http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2008-August/058323.html git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27849 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing support for some multimedia keys to X11 backend code.diego2008-10-121-0/+9
| | | | | | | patch by Jorge Lopez, jorgelt gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27747 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove already disabled and probably long obsolete code that worked around ↵reimar2008-09-201-16/+0
| | | | | | | | | an OpenBox bug. Patch by Julien Danjou [ julien danjou info ] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27649 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use already "prefetched" atoms instead of calling XInternAtom each time.reimar2008-09-201-5/+2
| | | | | | | Patch by Julien Danjou [ julien danjou info ] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27648 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change a bunch of X11-specific preprocessor directives.diego2008-08-041-14/+14
| | | | | | | Switch from a HAVE_ prefix to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27409 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename two GUI-related preprocessor directives:diego2008-07-301-8/+8
| | | | | | | HAVE_NEW_GUI --> CONFIG_GUI, HAVE_GTK2_GUI --> CONFIG_GTK2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27375 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable runtime border/window decorations-toggling for Linux gl and gl2 vos.reimar2008-07-221-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27338 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support -noborder with X11-based vosreimar2008-07-221-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27336 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make vo_x11_fullscreen not break vo_border (proper support still needs vo ↵reimar2008-07-221-1/+1
| | | | | | changes) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27335 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add parentheses to expression to avoid the warning:diego2008-06-151-1/+1
| | | | | | | | libvo/x11_common.c: In function 'xss_suspend': libvo/x11_common.c:1618: warning: suggest parentheses around && within || git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27061 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove useless parentheses from from return statements.diego2008-05-161-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26787 b3059339-0415-0410-9bf9-f77b7e298cf2
* revert commits 26437-26439attila2008-04-191-11/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26468 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: fix indentationattila2008-04-131-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26439 b3059339-0415-0410-9bf9-f77b7e298cf2
* move the #ifdef HAVE_XINERAMA to enclose the whole functionattila2008-04-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26438 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always calculate the xinerama screen mplayer is on.attila2008-04-131-6/+3
| | | | | | | | Bug reported by thomas.lindroth(<at>)gmail.com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26437 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fix: inited --> initializeddiego2008-02-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25994 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a transform_color function to reduce code duplicationreimar2008-01-121-28/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25702 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary <signal.h> includesuau2008-01-091-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25654 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some now unused screensaver stuff code.reimar2008-01-071-65/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25638 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove most of the messy screensaver code in favour of only XResetScreenSaverreimar2008-01-071-83/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25637 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a screensaver_off variable to save current state and avoidreimar2008-01-071-0/+7
| | | | | | | | uselessly disabling twice. Also needed for a future patch. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25636 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing X11/extensions/scrnsaver.h includereimar2007-12-221-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25510 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for XScreenSaverSuspendreimar2007-12-221-1/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25494 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move more variables into the block where they are usedreimar2007-12-201-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25476 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move a variable to where it is usedreimar2007-12-201-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25475 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some pointless 'inline' qualifiersuau2007-11-011-1/+1
| | | | | | | Most of these functions aren't even used in the same translation unit. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24918 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow XF86AudioLowerVolume/XF86AudioRaiseVolume keys to be handled by MPlayer.diego2007-09-051-0/+6
| | | | | | | patch by Michael Mauch, michael.mauch gmx de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24343 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove checks that in the worst case will completely break fullscreenreimar2007-09-031-6/+0
| | | | | | | | switching. If they are needed for something they must be done in a more robust way. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24333 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure aspect hint is adjusted on aspect changereimar2007-09-031-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24332 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: set vo_hint.flags at more consistent places (directly beforereimar2007-09-021-3/+5
| | | | | | | setting the corresponding values) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24331 b3059339-0415-0410-9bf9-f77b7e298cf2
* make sure update_xinerama_info is always called even when using thereimar2007-07-281-1/+1
| | | | | | | window-manager fullscreen hint, so that vo_screenwidth/height are right. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23895 b3059339-0415-0410-9bf9-f77b7e298cf2
* document "default" behaviour if CopyFromParent is passed as colormapattila2007-07-221-1/+1
| | | | | | | to vo_x11_create_vo_window() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23843 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix vo_x11_clearwindow_part: x position is one less to avoid not clearingreimar2007-06-271-1/+1
| | | | | | | | a line in case of rounding error, so width must be one larger, too. y-case is already correct. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23680 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make X11 window creation and (with -fixed-vo) management simpler and morereimar2007-06-271-0/+56
| | | | | | | | | consistent by introducing a new function that handles most of the ugly things. Changes of behaviour with some vos is unavoidable, bug reports welcome. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23675 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing return value for x11 error handlerreimar2007-06-241-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23635 b3059339-0415-0410-9bf9-f77b7e298cf2
* Gui --> guidiego2007-04-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23095 b3059339-0415-0410-9bf9-f77b7e298cf2
* "()" to "(void)" function param list fixesuau2007-04-011-3/+3
| | | | | | | patch from Stefan Huehner, stefan huehner org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22904 b3059339-0415-0410-9bf9-f77b7e298cf2
* Code cleanup: don't include a .c file in mplayer.c and fix a fewrathann2007-03-291-2/+1
| | | | | | | | | | | "implicit declaration of function ‘mplayer_put_key’" warnings Based on Attila's suggestions. Approved by Uoti and Ivan. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22841 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move code to ignore mouse wheel "down" events to fifo.c (needed becausereimar2007-01-211-6/+0
| | | | | | | they too easily cause those "buttons" to get stuck), reducing code duplication. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21982 b3059339-0415-0410-9bf9-f77b7e298cf2
* grammar/spelling/wording in commentsdiego2007-01-181-39/+40
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21956 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not abort on X11 errors, most are not at all fatal.reimar2007-01-051-1/+1
| | | | | | | Makes -vo x11 work over non-trusted ssh X11 forwarding. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21826 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of completely useless includes that in addition hinder compilationreimar2006-12-161-1/+0
| | | | | | | on MinGW git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21639 b3059339-0415-0410-9bf9-f77b7e298cf2
* report to mplayer with a slave command the coordinates of the pointer ↵nicodvb2006-09-161-0/+8
| | | | | | reported by x11; rescale coordinates to [0,1]x[0,1] range - patch by Jonas Jermann and me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19856 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make some functions static.uau2006-07-081-1/+1
| | | | | | | Patch by Stefan Huehner, stefan at huehner org. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18955 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix window position when changing videos while in fullscreen and forreimar2006-06-151-0/+2
| | | | | | | window managers that modify position on Map. Oked by Alexander Strasser. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18718 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fixes: Extenstion -> extensionreimar2006-05-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18509 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify condition, since both time and time_last are unsigned.rathann2006-05-131-2/+1
| | | | | | | Patch by Rich Felker. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18486 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove updating of vo_mouse_timer_const from the main loop and alsouau2006-04-251-6/+12
| | | | | | | | remove the variable itself. Convert code in x11_common.c and OSD timing that depended on the variable to use real time instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18288 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get ride of the several if(identify) messy lines and rearangment of some of ↵reynaldo2006-04-241-2/+1
| | | | | | the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18238 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, aspect_save_screenres must be always called in update_xinerama_info.reimar2006-04-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18161 b3059339-0415-0410-9bf9-f77b7e298cf2
* Register for window-manager delete window events and quit MPlayer.reimar2006-04-191-0/+10
| | | | | | | slightly modified patch from Rickard Narstrom (rickard narstrom at gmail com) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18150 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix and improve xinerama supportreimar2006-04-161-41/+40
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18117 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make -xy help output consistent, output an empty line before and after.diego2006-03-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17728 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Stefan Huehner / stefan % huehner ! org \rathann2006-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
* massive attack: mp_msg printf format fixesrathann2006-01-121-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't abort when xscreensaver window isn't available anymore.al2005-12-071