Kodi Community Forum

Full Version: [Linux] wmctrl not working anymore? (Fedora 14, rpm)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is anyone else having problems with wmctrl? Since a couple of days it doesn't work anymore on my Fedora 14 x86_64 system.

No error messaged are displayed, yet the windows are not moved nor resized. One of the commands I'm using, from a classic XBMC script:

Code:
wmctrl -x -r $WINCLASS -b toggle,fullscreen,sticky

Of course, I've tested with other windows, in both displays that I have, no effect. Probably some of the Fedora 14 updates from the last days caused this, but no idea which one or how to work around this.

I'm using wmctrl-1.07-7.fc12.x86_64.rpm. I haven't tried compiling wmctrl directly yet, where possible I try sticking to RPMs, for convenience.
I'm not sure exactly what you're asking, but I'm guessing you are trying to get it to go from windowed mode to fullscreen? My script reads as such (This is Ubuntu 10.10) :


#! /bin/bash

# Launch XBMC in windowed mode, then use wmctrl to remove the titlebar



# Select display 1

DISPLAY=:0.1



# Start XBMC without blocking this script

xbmc &



# Wait for the XBMC window to appear

status=0

while [ $status -eq 0 ]

do

sleep 1

status=`wmctrl -x -l | grep "XBMC Media Center" | wc -l | awk '{print $1}'`

done



# Force XBMC window to fullscreen

wmctrl -x -r XBMC Media Center.XBMC Media Center -b toggle,fullscreen