summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17124 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert previous commital2005-11-221-2/+0
| | | | | | | | | | | ``Nov 22 To mplayer-cvsl ( 32) [MPlayer-cvslog] CVS: main/libvo x11_common.c,1.199,1.200'' - causes unneeded massive slowdown when stop-xscreensaver is used - is not consistent with the other xscreensaver functions - was commited without my approval git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17034 b3059339-0415-0410-9bf9-f77b7e298cf2
* resolves problem in module stop_xscreensaver, crashing mp after sleep and ↵ptt2005-11-211-0/+2
| | | | | | awake or enabling/disabling xssaver by hand git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17025 b3059339-0415-0410-9bf9-f77b7e298cf2
* Test if source image dimensions are too big.al2005-11-101-0/+39
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16959 b3059339-0415-0410-9bf9-f77b7e298cf2
* libvo input cleanup: remove the dependency on libinput,albeu2005-11-021-21/+7
| | | | | | | remove most of the crappy mappings (like O->o or ESC->q). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16893 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make a few more messages translatable by moving them into help_mp-en.h.diego2005-10-181-4/+2
| | | | | | | patch by Paul TT < paultt == at == hackerjournal == dot == it > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16794 b3059339-0415-0410-9bf9-f77b7e298cf2
* Slightly reduce unnecessary verbosity.diego2005-08-241-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16302 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove extern for variables that are already in headers.reimar2005-08-211-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16281 b3059339-0415-0410-9bf9-f77b7e298cf2
* Try to set XV_SYNC_TO_VBLANK to enable vsync on non-overlay xv adapters.reimar2005-06-271-0/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15827 b3059339-0415-0410-9bf9-f77b7e298cf2
* adds some more -identify output, patch by kiriuja < mplayer DASH patches PAM ↵gpoirier2005-06-201-0/+2
| | | | | | en DASH directo POUM net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15790 b3059339-0415-0410-9bf9-f77b7e298cf2
* helper functions for comparing strarg_t "strings".reimar2005-06-161-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15735 b3059339-0415-0410-9bf9-f77b7e298cf2
* - fix black screen problem on reinital2005-04-161-1/+9
| | | | | | | - disable colorkey autopainting when painting it manually git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15187 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix vo_xv_draw_colorkey to a workable stateiive2005-04-101-10/+12
| | | | | | | (using panscan makes x,y negative, so it is very bad idea they to be unsigned) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15101 b3059339-0415-0410-9bf9-f77b7e298cf2
* We should not crash, only because we couldn't hide the cursor.al2005-02-201-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14744 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unified colorkey code for vo xv and vo xvmc.al2005-02-201-0/+311
| | | | | | | | | | | | Made the code also more flexible. Colorkey drawing is now by default done as proposed by Marko Macek. Patch also approved by iive. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14743 b3059339-0415-0410-9bf9-f77b7e298cf2
* Separate XF86 video mode extension check from XF86 keysym check asdiego2005-02-021-0/+3
| | | | | | | | XFree 3.x does not have the latter. based on a patch by Trent Piepho <xyzzy at speakeasy dot org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14637 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix ontop for some WMs that lose ontop state after fullscreen event.al2004-12-271-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14245 b3059339-0415-0410-9bf9-f77b7e298cf2
* added -wid support for vo_directx.joey2004-12-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14208 b3059339-0415-0410-9bf9-f77b7e298cf2
* The GUI shouldn't handle key events at two places.al2004-11-211-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14002 b3059339-0415-0410-9bf9-f77b7e298cf2
* 3 memory leaks fixediive2004-11-151-0/+1
| | | | | | | Xlib funtions allocate memory that should be freed appropriately git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13954 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce excessive verbosity.diego2004-11-151-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13947 b3059339-0415-0410-9bf9-f77b7e298cf2
* keep screensaver off when playing multiple files.reimar2004-11-141-0/+3
| | | | | | | patch by rgselknospam (at) yahoo [dot] com. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13936 b3059339-0415-0410-9bf9-f77b7e298cf2
* more fullscreen fixes and gl2 uses setGlWindow.reimar2004-11-041-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13872 b3059339-0415-0410-9bf9-f77b7e298cf2
* fullscreen fixes and GUI support for vo_glreimar2004-11-011-0/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13844 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix erroneus extern declarations, fix wrong signedness of some varsatmos42004-10-311-5/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13829 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.diego2004-10-281-6/+6
| | | | | | | Based on a patch by Sebastian Hegler <s_hegler at gmx dot de>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13788 b3059339-0415-0410-9bf9-f77b7e298cf2
* now use vo_rootwin var to check for -rootwin switchnplourde2004-08-081-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12973 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indentation fix from previous patch, as discussed on IRC.rtognimp2004-07-111-25/+25
| | | | | | | Patch by Alexander Strasser git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12799 b3059339-0415-0410-9bf9-f77b7e298cf2
* This fixes the problems that originated from my ewmhrtognimp2004-07-111-6/+15
| | | | | | | | | fs patch, caused by a different handling of the wm's ewmh fs implementations. Patch by Alexander Strasser git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12797 b3059339-0415-0410-9bf9-f77b7e298cf2
* major reindentation of x11 code try #2attila2004-06-141-1267/+1689
| | | | | | | | | | | | | | note that this is plain ident output, i didnt tweak it by hand like the last attempt. if anyone is interested in the indent profile i used, just drop me a mail. please contact me on irc on how to send me my share of cola, but be aware that i will only accept swiss or german cola, as the japanese is way to sweet :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12583 b3059339-0415-0410-9bf9-f77b7e298cf2
* Metacity fullscreen issues, patch by Alexander Strasser <eclipse7@gmx.net>,diego2004-06-021-0/+47
| | | | | | | approved by Attila. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12521 b3059339-0415-0410-9bf9-f77b7e298cf2
*