Mercurial > mplayer.hg
view libmpdemux/mpdemux.c @ 7542:190d14d9130e
fullscreen fixes, based on mail by Havoc Pennington <hp@redhat.com>
- it should not set _NET_WM_STATE_STAYS_ON_TOP, this hint does
not exist in the spec
(http://www.freedesktop.org/standards/wm-spec/1.2/html/x224.html)
and _NET_WM_STATE_FULLSCREEN already implies "on top" so there's no
need to set this.
it should set _NET_WM_STATE_FULLSCREEN instead, I don't
currently see code to set _NET_WM_STATE_FULLSCREEN
- the XUnmapWindow() after sending the client message
is officially speaking breaking the spec, should be
XWithdrawWindow().
author | arpi |
---|---|
date | Sat, 28 Sep 2002 22:37:20 +0000 |
parents | 8162d2f591f9 |
children |
line wrap: on
line source
#include "config.h" #include <stdlib.h> #include "../input/input.h" int mpdemux_check_interrupt(int time) { mp_cmd_t* cmd; if((cmd = mp_input_get_cmd(time,0)) == NULL) return 0; switch(cmd->id) { case MP_CMD_QUIT: case MP_CMD_PLAY_TREE_STEP: case MP_CMD_PLAY_TREE_UP_STEP: case MP_CMD_PLAY_ALT_SRC_STEP: // The cmd will be executed when we are back in the main loop if(! mp_input_queue_cmd(cmd)) { printf("mpdemux_check_interrupt: can't queue cmd %s\n",cmd->name); mp_cmd_free(cmd); } return 1; default: mp_cmd_free(cmd); return 0; } }