Feature #618

GTK backend needs IsCompositeGUI implementation

Added by Zbigniew Rebacz about 10 years ago. Updated about 10 years ago.

Status:ApprovedStart date:12/29/2013
Priority:HighDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:CtrlCoreSpent time:-
Target version:-

Description

I think gtk backend should support "bool Ctrl::IsCompositedGUI()" method.

So, this is my implementation(CtrlCore/GtkWnd.cpp - line 57):

bool Ctrl::IsCompositedGui()
{
    GuiLock __;
    static bool b = gdk_display_supports_composite(gdk_display_get_default()); // <- Should I use "gdk_display_get_default()" or something else for example stored variable???
    return b;
}

  • It seems that this patch is very important for some proprietary GPU drivers like NVIDIA, because b value is always true.

GtkWnd.cpp Magnifier (10 KB) Zbigniew Rebacz, 12/29/2013 01:48 PM

History

#1 Updated by Zbigniew Rebacz about 10 years ago

  • Category changed from U++/gtk to CtrlCore

#2 Updated by Zbigniew Rebacz about 10 years ago

  • File deleted (GtkWnd.cpp)

#3 Updated by Zbigniew Rebacz about 10 years ago

#4 Updated by Miroslav Fidler about 10 years ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF