Logo Search packages:      
Sourcecode: kde-guidance version File versions  Download package

def displayconfigabstraction::Screen::applyResolutionSettings (   self  ) 

Apply any tending resolution changes on the X server if possible.


Definition at line 2061 of file displayconfigabstraction.py.

02061                                      :
        """Apply any tending resolution changes on the X server if possible.

        
        """
        if self.isResolutionSettingsChanged() and self.isResolutionLive():
            # Work out what the correct index is for randr.
            (width,height) = self.available_sizes[self.currentsizeindex]
            sizeindex = 0
            for size in self.x_live_screen.getAvailableSizes():
                (pw,ph,wm,hm) = size
                if pw==width and ph==height:
                    break
                sizeindex += 1  
            
            rc = self.x_live_screen.setScreenConfigAndRate(sizeindex, \
                self.currentrotation | self.currentreflection, self.currentrefreshrate)
            
            # FIXME this can fail if the config on the server has been updated.

    def acceptResolutionSettings(self):


Generated by  Doxygen 1.6.0   Back to index